Skip to content

Commit 283fec0

Browse files
authored
Merge branch 'master' into sw10pa/remove-runtime-api-version-checks
2 parents 291cc3d + 38d2fa8 commit 283fec0

File tree

1,477 files changed

+67251
-49420
lines changed

Some content is hidden

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

1,477 files changed

+67251
-49420
lines changed

.config/lychee.toml

+5
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,15 @@ exclude = [
5252
# Behind a captcha (code 403):
5353
"https://chainlist.org/chain/*",
5454
"https://iohk.io/en/blog/posts/2023/11/03/partner-chains-are-coming-to-cardano/",
55+
"https://polymesh.network",
5556
"https://www.reddit.com/r/rust/comments/3spfh1/does_collect_allocate_more_than_once_while/",
5657

5758
# 403 rate limited:
5859
"https://etherscan.io/block/11090290",
5960
"https://subscan.io/",
6061
"https://substrate.stackexchange.com/.*",
62+
63+
# Exclude strings which contain templates like {} and {:?}
64+
"%7B%7D",
65+
"%7B:\\?}",
6166
]

.config/taplo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ exclude = [
66
"cumulus/zombienet/**",
77
"polkadot/node/malus/integrationtests/**",
88
"polkadot/zombienet_tests/**",
9+
"substrate/client/transaction-pool/tests/zombienet/**",
910
"substrate/zombienet/**",
1011
"target/**",
1112
]
@@ -14,7 +15,7 @@ exclude = [
1415
[formatting]
1516
reorder_arrays = true
1617
inline_table_expand = false
17-
array_auto_expand = false
18+
array_auto_expand = true
1819
array_auto_collapse = false
1920
indent_string = " " # tab
2021

.forklift/config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ project_name = "$CI_PROJECT_PATH"
2626
type = "gcs"
2727

2828
[storage.gcs]
29-
bucketName = "parity-ci-forklift"
29+
bucketName = "parity-ci-forklift-regional"

.github/env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
IMAGE="docker.io/paritytech/ci-unified:bullseye-1.81.0-2024-11-19-v202411281558"
1+
IMAGE="docker.io/paritytech/ci-unified:bullseye-1.84.1-2025-01-28-v202502131220"

.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/benchmarks-subsystem.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ permissions:
1616
contents: read
1717

1818
jobs:
19+
isdraft:
20+
uses: ./.github/workflows/reusable-isdraft.yml
1921
preflight:
22+
needs: isdraft
2023
uses: ./.github/workflows/reusable-preflight.yml
21-
2224
build:
2325
timeout-minutes: 80
2426
needs: [preflight]

.github/workflows/build-misc.yml

+3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ permissions:
1616
contents: read
1717

1818
jobs:
19+
isdraft:
20+
uses: ./.github/workflows/reusable-isdraft.yml
1921
preflight:
22+
needs: isdraft
2023
uses: ./.github/workflows/reusable-preflight.yml
2124

2225
build-runtimes-polkavm:

.github/workflows/build-publish-eth-rpc.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- master
77
pull_request:
8-
types: [opened, synchronize, reopened, ready_for_review, labeled]
8+
types: [opened, synchronize, reopened, ready_for_review]
99

1010
concurrency:
1111
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -15,10 +15,13 @@ env:
1515
ETH_RPC_IMAGE_NAME: "docker.io/paritypr/eth-rpc"
1616

1717
jobs:
18+
isdraft:
19+
uses: ./.github/workflows/reusable-isdraft.yml
1820
set-variables:
1921
# This workaround sets the container image for each job using 'set-variables' job output.
2022
# env variables don't work for PR from forks, so we need to use outputs.
2123
runs-on: ubuntu-latest
24+
needs: isdraft
2225
outputs:
2326
VERSION: ${{ steps.version.outputs.VERSION }}
2427
steps:
@@ -77,4 +80,3 @@ jobs:
7780
push: true
7881
tags: |
7982
${{ env.ETH_RPC_IMAGE_NAME }}:${{ env.VERSION }}
80-

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

+67-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches:
77
- master
88
pull_request:
9-
types: [opened, synchronize, reopened, ready_for_review, labeled]
9+
types: [opened, synchronize, reopened, ready_for_review]
1010
merge_group:
1111
concurrency:
1212
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -18,7 +18,10 @@ jobs:
1818
#
1919
#
2020
#
21+
isdraft:
22+
uses: ./.github/workflows/reusable-isdraft.yml
2123
preflight:
24+
needs: isdraft
2225
uses: ./.github/workflows/reusable-preflight.yml
2326

2427
### Build ########################
@@ -263,6 +266,9 @@ jobs:
263266
path: artifacts.tar
264267
retention-days: 1
265268

269+
270+
### Build zombienet test artifacts ########################
271+
266272
#
267273
#
268274
#
@@ -293,6 +299,66 @@ jobs:
293299
path: artifacts.tar
294300
retention-days: 1
295301

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+
296362
### Publish ########################
297363

298364
#

.github/workflows/check-cargo-check-runtimes.yml

+3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ on:
1313
# Jobs in this workflow depend on each other, only for limiting peak amount of spawned workers
1414

1515
jobs:
16+
isdraft:
17+
uses: ./.github/workflows/reusable-isdraft.yml
1618
preflight:
19+
needs: isdraft
1720
uses: ./.github/workflows/reusable-preflight.yml
1821

1922
check-runtime-assets:

.github/workflows/check-frame-omni-bencher.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- master
77
pull_request:
8-
types: [opened, synchronize, reopened, ready_for_review, labeled]
8+
types: [opened, synchronize, reopened, ready_for_review]
99
merge_group:
1010

1111
concurrency:
@@ -16,7 +16,10 @@ env:
1616
ARTIFACTS_NAME: frame-omni-bencher-artifacts
1717

1818
jobs:
19+
isdraft:
20+
uses: ./.github/workflows/reusable-isdraft.yml
1921
preflight:
22+
needs: isdraft
2023
uses: ./.github/workflows/reusable-preflight.yml
2124

2225
quick-benchmarks-omni:

.github/workflows/check-getting-started.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,19 @@ on:
2626
paths:
2727
- ".github/workflows/check-getting-started.yml"
2828
- "scripts/getting-started.sh"
29+
types: [opened, synchronize, reopened, ready_for_review]
2930
schedule:
3031
- cron: "0 5 * * *"
31-
workflow_dispatch:
3232

3333
concurrency:
3434
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
3535
cancel-in-progress: true
3636

3737
jobs:
38+
isdraft:
39+
uses: ./.github/workflows/reusable-isdraft.yml
3840
check-getting-started:
41+
needs: isdraft
3942
strategy:
4043
fail-fast: true
4144
matrix:
@@ -179,6 +182,7 @@ jobs:
179182
timeout-minutes: 5
180183

181184
check-getting-started-macos:
185+
needs: isdraft
182186
strategy:
183187
fail-fast: true
184188
matrix:

.github/workflows/check-licenses.yml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Check licenses
22

33
on:
44
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
56
merge_group:
67

78
concurrency:
@@ -12,8 +13,11 @@ permissions:
1213
packages: read
1314

1415
jobs:
16+
isdraft:
17+
uses: ./.github/workflows/reusable-isdraft.yml
1518
check-licenses:
1619
runs-on: ubuntu-latest
20+
needs: isdraft
1721
timeout-minutes: 10
1822
env:
1923
LICENSES: "'Apache-2.0' 'GPL-3.0-only' 'GPL-3.0-or-later WITH Classpath-exception-2.0' 'MIT-0' 'Unlicense'"

.github/workflows/check-links.yml

+3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ permissions:
1818
packages: read
1919

2020
jobs:
21+
isdraft:
22+
uses: ./.github/workflows/reusable-isdraft.yml
2123
link-checker:
2224
runs-on: ubuntu-latest
25+
needs: isdraft
2326
timeout-minutes: 10
2427
steps:
2528
- name: Restore lychee cache

.github/workflows/check-runtime-migration.yml

+3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ concurrency:
1919
permissions: {}
2020

2121
jobs:
22+
isdraft:
23+
uses: ./.github/workflows/reusable-isdraft.yml
2224
preflight:
25+
needs: isdraft
2326
uses: ./.github/workflows/reusable-preflight.yml
2427

2528
# More info can be found here: https://github.com/paritytech/polkadot/pull/5865

.github/workflows/check-semver.yml

+3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ env:
1414
TOOLCHAIN: nightly-2024-11-19
1515

1616
jobs:
17+
isdraft:
18+
uses: ./.github/workflows/reusable-isdraft.yml
1719
preflight:
20+
needs: isdraft
1821
uses: ./.github/workflows/reusable-preflight.yml
1922
check-semver:
2023
runs-on: ubuntu-latest

.github/workflows/checks-quick.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ concurrency:
1515
permissions: {}
1616

1717
jobs:
18+
isdraft:
19+
uses: ./.github/workflows/reusable-isdraft.yml
1820
preflight:
21+
needs: isdraft
1922
uses: ./.github/workflows/reusable-preflight.yml
2023

2124
fmt:
@@ -37,6 +40,7 @@ jobs:
3740
app-key: ${{ secrets.WORKFLOW_STOPPER_RUNNER_APP_KEY }}
3841
check-dependency-rules:
3942
runs-on: ubuntu-latest
43+
needs: isdraft
4044
timeout-minutes: 20
4145
steps:
4246
- uses: actions/checkout@6d193bf28034eafb982f37bd894289fe649468fc # v4.1.7
@@ -84,6 +88,7 @@ jobs:
8488
echo "Please run `taplo format --config .config/taplo.toml` to fix any toml formatting issues"
8589
check-workspace:
8690
runs-on: ubuntu-latest
91+
needs: isdraft
8792
timeout-minutes: 20
8893
steps:
8994
- uses: actions/checkout@6d193bf28034eafb982f37bd894289fe649468fc # v4.1.0 (22. Sep 2023)
@@ -97,11 +102,11 @@ jobs:
97102
--exclude
98103
"substrate/frame/contracts/fixtures/build"
99104
"substrate/frame/contracts/fixtures/contracts/common"
100-
"substrate/frame/revive/fixtures/contracts/common"
101105
- name: deny git deps
102106
run: python3 .github/scripts/deny-git-deps.py .
103107
check-markdown:
104108
runs-on: ubuntu-latest
109+
needs: isdraft
105110
timeout-minutes: 20
106111
steps:
107112
- name: Checkout sources
@@ -154,6 +159,7 @@ jobs:
154159
fi
155160
check-fail-ci:
156161
runs-on: ubuntu-latest
162+
needs: isdraft
157163
container:
158164
# there's no "rg" in ci-unified, and tools is a smaller image anyway
159165
image: "paritytech/tools:latest"
@@ -179,6 +185,7 @@ jobs:
179185
GIT_DEPTH: 1
180186
check-readme:
181187
runs-on: ubuntu-latest
188+
needs: isdraft
182189
timeout-minutes: 10
183190
steps:
184191
- uses: actions/checkout@v4
@@ -195,7 +202,7 @@ jobs:
195202
echo "RUST_VERSION=${RUST_VERSION}" >> $GITHUB_ENV
196203
197204
- name: Install Rust
198-
uses: actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8 # v1.10.1
205+
uses: actions-rust-lang/setup-rust-toolchain@9399c7bb15d4c7d47b27263d024f0a4978346ba4 # v1.11.0
199206
with:
200207
cache: false
201208
toolchain: ${{ env.RUST_VERSION }}

0 commit comments

Comments
 (0)