Skip to content
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

workflows: Switch anaconda trigger COPR polling to timestamp comparison #19494

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

martinpitt
Copy link
Member

Expecting the branch'es HEAD SHA does not work for proposed branches which are behind the target branch (i.e. usually main). For those, the packit source RPM build does a merge first, which produces an unpredictable SHA, which ends up as the COPR package'es version.

Switch to a time based approach: Parse the timestamp from the package version, and wait until it is newer than the most recent push to the target branch.

https://issues.redhat.com/browse/COCKPIT-1071


I tested this and a few failed other approaches in martinpitt#19 . We saw this failure in the wild here: #19477 (comment)

Expecting the branch'es HEAD SHA does not work for proposed branches
which are behind the target branch (i.e. usually `main`). For those,
the packit source RPM build does a merge first, which produces an
unpredictable SHA, which ends up as the COPR package'es version.

Switch to a time based approach: Parse the timestamp from the package
version, and wait until it is newer than the most recent push to the
target branch.

https://issues.redhat.com/browse/COCKPIT-1071
@martinpitt martinpitt added the no-test For doc/workflow changes, or experiments which don't need a full CI run, label Oct 17, 2023
@martinpitt martinpitt requested a review from jelly October 17, 2023 11:11
@martinpitt martinpitt added the .github-changes Set by a reviewer just before landing to acknowledge that a PR changes github workflows label Oct 17, 2023
@jelly jelly merged commit d8246f1 into main Oct 17, 2023
38 of 40 checks passed
@jelly jelly deleted the anaconda-time-based branch October 17, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.github-changes Set by a reviewer just before landing to acknowledge that a PR changes github workflows no-test For doc/workflow changes, or experiments which don't need a full CI run,
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants