Skip to content

Commit 98a0fb2

Browse files
Merge branch 'master' into seemant-parachain-umbrella-crate-mig
2 parents 51818d8 + d3f6851 commit 98a0fb2

File tree

316 files changed

+10435
-2825
lines changed

Some content is hidden

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

316 files changed

+10435
-2825
lines changed

.config/taplo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ exclude = [
1515
[formatting]
1616
reorder_arrays = true
1717
inline_table_expand = false
18-
array_auto_expand = false
18+
array_auto_expand = true
1919
array_auto_collapse = false
2020
indent_string = " " # tab
2121

.github/scripts/common/lib.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -243,17 +243,17 @@ fetch_release_artifacts() {
243243
# - REPO in the form paritytech/polkadot
244244
fetch_debian_package_from_s3() {
245245
BINARY=$1
246-
echo "Version : $VERSION"
246+
echo "Version : $NODE_VERSION"
247247
echo "Repo : $REPO"
248248
echo "Binary : $BINARY"
249-
echo "Tag : $RELEASE_TAG"
249+
echo "Tag : $VERSION"
250250
OUTPUT_DIR=${OUTPUT_DIR:-"./release-artifacts/${BINARY}"}
251251
echo "OUTPUT_DIR : $OUTPUT_DIR"
252252

253253
URL_BASE=$(get_s3_url_base $BINARY)
254254
echo "URL_BASE=$URL_BASE"
255255

256-
URL=$URL_BASE/$RELEASE_TAG/x86_64-unknown-linux-gnu/${BINARY}_${VERSION}_amd64.deb
256+
URL=$URL_BASE/$VERSION/x86_64-unknown-linux-gnu/${BINARY}_${NODE_VERSION}_amd64.deb
257257

258258
mkdir -p "$OUTPUT_DIR"
259259
pushd "$OUTPUT_DIR" > /dev/null

.github/scripts/release/release_lib.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ git_show_log() {
7171
# 1_012_000 or 1_012_001 if SUFFIX is set
7272
function get_spec_version() {
7373
INPUT=$1
74-
SUFFIX=${SUFFIX:-000} #this variable makes it possible to set a specific ruuntime version like 93826 it can be intialised as sestem variable
74+
SUFFIX=${SUFFIX:-000} #this variable makes it possible to set a specific runtime version like 93826 it can be initialised as system variable
7575
[[ $INPUT =~ .*([0-9]+\.[0-9]+\.[0-9]{1,2}).* ]]
7676
VERSION="${BASH_REMATCH[1]}"
7777
MATCH="${BASH_REMATCH[0]}"

.github/workflows/build-publish-images.yml

+63
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,9 @@ jobs:
266266
path: artifacts.tar
267267
retention-days: 1
268268

269+
270+
### Build zombienet test artifacts ########################
271+
269272
#
270273
#
271274
#
@@ -296,6 +299,66 @@ jobs:
296299
path: artifacts.tar
297300
retention-days: 1
298301

302+
#
303+
#
304+
#
305+
prepare-polkadot-zombienet-artifacts:
306+
needs: [preflight]
307+
runs-on: ${{ needs.preflight.outputs.RUNNER }}
308+
timeout-minutes: 60
309+
container:
310+
image: ${{ needs.preflight.outputs.IMAGE }}
311+
steps:
312+
- name: Checkout
313+
uses: actions/checkout@v4
314+
- name: build
315+
run: |
316+
forklift cargo nextest --manifest-path polkadot/zombienet-sdk-tests/Cargo.toml archive --locked --features zombie-metadata --archive-file polkadot-zombienet-tests.tar.zst
317+
- name: pack artifacts
318+
run: |
319+
mkdir -p artifacts
320+
cp polkadot-zombienet-tests.tar.zst ./artifacts
321+
322+
- name: tar
323+
run: tar -cvf artifacts.tar artifacts
324+
325+
- name: upload artifacts
326+
uses: actions/upload-artifact@v4
327+
with:
328+
name: ${{ github.job }}-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
329+
path: artifacts.tar
330+
retention-days: 1
331+
332+
#
333+
#
334+
#
335+
prepare-cumulus-zombienet-artifacts:
336+
needs: [preflight]
337+
runs-on: ${{ needs.preflight.outputs.RUNNER }}
338+
timeout-minutes: 60
339+
container:
340+
image: ${{ needs.preflight.outputs.IMAGE }}
341+
steps:
342+
- name: Checkout
343+
uses: actions/checkout@v4
344+
- name: build
345+
run: |
346+
forklift cargo nextest --manifest-path cumulus/zombienet/zombienet-sdk/Cargo.toml archive --locked --features zombie-ci --archive-file cumulus-zombienet-tests.tar.zst
347+
- name: pack artifacts
348+
run: |
349+
mkdir -p artifacts
350+
cp cumulus-zombienet-tests.tar.zst ./artifacts
351+
352+
- name: tar
353+
run: tar -cvf artifacts.tar artifacts
354+
355+
- name: upload artifacts
356+
uses: actions/upload-artifact@v4
357+
with:
358+
name: ${{ github.job }}-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
359+
path: artifacts.tar
360+
retention-days: 1
361+
299362
### Publish ########################
300363

301364
#

.github/workflows/checks-quick.yml

-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ jobs:
102102
--exclude
103103
"substrate/frame/contracts/fixtures/build"
104104
"substrate/frame/contracts/fixtures/contracts/common"
105-
"substrate/frame/revive/fixtures/contracts/common"
106105
- name: deny git deps
107106
run: python3 .github/scripts/deny-git-deps.py .
108107
check-markdown:

.github/workflows/release-11_rc-automation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Release - RC automation
22
on:
3-
# TODO: Activate it and delete old branches patterns, when the release process from stable is setteled
3+
# TODO: Activate it and delete old branches patterns, when the release process from stable is settled
44
#push:
55
# branches:
66
# # Catches release-polkadot-v1.2.3, release-v1.2.3-rc1, etc

.github/workflows/release-30_publish_release_draft.yml

+3-13
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,6 @@ jobs:
3939
RELEASE_TAG=$(validate_stable_tag ${{ inputs.release_tag }})
4040
echo "release_tag=${RELEASE_TAG}" >> $GITHUB_OUTPUT
4141
42-
get-rust-versions:
43-
needs: [ validate-inputs ]
44-
runs-on: ubuntu-latest
45-
outputs:
46-
rustc-stable: ${{ steps.get-rust-versions.outputs.stable }}
47-
steps:
48-
- id: get-rust-versions
49-
run: |
50-
RUST_STABLE_VERSION=$(curl -sS https://raw.githubusercontent.com/paritytech/scripts/master/dockerfiles/ci-unified/Dockerfile | grep -oP 'ARG RUST_STABLE_VERSION=\K[^ ]+')
51-
echo "stable=$RUST_STABLE_VERSION" >> $GITHUB_OUTPUT
52-
5342
build-runtimes:
5443
needs: [ validate-inputs ]
5544
uses: "./.github/workflows/release-srtool.yml"
@@ -65,7 +54,7 @@ jobs:
6554
publish-release-draft:
6655
runs-on: ubuntu-latest
6756
environment: release
68-
needs: [ validate-inputs, get-rust-versions, build-runtimes ]
57+
needs: [ validate-inputs, build-runtimes ]
6958
outputs:
7059
release_url: ${{ steps.create-release.outputs.html_url }}
7160
asset_upload_url: ${{ steps.create-release.outputs.upload_url }}
@@ -86,7 +75,6 @@ jobs:
8675
- name: Prepare draft
8776
id: draft
8877
env:
89-
RUSTC_STABLE: ${{ needs.get-rust-versions.outputs.rustc-stable }}
9078
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9179
ASSET_HUB_WESTEND_DIGEST: ${{ github.workspace}}/asset-hub-westend-runtime/asset-hub-westend-srtool-digest.json
9280
BRIDGE_HUB_WESTEND_DIGEST: ${{ github.workspace}}/bridge-hub-westend-runtime/bridge-hub-westend-srtool-digest.json
@@ -100,6 +88,8 @@ jobs:
10088
run: |
10189
. ./.github/scripts/common/lib.sh
10290
91+
export RUSTC_STABLE=$(grep -oP '(?<=-)[0-9]+\.[0-9]+\.[0-9]+(?=-)' .github/env)
92+
10393
export REF1=$(get_latest_release_tag)
10494
if [[ -z "$RELEASE_TAG" ]]; then
10595
export REF2="${{ github.ref_name }}"

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

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Release - Publish polakdot deb package
1+
name: Release - Publish polkadot deb package
22

33
on:
44
workflow_dispatch:
55
inputs:
66
tag:
7-
description: Current final release tag in the format polakdot-stableYYMM or polkadot-stable-YYMM-X
7+
description: Current final release tag in the format polkadot-stableYYMM or polkadot-stable-YYMM-X
88
default: polkadot-stable2412
99
required: true
1010
type: string
@@ -44,9 +44,9 @@ jobs:
4444
needs: [validate-inputs]
4545
env:
4646
REPO: ${{ github.repository }}
47-
RELEASE_TAG: ${{ needs.validate-inputs.outputs.release_tag }}
47+
VERSION: ${{ needs.validate-inputs.outputs.release_tag }}
4848
outputs:
49-
VERSION: ${{ steps.fetch_artifacts_from_s3.outputs.VERSION }}
49+
NODE_VERSION: ${{ steps.fetch_artifacts_from_s3.outputs.NODE_VERSION }}
5050

5151
steps:
5252
- name: Checkout sources
@@ -57,8 +57,8 @@ jobs:
5757
run: |
5858
. ./.github/scripts/common/lib.sh
5959
60-
VERSION="$(get_polkadot_node_version_from_code)"
61-
echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
60+
NODE_VERSION="$(get_polkadot_node_version_from_code)"
61+
echo "NODE_VERSION=${NODE_VERSION}" >> $GITHUB_OUTPUT
6262
6363
fetch_debian_package_from_s3 polkadot
6464
@@ -76,7 +76,7 @@ jobs:
7676
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
7777
AWS_DEB_PATH: "s3://releases-package-repos/deb"
7878
LOCAL_DEB_REPO_PATH: ${{ github.workspace }}/deb
79-
VERSION: ${{ needs.fetch-artifacts-from-s3.outputs.VERSION }}
79+
NODE_VERSION: ${{ needs.fetch-artifacts-from-s3.outputs.NODE_VERSION }}
8080

8181
steps:
8282
- name: Install pgpkkms
@@ -135,7 +135,7 @@ jobs:
135135
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
136136
run: |
137137
# Add the new deb to the repo
138-
reprepro -b "$LOCAL_DEB_REPO_PATH" includedeb "${{ inputs.distribution }}" "release-artifacts/polkadot_${VERSION}_amd64.deb"
138+
reprepro -b "$LOCAL_DEB_REPO_PATH" includedeb "${{ inputs.distribution }}" "release-artifacts/polkadot_${NODE_VERSION}_amd64.deb"
139139
140140
- name: Upload updated deb repo
141141
env:

.github/workflows/release-50_publish-docker.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ jobs:
281281
uses: docker/setup-buildx-action@f7ce87c1d6bead3e36075b2ce75da1f6cc28aaca # v3.9.0
282282

283283
- name: Cache Docker layers
284-
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
284+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
285285
with:
286286
path: /tmp/.buildx-cache
287287
key: ${{ runner.os }}-buildx-${{ github.sha }}

.github/workflows/release-reusable-promote-to-final.yml

+13-7
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_RELEASE_ACCESS_KEY_ID }}
3636
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_RELEASE_SECRET_ACCESS_KEY }}
3737
AWS_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
38+
RELEASE_TAG: ${{ inputs.release_tag }}
39+
PACKAGE: ${{ inputs.package }}
40+
TARGET: ${{ inputs.target }}
3841

3942
steps:
4043
- name: Checkout sources
@@ -44,22 +47,25 @@ jobs:
4447
id: prepare_final_tag
4548
shell: bash
4649
run: |
47-
tag="$(echo ${{ inputs.release_tag }} | sed 's/-rc[0-9]*$//')"
50+
tag="$(echo $RELEASE_TAG | sed 's/-rc[0-9]*$//')"
4851
echo $tag
4952
echo "FINAL_TAG=${tag}" >> $GITHUB_OUTPUT
5053
5154
- name: Fetch binaries from s3 based on version
5255
run: |
5356
. ./.github/scripts/common/lib.sh
5457
55-
VERSION="${{ inputs.release_tag }}"
56-
if [[ ${{ inputs.package }} == 'polkadot' ]]; then
58+
VERSION="$RELEASE_TAG"
59+
if [[ "$PACKAGE" == 'polkadot' ]]; then
5760
packages=(polkadot polkadot-prepare-worker polkadot-execute-worker)
5861
for package in "${packages[@]}"; do
59-
fetch_release_artifacts_from_s3 $package ${{ inputs.target }}
62+
OUTPUT_DIR="./release-artifacts/$TARGET/${package}"
63+
fetch_release_artifacts_from_s3 "$package" "$TARGET"
6064
done
65+
NODE_VERSION="$(get_polkadot_node_version_from_code)"
66+
fetch_debian_package_from_s3 polkadot
6167
else
62-
fetch_release_artifacts_from_s3 ${{ inputs.package }} ${{ inputs.target }}
68+
fetch_release_artifacts_from_s3 "$PACKAGE" "$TARGET"
6369
fi
6470
6571
- name: Configure AWS Credentials
@@ -73,11 +79,11 @@ jobs:
7379
run: |
7480
. ./.github/scripts/release/release_lib.sh
7581
76-
if [[ ${{ inputs.package }} == 'polkadot' ]]; then
82+
if [[ "$PACKAGE" == 'polkadot' ]]; then
7783
packages=(polkadot polkadot-prepare-worker polkadot-execute-worker)
7884
for package in "${packages[@]}"; do
7985
upload_s3_release $package ${{ steps.prepare_final_tag.outputs.final_tag }} ${{ inputs.target }}
8086
done
8187
else
82-
upload_s3_release ${{ inputs.package }} ${{ steps.prepare_final_tag.outputs.final_tag }} ${{ inputs.target }}
88+
upload_s3_release "$PACKAGE" ${{ steps.prepare_final_tag.outputs.final_tag }} "$TARGET"
8389
fi

.github/workflows/release-reusable-rc-buid.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
type: string
1616

1717
release_tag:
18-
description: Tag matching the actual release candidate with the format stableYYMM-rcX or stableYYMM
18+
description: Tag matching the actual release candidate with the format polkadpt-stableYYMM(-rcX) or plkadot-stableYYMM-X(-rcX)
1919
required: true
2020
type: string
2121

.github/workflows/reusable-preflight.yml

+16-16
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ jobs:
7878
preflight:
7979
runs-on: ubuntu-latest
8080
outputs:
81-
changes_rust: ${{ steps.set_changes.outputs.rust_any_changed || steps.set_changes.outputs.currentWorkflow_any_changed }}
82-
changes_currentWorkflow: ${{ steps.set_changes.outputs.currentWorkflow_any_changed }}
81+
changes_rust: true
82+
changes_currentWorkflow: true
8383

8484
IMAGE: ${{ steps.set_image.outputs.IMAGE }}
8585

@@ -112,19 +112,20 @@ jobs:
112112
echo "currentWorkflowFile=$(echo ${{ github.workflow_ref }} | sed -nE "s/.*(\.github\/workflows\/[a-zA-Z0-9_-]*\.y[a]?ml)@refs.*/\1/p")" >> $GITHUB_OUTPUT
113113
echo "currentActionDir=$(echo ${{ github.action_path }} | sed -nE "s/.*(\.github\/actions\/[a-zA-Z0-9_-]*)/\1/p")" >> $GITHUB_OUTPUT
114114
115-
- name: Set changes
116-
id: set_changes
117-
uses: tj-actions/changed-files@v45
118-
with:
119-
files_yaml: |
120-
rust:
121-
- '**/*'
122-
- '!.github/**/*'
123-
- '!prdoc/**/*'
124-
- '!docs/**/*'
125-
currentWorkflow:
126-
- '${{ steps.current_file.outputs.currentWorkflowFile }}'
127-
- '.github/workflows/reusable-preflight.yml'
115+
# removed due to https://news.ycombinator.com/item?id=43368870
116+
#- name: Set changes
117+
# id: set_changes
118+
# uses: tj-actions/changed-files@v45
119+
# with:
120+
# files_yaml: |
121+
# rust:
122+
# - '**/*'
123+
# - '!.github/**/*'
124+
# - '!prdoc/**/*'
125+
# - '!docs/**/*'
126+
# currentWorkflow:
127+
# - '${{ steps.current_file.outputs.currentWorkflowFile }}'
128+
# - '.github/workflows/reusable-preflight.yml'
128129

129130
#
130131
# Set image
@@ -180,7 +181,6 @@ jobs:
180181
shell: bash
181182
run: |
182183
echo "workflow file: ${{ steps.current_file.outputs.currentWorkflowFile }}"
183-
echo "Modified: ${{ steps.set_changes.outputs.modified_keys }}"
184184
185185
#
186186
#

0 commit comments

Comments
 (0)