Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Avoid unintentionally canceling the scheduled crate publishing job #13088

Merged
merged 31 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
432091b
avoid unintentionally canceling the scheduled crate publishing job
joao-paulo-parity Jan 6, 2023
533e1ff
check manual pipelines by $CI_PIPELINE_SOURCE instead of $CI_JOB_MANUAL
joao-paulo-parity Jan 6, 2023
ae6493f
make crate-publishing pipelines uninterruptible
joao-paulo-parity Jan 6, 2023
a7a522c
use conditional includes to work around interruptible limitations
joao-paulo-parity Jan 6, 2023
70ef904
organize comments
joao-paulo-parity Jan 6, 2023
f16de79
remove interruptible from common pipeline
joao-paulo-parity Jan 6, 2023
8d5ea86
wip: check include
joao-paulo-parity Jan 6, 2023
370b140
wip: check include
joao-paulo-parity Jan 6, 2023
0bc5958
fix include
joao-paulo-parity Jan 6, 2023
618c509
fix include
joao-paulo-parity Jan 6, 2023
6e4421f
fix include
joao-paulo-parity Jan 6, 2023
716fa11
fix yaml
joao-paulo-parity Jan 6, 2023
261d47c
fix yaml
joao-paulo-parity Jan 6, 2023
6ef0120
remove shared common-pipeline
joao-paulo-parity Jan 6, 2023
7553643
wip: retry common-pipeline
joao-paulo-parity Jan 6, 2023
211c9ef
move .default-template to .gitlab-ci.yml
joao-paulo-parity Jan 6, 2023
e791c05
fix the pipeline
joao-paulo-parity Jan 6, 2023
74d128e
fix default-pipeline.yml
joao-paulo-parity Jan 6, 2023
2a68e42
revert publish-crates-manual to when: manual
joao-paulo-parity Jan 6, 2023
cf20d13
move "needs:" back to publish-crates
joao-paulo-parity Jan 6, 2023
c57cb15
Merge branch 'master' of github.com:paritytech/substrate into fix
joao-paulo-parity Jan 9, 2023
56a3a73
avoid manual repetition
joao-paulo-parity Jan 9, 2023
aff91c5
improve previous commit
joao-paulo-parity Jan 9, 2023
0dac70d
try to avoid manual repetition
joao-paulo-parity Jan 9, 2023
9c02881
fix indentation
joao-paulo-parity Jan 9, 2023
294c092
minor adjustments
joao-paulo-parity Jan 9, 2023
c5952d6
move defaults to top of .gitlab-ci.yml
joao-paulo-parity Jan 9, 2023
3f2909a
fix positioning on default in the diff
joao-paulo-parity Jan 9, 2023
479da91
comments
joao-paulo-parity Jan 10, 2023
08d899d
indentation
joao-paulo-parity Jan 10, 2023
c969998
Apply suggestions from code review
joao-paulo-parity Jan 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ default:
rules:
- if: $CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE == "schedule" && $PIPELINE == "automatic-crate-publishing"

.manual-crate-publishing-pipeline:
rules:
- if: $CI_COMMIT_REF_NAME == "master" && $CI_JOB_MANUAL == "true" && $PIPELINE == "crate-publishing"

.crates-publishing-template:
stage: test
extends: .docker-env
Expand Down
14 changes: 7 additions & 7 deletions scripts/ci/gitlab/pipeline/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ update-node-template:

.publish-crates-template:
stage: publish
needs:
- job: publish-crates-locally
artifacts: false
extends: .crates-publishing-template
# We don't want multiple jobs racing to publish crates as it's redundant and they might overwrite
# the releases of one another. Use resource_group to ensure that at most one instance of this job
Expand All @@ -214,7 +217,7 @@ update-node-template:
timeout: 9h
# A custom publishing environment is used for us to be able to set up protected secrets
# specifically for it
environment: publish-crates
environment: publish-crates
script:
- rusty-cachier snapshot create
- git clone
Expand All @@ -228,11 +231,8 @@ publish-crates:
extends:
- .publish-crates-template
- .scheduled-crate-publishing-pipeline
needs:
- job: publish-crates-locally
artifacts: false

publish-crates-manual:
extends: .publish-crates-template
when: manual
allow_failure: true
extends:
- .publish-crates-template
- .manual-crate-publishing-pipeline