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

Release operator: Wait for crate version to appear upstream #814

Merged

Conversation

hendrikmaus
Copy link
Contributor

@hendrikmaus hendrikmaus commented Jul 14, 2022

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

hannobraun
hannobraun previously approved these changes Jul 14, 2022
Copy link
Owner

@hannobraun hannobraun left a 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:

tools/release-operator/src/registry.rs Outdated Show resolved Hide resolved
@hendrikmaus
Copy link
Contributor Author

I guess you are right, sry for the confusion. I'll fix the reference and open another PR for the more pressing issue.

@hannobraun
Copy link
Owner

I guess you are right, sry for the confusion. I'll fix the reference and open another PR for the more pressing issue.

Thanks!

@hannobraun
Copy link
Owner

Thank you again, @hendrikmaus! I'll take another look on Monday.

hannobraun
hannobraun previously approved these changes Jul 18, 2022
Copy link
Owner

@hannobraun hannobraun left a 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.
@hannobraun
Copy link
Owner

#538 is fixed. My fix introduced a merge conflict though. Rebased. Will merge, as well as CI is green.

@hannobraun hannobraun merged commit 8681d23 into hannobraun:main Jul 18, 2022
@hendrikmaus hendrikmaus deleted the #538_wait-for-crate-versions-to-appear branch July 19, 2022 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Release automation can fail, because just-published crate is not found
2 participants