This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
More improvements for the crate publishing pipeline #13153
Merged
paritytech-processbot
merged 7 commits into
paritytech:master
from
joao-paulo-parity:fix
Jan 16, 2023
Merged
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
2d07729
more improvements for the crate publishing pipeline
joao-paulo-parity 50fd8e7
move default definitions to the publish-crates script
joao-paulo-parity fe3f93c
add script to check the crate publishing pipeline at the start
joao-paulo-parity 114a6bd
fix yaml references
joao-paulo-parity f070ced
move more variables to .crates-publishing-pipeline
joao-paulo-parity 06881dd
separate .crates-publishing-pipeline from .crates-publishing-variables
joao-paulo-parity 83224e6
clean up redundant and unused code
joao-paulo-parity File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -189,18 +189,18 @@ publish-draft-release: | |
# the releases of one another. Use resource_group to ensure that at most one instance of this job | ||
# is running at any given time. | ||
resource_group: crates-publishing | ||
variables: | ||
# crates.io rate limits crates publishing by 1 per minute, so a delay needs to be inserted | ||
# slightly higher than that after publishing each crate. The value is specified in seconds. | ||
SPUB_AFTER_PUBLISH_DELAY: 64 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This delay is part of an implementation detail and thus it has been moved to the |
||
# We might have to publish lots of crates at a time. Given the 1 minute delay introduced above and | ||
# taking into account the 202 (as of Dec 07, 2022) publishable Substrate crates, that would equate | ||
# to roughly 202 minutes of delay, or 3h and 22 minutes. As such, the job needs to have a much | ||
# higher timeout than average. | ||
# crates.io currently rate limits crate publishing at 1 per minute: | ||
# https://github.com/paritytech/release-engineering/issues/123#issuecomment-1335509748 | ||
# Taking into account the 202 (as of Dec 07, 2022) publishable Substrate crates, in the worst | ||
# case, due to the rate limits alone, we'd have to wait through at least 202 minutes of delay. | ||
# Taking into account also the verification steps and extra synchronization delays after | ||
# publishing the crate, the job needs to have a much higher timeout than average. | ||
timeout: 9h | ||
# A custom publishing environment is used for us to be able to set up protected secrets | ||
# specifically for it | ||
environment: publish-crates | ||
variables: | ||
PUBLISH_CRATES_BRANCH: master | ||
script: | ||
- rusty-cachier snapshot create | ||
- git clone | ||
|
@@ -211,15 +211,13 @@ publish-draft-release: | |
- rusty-cachier cache upload | ||
|
||
publish-crates: | ||
extends: | ||
- .publish-crates-template | ||
- .scheduled-crate-publishing-pipeline | ||
needs: | ||
- job: publish-crates-locally | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing this dependency is intentional so that this job relies on more checks other than |
||
artifacts: false | ||
extends: .publish-crates-template | ||
rules: | ||
- if: $CI_COMMIT_REF_NAME == "$PUBLISH_CRATES_BRANCH" && $CI_PIPELINE_SOURCE == "schedule" && $PIPELINE == "automatic-crate-publishing" | ||
|
||
publish-crates-manual: | ||
extends: .publish-crates-template | ||
rules: !reference [.crate-publishing-pipeline, rules] | ||
rules: | ||
- if: $CI_COMMIT_REF_NAME == "$PUBLISH_CRATES_BRANCH" | ||
when: manual | ||
allow_failure: true | ||
interruptible: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Those defaults have been moved to the publish-crates script