Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bodhi should reject builds done from .src.rpms #5556

Closed
AdamWill opened this issue Dec 5, 2023 · 6 comments · Fixed by #5595
Closed

Bodhi should reject builds done from .src.rpms #5556

AdamWill opened this issue Dec 5, 2023 · 6 comments · Fixed by #5595

Comments

@AdamWill
Copy link
Contributor

AdamWill commented Dec 5, 2023

I found a Rawhide update - https://bodhi.fedoraproject.org/updates/FEDORA-2023-7c0c58a874 , but it's fixed now - which was stuck in gating because greenwave was 502ing and tripping up Bodhi (see release-engineering/greenwave#218 for the greenwave side here). Kevin says it's because he mistakenly did one of the builds from a .src.rpm - regular packagers and even proven packagers can't do that, but Koji admins like Kevin can.

I'm going to try and make greenwave/Bodhi handle this situation a bit more elegantly, but also, we think Bodhi should probably just reject such builds out of hand. They shouldn't be allowed into updates. Kevin can probably provide more info on how to distinguish such a build from a 'normal' one.

@nirik
Copy link
Member

nirik commented Dec 6, 2023

You can tell from the 'Source' field of the build... for example:

Source: git+https://src.fedoraproject.org/rpms/collectd.git#fcee6f7d11dd3cea89dedb9fb9dcd648354610dc

vs

Source: collectd-5.12.0-34.fc40.src.rpm

@nirik
Copy link
Member

nirik commented May 8, 2024

This doesn't seem to be working as expected...

https://matrix.to/#/%23releng%3Afedoraproject.org/%24uITc0WPdr0ZjrqYnuKnpcMrPWFoZAoTbIXpBqaDXsps?via=matrix.scrye.com&via=matrix.org&via=fedora.im&via=lisas.de

I'm not sure why, but its not checking correctly...

@nirik nirik reopened this May 8, 2024
@mattiaverga
Copy link
Contributor

yeah, I saw you already figured out that commenting out the setting will just bypass the feature... thanks.
I'll try to check why it's not working correctly.

@mattiaverga
Copy link
Contributor

Ah, wrong setting format:
trusted_build_sources = git+https://src.fedoraproject.org/,https://src.fedoraproject.org/
should be
trusted_build_sources = git+https://src.fedoraproject.org/ https://src.fedoraproject.org/

(whitespace separator, not comma)

@nirik
Copy link
Member

nirik commented May 12, 2024

Ah. ok. We can try re-enabling it next week then I suppose...

@nirik
Copy link
Member

nirik commented May 17, 2024

It's back in without the , and seems to be working. ;)

@nirik nirik closed this as completed May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants