-
Notifications
You must be signed in to change notification settings - Fork 49
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
Allow Bodhi update to be created for builds triggered by any configured user #2312
Comments
hi @praiskup, thanks for this RFE. So the request is to make Packit react (=> create Bodhi updates) for Koji builds not submitted by Packit, but submitted by someone allowed by configuration, right? We have touched on this topic a few times already so I think it is worth confirming with the team on arch (I noticed we have already this TODO in the code :D ). From the implementation side, this should be quite simple and should not be a problem, but we would need to listen to all messages about Koji build end and not filter the |
@packit/the-packit-team regarding the naming of the config option for this, we already have
WDYT? Feel free to comment other suggestions. (EDIT: for context, Koji shows |
Looking at the Koji webpage, it says built by, so I'm voting for |
I will add another one :) |
@xsuchy since this is actually about triggering Bodhi updates, I guess |
thinking about it more, there are 2 ways of triggering a build:
I initially understood this new configuration option should influence only the 1. and in that case, the OR we could consider this option for both ways of triggering and in that case this name would make sense - but this would be IMO again inconsistent with how we have it for koji builds |
I was very confused today, sorry. I don't mind that much. But since you asked my opinion, here are some suggestions:
|
Add allowed_builders to configuration schema Needed for packit/packit-service#2312 RELEASE NOTES BEGIN N/A RELEASE NOTES END Reviewed-by: Laura Barcziová Reviewed-by: František Lachman <[email protected]>
Check allowed_builders for Bodhi updates triggered by builds Fixes #2312 RELEASE NOTES BEGIN You can now configure a list of Fedora accounts of users whose successful Koji builds will trigger automatic Bodhi updates (by default only packit). RELEASE NOTES END Reviewed-by: Maja Massarini Reviewed-by: František Lachman <[email protected]>
Do not check owner for Koji non-scratch builds Needed for packit/packit-service#2312 RELEASE NOTES BEGIN N/A RELEASE NOTES END Reviewed-by: František Lachman <[email protected]> Reviewed-by: Maja Massarini
Support dist-git account aliases for Bodhi's allowed_builders Related to #2312 RELEASE NOTES BEGIN N/A RELEASE NOTES END Reviewed-by: František Lachman <[email protected]> Reviewed-by: Maja Massarini
Document allowed_builders for Bodhi update job Related to packit/packit-service#2312 Reviewed-by: František Lachman <[email protected]> Reviewed-by: Nikola Forró
Description
We have configured the
bodhi_update
job (together with commit and pull_from_upstream):https://src.fedoraproject.org/rpms/resalloc-ibm-cloud/blob/rawhide/f/packit.yaml
I noticed that the last release (with Tito) did not trigger
bodhi_update
, and that's (probably)because Packit is not the commit author, nor build submitter (I did that).
The thing is that all of this is wrapped by
tito release
, which itself (a) commits to Fedora git,(b) uploads tarball into dist-git and (c) submits the Koji build (all under my name).
Typical Tito user workflow is:
tito release fedora-all
It is somewhat weird to stop doing step 3, and re-shuffle the old-school release work-flows.
The step 4. is though relatively inconvenient task (I need to know the NVRs) and totally async. Worth doing automatically.
Can't we again allow-list a list of FAS users that, when they submit a build, automatically create a bodhi update via packit?
Benefit
A native Tito user feeling during the release-to-Fedora scenario.
Importance
I'm not yet sure, I just promised to fill this issue. I have to get more familiar with pull-from-upstream to judge; if we can make Packit create multiple PRs (multiple fedora brnaches) with the same commit hash (so all merge events result with the same final git-sha1).
What is the impacted category (job)?
Fedora release automation
Workaround
Participation
The text was updated successfully, but these errors were encountered: