-
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
fix(event): use fallback for accepted time #2335
fix(event): use fallback for accepted time #2335
Conversation
Build succeeded. ✔️ pre-commit SUCCESS in 2m 00s |
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.
At first it was wired to see different "kind" of timestamps used to initialize the "task_accepted_time" field. But I think we use this field just to show it to the user, and the difference in this kind of timestamps is so minimal that no one will ever notice it.
So for me it looks good, maybe I would just add a note. 🙏
@majamassarini The time difference is used for the metrics and SLOs, 5 minutes is exactly the range we have as an SLO, the thing is that these errors are occurring during the submission, so there is no “status set after pass/fail of the Copr build”? I'm kind of inclined to do |
Sorry, I am still not following, why do these miss the information about |
Oh, I have forgot about the SLOs 🙈 |
So do we want to count them in with being an immediate failure, or just drop them from metrics? I'm kinda inclined to count them with time difference of
Vote on your devices :) :D |
When submitting failed Copr builds to the Pushgateway, we're using time of accepting the task, in some cases we don't have time of accepting, so use ‹created_at› as a fallback. Fixes packit#2258 Signed-off-by: Matej Focko <mfocko@redhat.com>
c193b57
to
7e82c64
Compare
Build succeeded. ✔️ pre-commit SUCCESS in 2m 04s |
Build succeeded (gate pipeline). ✔️ pre-commit SUCCESS in 1m 57s |
3494bcd
into
packit:main
When submitting failed Copr builds to the Pushgateway, we're using time of accepting the task, in some cases we don't have time of accepting, so use ‹created_at› as a fallback.
Fixes #2258
Not sure about this change, since for the last occurrence in Sentry the difference between the reported time of failure and
created_at
is 5 minutes. I can the ‹task_accepted_time› only in DB, but this is happening even before the build starts, cause it's coming from an issue caused by submitting the build, so I would say that we should use thedatetime.now()
? But OTOH it doesn't feel like it's skipping the Celere queue and being handled right away.