-
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
Downstream KojiBuild state not handled correctly #2503
Comments
There are however no allowed builders configured: https://src.fedoraproject.org/rpms/fedora-upgrade/blob/2e7791f16bbea3aedf43c81dfb8db3f417a43f02/f/packit.yaml#_18 |
During stand-up meeting, we agreed that this is an expected behaviour. However, the build failure should be correctly handled/ reflected in DB (and shown on dashboard). Besides that, we may think about a way how to notify users about the failures (e.g. via mail), a bit related to #2404 . |
From an initial investigation, it looks like this happens for all builds duplicated by us, i.e. where the build triggered by us fails because the build is already in progress/completed (triggered by someone else). Koji doesn't seem to emit messages on the message bus for those (which we rely on for updating the status). |
This is actually quite similar to packit/packit#2427, if there is a way with Koji API to determine whether a non-scratch build for a NVR is in progress, we could skip/fail before submitting the build. |
Yes, sounds good, my only concern especially for this issue would be the race conditions. |
We have
Hm, true, I'm not sure if there even is a way to avoid them. |
For this particular issue, I was thinking we could have a "babysit" task to just handle the forever-pending builds (which might be overkill), but for packit/packit#2427 there is probably no way. I would start here by adding the check of |
Do we want to fix both issues at the same time? The only difference should be checking if |
We agreed on implementing the solution from packit/packit#2427 here which should solve both issues. |
Related to packit/packit-service#2503 RELEASE NOTES BEGIN N/A RELEASE NOTES END
Skip running Koji builds if they are triggered already Fixes #2503 Requires packit/packit#2435 TODO: test it RELEASE NOTES BEGIN Before triggering the non-scratch Koji builds, we now check whether there is not already a build in progress or completed for the same NVR. RELEASE NOTES END Reviewed-by: Nikola Forró Reviewed-by: Laura Barcziová
What happened? What is the problem?
I discovered that sometimes BodhiUpdate is not filed by Packit, despite being correctly configured.
I did and upstream release of fedora-upgrade and submitted it to Fedora using
tito release fedora-git
. And I forgot to add--no-build
. This uploaded src.rpm to all branches in dist-git and triggered koji build. The builds were submitted by both Packit and Tito. As you can see in https://koji.fedoraproject.org/koji/packageinfo?packageID=15136Packit was first for F40 and Tito everywhere else. Who is second is denied to proceed. As you can see in F39 build https://koji.fedoraproject.org/koji/taskinfo?taskID=122080964 submitted by Packit. Although it failed Packit reports in dashboard that the build is still pending https://dashboard.packit.dev/results/koji-builds/6850
And what is important is that F39 bodhi update was not filled. Despite the condition was meant - there is successful build https://koji.fedoraproject.org/koji/buildinfo?buildID=2531586
What did you expect to happen?
I expected that Bodhi update for F39 is created.
Example URL(s)
No response
Steps to reproduce
What is the impacted category (job)?
Fedora release automation
Workaround
Participation
The text was updated successfully, but these errors were encountered: