-
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
Don't overwrite final state of Copr build by an in-progress state #2252
Comments
Let's add a check before processing in-progress ones and do it on our (=~database) level, not on GitHub. |
notes from the refinement discussion Based on the description of the issue and some of the “breadcrumbs” I've noticed in the Sentry logs, the following cause is anticipated:
Ideal outcome of this card would be making sure that we don't allow transitions from finished state (success, failure, error) to the pending or in progress state. We also discussed the issues with testing this. Thinking about it, I would suggest simulating receival of the Copr event while mocking the database model with already finished state (as described above) and expect no change in the result. Footnotes
|
In case the end was already processed, only set the start time and do not overwrite the end status and do not report this to user. Fixes packit#2252
Don't overwrite final state of Copr build In case the end was already processed, only set the start time and do not overwrite the end status and do not report this to user. Fixes #2252 RELEASE NOTES BEGIN We have fixed the bug about Packit overwriting the final state of the build in case the build start is being processed later than the end of the build. RELEASE NOTES END Reviewed-by: Matej Focko
Example logs:
The text was updated successfully, but these errors were encountered: