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

Add a retry mechanism for publishing mmtk-core to crates.io #618

Merged
merged 3 commits into from
Aug 8, 2022

Conversation

qinsoon
Copy link
Member

@qinsoon qinsoon commented Jun 28, 2022

This PR adds retry in the github workflow for publishing the crates.

As we introduced a sub-crate mmtk-macros in #575, we need to publish both mmtk-macros and mmtk. What we do for the workflow is that we publish mmtk-macros first, and then publish mmtk. However, in practice, we have seen that the workflow runs failed since the change (v0.12.0 and v0.13.0). The publishing for mmtk-macros succeeded, but the publishing for mmtk failed due to missing the dependency for mmtk-macros. I published those two versions manually with simply cargo publish, and it worked fine. I think there could be some delay in crates.io before we can see the new version of mmtk-macros that we publish. Hopefully adding retry for publishing mmtk can fix this.

@qinsoon qinsoon marked this pull request as ready for review June 28, 2022 02:19
@qinsoon qinsoon requested a review from wks June 28, 2022 02:19
Copy link
Collaborator

@wks wks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but there is room for improvement.

.github/workflows/cargo-publish.yml Outdated Show resolved Hide resolved
@qinsoon qinsoon merged commit 89a6f4a into mmtk:master Aug 8, 2022
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.

2 participants