-
Notifications
You must be signed in to change notification settings - Fork 48
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
Feat(bodhi): Retrigger bodhi update via dist-git PR command #1729
Feat(bodhi): Retrigger bodhi update via dist-git PR command #1729
Conversation
Build succeeded. ✔️ pre-commit SUCCESS in 2m 00s |
f98d1d5
to
b365a66
Compare
Build failed. ✔️ pre-commit SUCCESS in 2m 01s |
b365a66
to
6d5b09d
Compare
recheck |
Build succeeded. ✔️ pre-commit SUCCESS in 2m 00s |
6d5b09d
to
7d4d14d
Compare
Build succeeded. ✔️ pre-commit SUCCESS in 2m 02s |
7d4d14d
to
70af840
Compare
Build succeeded. ✔️ pre-commit SUCCESS in 2m 05s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the Checkers design! This is nicely done, just one question about the UX
logger.debug("Bodhi update will be re-triggered via dist-git PR comment.") | ||
return ( | ||
HasAuthorWriteAccess, | ||
IsAuthorAPackager, | ||
IsKojiBuildCompleteAndBranchConfiguredCheckService, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will Packit provide any feedback back to the user if one of these checkers fails?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, there is no feedback for the users when checks fail. For none of the them.
If you agree I will create a new card to add the feedback, I think there is some work on it. Right now there is no BodhiUpdateJobHelper
class and for the other services is this kind of helper class that handles the feedback.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed! we should absolutely have something to comment back so users know what's happening in Packit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed! we should absolutely have something to comment back so users know what's happening in Packit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nicely done!
We should definitely make sure the actor is set, but looking into the code here and here (we could finally unify so that all events have the |
I am not sure I am following here 😅 |
70af840
to
1ca6834
Compare
Build succeeded. ✔️ pre-commit SUCCESS in 1m 52s |
I understand and the code I linked was meant to show it should be always not-none, or am I missing something? 😅 (My fix only made the behaviour the same as it was in the past) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Add methods to get build dicts from KojiHelper Merge before packit/packit-service#1729 Reviewed-by: Laura Barcziová <None> Reviewed-by: Tomas Tomecek <[email protected]>
Co-author-by: Maja Massarini <[email protected]>
1ca6834
to
2914848
Compare
Build succeeded. ✔️ pre-commit SUCCESS in 2m 05s |
Build succeeded (gate pipeline). ✔️ pre-commit SUCCESS in 2m 00s |
I have rebased the Jirka K. work and I have used Mixins to manage Koji data needed to create a new bodhi update.
This comes from #1654
Fixes #1541
Merge after packit/packit#1764
is_packager
as aked by Laura: Retrigger bodhi update via dist-git PR comment #1654 (comment)Note: since I am using this method if for any reason the actor is
None
then the body update will succeed, I don't know if this could be a problem.RELEASE NOTES BEGIN
Packit now allows to re-trigger Bodhi update via dist-git PR comment
/packit create-update
.RELEASE NOTES END