Skip to content

Commit 5db2d43

Browse files
committed
* 'master' of https://github.com/metaspan/polkadot-sdk: (65 commits) Introduces `TypeWithDefault<T, D: Get<T>>` (paritytech#4034) Publish `polkadot-sdk-frame` crate (paritytech#4370) Add validate field to prdoc (paritytech#4368) State trie migration on asset-hub westend and collectives westend (paritytech#4185) Fix: dust unbonded for zero existential deposit (paritytech#4364) Bridge: added subcommand to relay single parachain header (paritytech#4365) Bridge: fix zombienet tests (paritytech#4367) [WIP][CI] Add more GHA jobs (paritytech#4270) Allow for 0 existential deposit in benchmarks for `pallet_staking`, `pallet_session`, and `pallet_balances` (paritytech#4346) Deprecate `NativeElseWasmExecutor` (paritytech#4329) More `xcm::v4` cleanup and `xcm_fee_payment_runtime_api::XcmPaymentApi` nits (paritytech#4355) sc-tracing: enable env-filter feature (paritytech#4357) deps: update jsonrpsee to v0.22.5 (paritytech#4330) Add PoV-reclaim enablement guide to polkadot-sdk-docs (paritytech#4244) cargo: Update experimental litep2p to latest version (paritytech#4344) Bridge: ignore client errors when calling recently added `*_free_headers_interval` methods (paritytech#4350) Make parachain template great again (and async backing ready) (paritytech#4295) [Backport] Version bumps and reorg prdocs from 1.11.0 (paritytech#4336) HRMP - set `DefaultChannelSizeAndCapacityWithSystem` with dynamic values according to the `ActiveConfig` (paritytech#4332) Statement Distribution Per Peer Rate Limit (paritytech#3444) ...
2 parents b6854b9 + 473c43e commit 5db2d43

File tree

516 files changed

+13627
-5604
lines changed

Some content is hidden

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

516 files changed

+13627
-5604
lines changed

.github/env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
IMAGE="docker.io/paritytech/ci-unified:bullseye-1.77.0-2024-04-10-v20240408"

.github/workflows/quick-checks.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Checks that doesn't require heavy lifting, like formatting, linting, etc.
2+
name: quick-checks
3+
4+
on:
5+
pull_request:
6+
types: [opened, synchronize, reopened, ready_for_review]
7+
merge_group:
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
set-image:
14+
# GitHub Actions allows using 'env' in a container context.
15+
# However, env variables don't work for forks: https://github.com/orgs/community/discussions/44322
16+
# This workaround sets the container image for each job using 'set-image' job output.
17+
runs-on: arc-runners-polkadot-sdk-default
18+
timeout-minutes: 10
19+
outputs:
20+
IMAGE: ${{ steps.set_image.outputs.IMAGE }}
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
- id: set_image
25+
run: cat .github/env >> $GITHUB_OUTPUT
26+
fmt:
27+
runs-on: arc-runners-polkadot-sdk-default
28+
timeout-minutes: 10
29+
needs: [set-image]
30+
container:
31+
image: ${{ needs.set-image.outputs.IMAGE }}
32+
steps:
33+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
34+
- name: Cargo fmt
35+
run: cargo +nightly fmt --all -- --check
36+
check-dependency-rules:
37+
runs-on: arc-runners-polkadot-sdk-default
38+
timeout-minutes: 10
39+
needs: [set-image]
40+
container:
41+
image: ${{ needs.set-image.outputs.IMAGE }}
42+
steps:
43+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
44+
- name: check dependency rules
45+
run: |
46+
cd substrate/
47+
../.gitlab/ensure-deps.sh
48+
check-rust-feature-propagation:
49+
runs-on: arc-runners-polkadot-sdk-default
50+
# runs-on: ubuntu-latest
51+
timeout-minutes: 10
52+
needs: [set-image]
53+
container:
54+
image: ${{ needs.set-image.outputs.IMAGE }}
55+
steps:
56+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
57+
- name: run zepter
58+
run: zepter run check
59+
test-rust-features:
60+
runs-on: arc-runners-polkadot-sdk-default
61+
# runs-on: ubuntu-latest
62+
timeout-minutes: 10
63+
needs: [set-image]
64+
container:
65+
image: ${{ needs.set-image.outputs.IMAGE }}
66+
steps:
67+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
68+
- name: run rust features
69+
run: bash .gitlab/rust-features.sh .
70+
check-toml-format:
71+
runs-on: arc-runners-polkadot-sdk-default
72+
timeout-minutes: 10
73+
needs: [set-image]
74+
container:
75+
image: ${{ needs.set-image.outputs.IMAGE }}
76+
steps:
77+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
78+
- name: check toml format
79+
run: |
80+
taplo format --check --config .config/taplo.toml
81+
echo "Please run `taplo format --config .config/taplo.toml` to fix any toml formatting issues"

.github/workflows/review-bot.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,41 @@ on:
55
- Review-Trigger
66
types:
77
- completed
8+
workflow_dispatch:
9+
inputs:
10+
pr-number:
11+
description: "Number of the PR to evaluate"
12+
required: true
13+
type: number
814

915
jobs:
1016
review-approvals:
1117
runs-on: ubuntu-latest
1218
environment: master
1319
steps:
20+
- name: Generate token
21+
id: app_token
22+
uses: actions/[email protected]
23+
with:
24+
app-id: ${{ secrets.REVIEW_APP_ID }}
25+
private-key: ${{ secrets.REVIEW_APP_KEY }}
1426
- name: Extract content of artifact
27+
if: ${{ !inputs.pr-number }}
1528
id: number
16-
uses: Bullrich/[email protected].0
29+
uses: Bullrich/[email protected].1
1730
with:
1831
artifact-name: pr_number
19-
- name: Generate token
20-
id: app_token
21-
uses: tibdex/github-app-token@v1
22-
with:
23-
app_id: ${{ secrets.REVIEW_APP_ID }}
24-
private_key: ${{ secrets.REVIEW_APP_KEY }}
2532
- name: "Evaluates PR reviews and assigns reviewers"
2633
uses: paritytech/[email protected]
2734
with:
2835
repo-token: ${{ steps.app_token.outputs.token }}
2936
team-token: ${{ steps.app_token.outputs.token }}
3037
checks-token: ${{ steps.app_token.outputs.token }}
31-
pr-number: ${{ steps.number.outputs.content }}
38+
# This is extracted from the triggering event
39+
pr-number: ${{ inputs.pr-number || steps.number.outputs.content }}
3240
request-reviewers: true
41+
- name: Log payload
42+
if: ${{ failure() || runner.debug }}
43+
run: echo "::debug::$payload"
44+
env:
45+
payload: ${{ toJson(github.event) }}

.github/workflows/review-trigger.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ jobs:
4545
4646
# We request them to review again
4747
echo $REVIEWERS | gh api --method POST repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers --input -
48-
48+
4949
echo "::error::Project needs to be reviewed again"
5050
exit 1
5151
env:
5252
GH_TOKEN: ${{ github.token }}
5353
- name: Comment requirements
5454
# If the previous step failed and github-actions hasn't commented yet we comment instructions
5555
if: failure() && !contains(fromJson(steps.comments.outputs.bodies), 'Review required! Latest push from author must always be reviewed')
56-
run: |
56+
run: |
5757
gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "Review required! Latest push from author must always be reviewed"
5858
env:
5959
GH_TOKEN: ${{ github.token }}
@@ -65,7 +65,7 @@ jobs:
6565
echo "Saving PR number: $PR_NUMBER"
6666
mkdir -p ./pr
6767
echo $PR_NUMBER > ./pr/pr_number
68-
- uses: actions/upload-artifact@v3
68+
- uses: actions/upload-artifact@v4
6969
name: Save PR number
7070
with:
7171
name: pr_number

.github/workflows/test-github-actions.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,25 @@ concurrency:
88
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
99
cancel-in-progress: true
1010

11-
env:
12-
CARGO_NET_GIT_FETCH_WITH_CLI: true
13-
1411
jobs:
12+
set-image:
13+
# GitHub Actions allows using 'env' in a container context.
14+
# However, env variables don't work for forks: https://github.com/orgs/community/discussions/44322
15+
# This workaround sets the container image for each job using 'set-image' job output.
16+
runs-on: ubuntu-latest
17+
outputs:
18+
IMAGE: ${{ steps.set_image.outputs.IMAGE }}
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
- id: set_image
23+
run: cat .github/env >> $GITHUB_OUTPUT
1524
test-linux-stable-int:
16-
runs-on: arc-runners-polkadot-sdk
25+
runs-on: arc-runners-polkadot-sdk-beefy
1726
timeout-minutes: 30
27+
needs: [set-image]
1828
container:
19-
image: "docker.io/paritytech/ci-unified:bullseye-1.77.0-2024-04-10-v20240408"
29+
image: ${{ needs.set-image.outputs.IMAGE }}
2030
env:
2131
RUSTFLAGS: "-C debug-assertions -D warnings"
2232
RUST_BACKTRACE: 1
@@ -30,10 +40,11 @@ jobs:
3040
- name: script
3141
run: WASM_BUILD_NO_COLOR=1 time cargo test -p staging-node-cli --release --locked -- --ignored
3242
quick-benchmarks:
33-
runs-on: arc-runners-polkadot-sdk
43+
runs-on: arc-runners-polkadot-sdk-beefy
3444
timeout-minutes: 30
45+
needs: [set-image]
3546
container:
36-
image: "docker.io/paritytech/ci-unified:bullseye-1.77.0-2024-04-10-v20240408"
47+
image: ${{ needs.set-image.outputs.IMAGE }}
3748
env:
3849
RUSTFLAGS: "-C debug-assertions -D warnings"
3950
RUST_BACKTRACE: "full"
@@ -43,4 +54,4 @@ jobs:
4354
- name: Checkout
4455
uses: actions/checkout@v4
4556
- name: script
46-
run: time cargo run --locked --release -p staging-node-cli --bin substrate-node --features runtime-benchmarks --quiet -- benchmark pallet --chain dev --pallet "*" --extrinsic "*" --steps 2 --repeat 1 --quiet
57+
run: time cargo run --locked --release -p staging-node-cli --bin substrate-node --features runtime-benchmarks -- benchmark pallet --chain dev --pallet "*" --extrinsic "*" --steps 2 --repeat 1 --quiet

.gitlab/pipeline/zombienet/bridges.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ zombienet-bridges-0001-asset-transfer-works:
5555
- /home/nonroot/bridges-polkadot-sdk/bridges/testing/run-new-test.sh 0001-asset-transfer --docker
5656
- echo "Done"
5757

58-
zombienet-bridges-0002-mandatory-headers-synced-while-idle:
58+
zombienet-bridges-0002-free-headers-synced-while-idle:
5959
extends:
6060
- .zombienet-bridges-common
6161
script:
62-
- /home/nonroot/bridges-polkadot-sdk/bridges/testing/run-new-test.sh 0002-mandatory-headers-synced-while-idle --docker
62+
- /home/nonroot/bridges-polkadot-sdk/bridges/testing/run-new-test.sh 0002-free-headers-synced-while-idle --docker
6363
- echo "Done"

.gitlab/pipeline/zombienet/polkadot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,14 @@ zombienet-polkadot-elastic-scaling-0002-elastic-scaling-doesnt-break-parachains:
176176
--local-dir="${LOCAL_DIR}/elastic_scaling"
177177
--test="0002-elastic-scaling-doesnt-break-parachains.zndsl"
178178

179+
zombienet-polkadot-functional-0012-spam-statement-distribution-requests:
180+
extends:
181+
- .zombienet-polkadot-common
182+
script:
183+
- /home/nonroot/zombie-net/scripts/ci/run-test-local-env-manager.sh
184+
--local-dir="${LOCAL_DIR}/functional"
185+
--test="0012-spam-statement-distribution-requests.zndsl"
186+
179187
zombienet-polkadot-smoke-0001-parachains-smoke-test:
180188
extends:
181189
- .zombienet-polkadot-common

0 commit comments

Comments
 (0)