Skip to content

Commit fb9503c

Browse files
committed
Merge remote-tracking branch 'origin/zombienet-substrate-zombienet-sdk-tests' into zombienet-substrate-zombienet-sdk-tests
2 parents e63897c + bdfd5ec commit fb9503c

File tree

92 files changed

+4575
-2223
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+4575
-2223
lines changed

.github/workflows/check-semver.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ jobs:
198198
has_validate_false=false
199199
while read -r line; do
200200
if [[ "$line" =~ bump:[[:space:]]*(minor|patch) ]]; then
201-
read -r next_line
201+
read -r next_line || true
202202
if [[ "$next_line" =~ validate:[[:space:]]*false ]]; then
203203
has_validate_false=true
204204
break

.github/workflows/release-22_combined-rc-runtime-builds-release-draft.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ on:
4747
description: Tag matching the actual release candidate with the format polkadot-stableYYMM(-X)-rcY or polkadot-stableYYMM(-X)
4848
type: string
4949
required: true
50+
no_runtimes:
51+
description: If true, no runtime build will be triggered and release draft will be published without runtimes (⚠️ use it for the patch releases of the latest stable)
52+
required: true
53+
type: boolean
54+
default: false
5055

5156
jobs:
5257
check-synchronization:
@@ -73,6 +78,7 @@ jobs:
7378
echo "release_tag=${RELEASE_TAG}" >> $GITHUB_OUTPUT
7479
7580
build-runtimes-flow:
81+
if: ${{ inputs.no_runtimes == false }}
7682
needs: [validate-inputs]
7783
uses: "./.github/workflows/release-21_build-runtimes.yml"
7884
with:
@@ -97,11 +103,25 @@ jobs:
97103
attestations: write
98104
contents: read
99105

100-
trigger-release-draft:
106+
trigger-release-draft-with-runtimes:
107+
if: ${{ inputs.no_runtimes == false }}
101108
needs: [build-runtimes-flow, build-rc-flow, validate-inputs]
102109
uses: "./.github/workflows/release-30_publish_release_draft.yml"
103110
with:
104111
release_tag: ${{ needs.validate-inputs.outputs.release_tag }}
105112
build_run_id: ${{ github.run_id }}
106113
runtimes: '${{ needs.build-runtimes-flow.outputs.published_runtimes }}'
114+
no_runtimes: ${{ inputs.no_runtimes }}
115+
crates_only: false
116+
secrets: inherit
117+
118+
trigger-release-draft-without-runtimes:
119+
if: ${{ inputs.no_runtimes == true }}
120+
needs: [build-rc-flow, validate-inputs]
121+
uses: "./.github/workflows/release-30_publish_release_draft.yml"
122+
with:
123+
release_tag: ${{ needs.validate-inputs.outputs.release_tag }}
124+
build_run_id: ${{ github.run_id }}
125+
no_runtimes: ${{ inputs.no_runtimes }}
126+
crates_only: false
107127
secrets: inherit

.github/workflows/release-30_publish_release_draft.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,17 @@ on:
2020
required: true
2121
type: string
2222
runtimes:
23-
description: Runtimes to be published
23+
description: Runtimes to be published (⚠️ this needs to be provided in case of the complete release, for the crates only release or a patch release without runtimes it is not needed)
24+
no_runtimes:
25+
description: If true, release draft will be published without runtimes
26+
required: true
27+
type: boolean
28+
default: false
29+
crates_only:
30+
description: If true, release draft will contain only release notes and no artifacts will be published (needed for stable releases that are crates only)
2431
required: true
32+
type: boolean
33+
default: false
2534
workflow_call:
2635
inputs:
2736
release_tag:
@@ -34,8 +43,17 @@ on:
3443
type: string
3544
runtimes:
3645
description: Runtimes to be published
37-
required: true
3846
type: string
47+
no_runtimes:
48+
description: If true, release draft will be published without runtimes
49+
required: true
50+
type: boolean
51+
default: false
52+
crates_only:
53+
description: If true, release draft will contain only release notes and no artifacts will be published (needed for stable releases that are crates only)
54+
required: true
55+
type: boolean
56+
default: false
3957

4058
jobs:
4159
check-synchronization:
@@ -85,6 +103,7 @@ jobs:
85103
repositories: polkadot-sdk
86104

87105
- name: Download runtimes artifacts
106+
if: ${{ inputs.no_runtimes == false && inputs.crates_only == false }}
88107
env:
89108
GITHUB_TOKEN: ${{ steps.generate_write_token.outputs.token }}
90109
run: |
@@ -110,6 +129,8 @@ jobs:
110129
PEOPLE_WESTEND_DIGEST: ${{ github.workspace}}/runtimes/people-westend-runtime/people-westend-srtool-digest.json
111130
WESTEND_DIGEST: ${{ github.workspace}}/runtimes/westend-runtime/westend-srtool-digest.json
112131
RELEASE_TAG: ${{ needs.validate-inputs.outputs.release_tag }}
132+
NO_RUNTIMES: ${{ inputs.no_runtimes }}
133+
CRATES_ONLY: ${{ inputs.crates_only }}
113134
shell: bash
114135
run: |
115136
. ./.github/scripts/common/lib.sh
@@ -151,6 +172,7 @@ jobs:
151172
--notes-file ${{ github.workspace}}/scripts/release/RELEASE_DRAFT.md
152173
153174
publish-runtimes:
175+
if: ${{ inputs.crates_only == false && inputs.no_runtimes == false }}
154176
needs: [ validate-inputs, publish-release-draft ]
155177
environment: release
156178
continue-on-error: true
@@ -202,6 +224,7 @@ jobs:
202224
--repo paritytech/polkadot-sdk "$VERSIONED_ASSET"
203225
204226
publish-release-artifacts:
227+
if: ${{ inputs.crates_only == false }}
205228
needs: [ validate-inputs, publish-release-draft ]
206229
environment: release
207230
continue-on-error: true
@@ -264,7 +287,7 @@ jobs:
264287
265288
post_to_matrix:
266289
runs-on: ubuntu-latest
267-
needs: [ validate-inputs, publish-release-draft, publish-runtimes, publish-release-artifacts ]
290+
needs: [ validate-inputs, publish-release-draft ]
268291
environment: release
269292
strategy:
270293
matrix:

.github/workflows/release-31_promote-rc-to-final.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ on:
1818
description: Tag matching the actual release candidate with the format polkadot-stableYYMM(-X)-rcX
1919
type: string
2020

21+
workflow_call:
22+
inputs:
23+
binary:
24+
description: Binary to be build for the release
25+
default: all
26+
type: string
27+
release_tag:
28+
description: Tag matching the actual release candidate with the format polkadot-stableYYMM(-X)-rcX
29+
type: string
30+
required: true
31+
2132

2233
jobs:
2334

.github/workflows/release-40_publish-deb-package.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,19 @@ on:
1515
required: true
1616
type: string
1717

18+
workflow_call:
19+
inputs:
20+
tag:
21+
description: Current final release tag in the format polkadot-stableYYMM or polkadot-stable-YYMM-X
22+
required: true
23+
type: string
24+
25+
distribution:
26+
description: Distribution where to publish deb package (release, staging, stable2407, etc)
27+
default: staging
28+
required: true
29+
type: string
30+
1831
jobs:
1932
call-publish-workflow:
2033
uses: ./.github/workflows/release-reusable-publish-packages.yml

.github/workflows/release-41_publish-rpm-package.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ on:
1010
required: true
1111
type: string
1212

13+
workflow_call:
14+
inputs:
15+
tag:
16+
description: Current final release tag in the format polkadot-stableYYMM or polkadot-stable-YYMM-X
17+
required: true
18+
type: string
19+
1320
jobs:
1421
call-publish-workflow:
1522
uses: ./.github/workflows/release-reusable-publish-packages.yml

0 commit comments

Comments
 (0)