-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
Release operator: Wait for crate version to appear upstream #814
Release operator: Wait for crate version to appear upstream #814
Conversation
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.
Thank you @hendrikmaus, this looks great!
Notes:
- Left a nitpick comment; not important.
- I think your PR references the wrong issue. This addresses Release automation can fail, because just-published crate is not found #788, not
Release | Crates.io
in CD pipeline doesn't handlecargo publish
errors #538. - I'm leaving this PR open until
Release | Crates.io
in CD pipeline doesn't handlecargo publish
errors #538 has been fixed, as per my comment in #788.
I guess you are right, sry for the confusion. I'll fix the reference and open another PR for the more pressing issue. |
Thanks! |
cde61bb
to
67c6d78
Compare
Thank you again, @hendrikmaus! I'll take another look on Monday. |
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.
Looks good to me. Thank you @hendrikmaus!\
If #834 fixes #538, I will merge this right after, before I re-trigger the automation again.
This is done so that the submit function can easily acquire the version it has to wait for to appear in the crates.io registry after submitting it. Like that, we will only advance to the next crate, when the current one was fully populated upstream
The operator will wait for 10 minutes per crate.
67c6d78
to
ea759e0
Compare
#538 is fixed. My fix introduced a merge conflict though. Rebased. Will merge, as well as CI is green. |
This change-set introduces a simple wait loop, with a timeout of 10 minutes, after the submission of each crate. Hence the operator will only move to the next crate in the list of crates to publish once the current one has fully populated.
Fixes #788