Skip to content

Commit 5dc877e

Browse files
committed
Merge remote-tracking branch 'origin/master' into alindima/add-systematic-chunks-av-recovery
2 parents 84ca508 + 289f5bb commit 5dc877e

File tree

502 files changed

+9428
-4730
lines changed

Some content is hidden

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

502 files changed

+9428
-4730
lines changed

.config/lychee.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,8 @@ exclude = [
3434
"https://github.com/zkcrypto/bls12_381/blob/e224ad4ea1babfc582ccd751c2bf128611d10936/src/test-data/mod.rs",
3535
"https://polkadot-try-runtime-node.parity-chains.parity.io/",
3636
"https://polkadot.network/the-path-of-a-parachain-block/",
37-
"https://research.web3.foundation/en/latest/polkadot/BABE/Babe/#6-practical-results",
3837
"https://research.web3.foundation/en/latest/polkadot/NPoS/3.%20Balancing.html",
3938
"https://research.web3.foundation/en/latest/polkadot/Token%20Economics.html#inflation-model",
40-
"https://research.web3.foundation/en/latest/polkadot/block-production/Babe.html",
41-
"https://research.web3.foundation/en/latest/polkadot/block-production/Babe.html#-6.-practical-results",
4239
"https://research.web3.foundation/en/latest/polkadot/networking/3-avail-valid.html#topology",
4340
"https://research.web3.foundation/en/latest/polkadot/overview/2-token-economics.html",
4441
"https://research.web3.foundation/en/latest/polkadot/overview/2-token-economics.html#inflation-model",

.forklift/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobsBlackList = []
1010
logLevel = "warn"
1111
threadsCount = 6
1212

13+
[cache]
14+
extraEnv = ["RUNTIME_METADATA_HASH"]
15+
1316
[metrics]
1417
enabled = true
1518
pushEndpoint = "placeholder"

.github/workflows/check-licenses.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ permissions:
1010
jobs:
1111
check-licenses:
1212
runs-on: ubuntu-latest
13+
timeout-minutes: 10
1314
env:
1415
LICENSES: "'Apache-2.0' 'GPL-3.0-only' 'GPL-3.0-or-later WITH Classpath-exception-2.0'"
1516
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/check-markdown.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
name: check-runtime-migration
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types: [opened, synchronize, reopened, ready_for_review]
9+
merge_group:
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
14+
env:
15+
FORKLIFT_storage_s3_bucketName: ${{ secrets.FORKLIFT_storage_s3_bucketName }}
16+
FORKLIFT_storage_s3_accessKeyId: ${{ secrets.FORKLIFT_storage_s3_accessKeyId }}
17+
FORKLIFT_storage_s3_secretAccessKey: ${{ secrets.FORKLIFT_storage_s3_secretAccessKey }}
18+
FORKLIFT_storage_s3_endpointUrl: ${{ secrets.FORKLIFT_storage_s3_endpointUrl }}
19+
FORKLIFT_metrics_pushEndpoint: ${{ secrets.FORKLIFT_metrics_pushEndpoint }}
20+
21+
jobs:
22+
set-image:
23+
# GitHub Actions allows using 'env' in a container context.
24+
# However, env variables don't work for forks: https://github.com/orgs/community/discussions/44322
25+
# This workaround sets the container image for each job using 'set-image' job output.
26+
runs-on: ubuntu-latest
27+
outputs:
28+
IMAGE: ${{ steps.set_image.outputs.IMAGE }}
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
- id: set_image
33+
run: cat .github/env >> $GITHUB_OUTPUT
34+
# rococo and westend are disabled for now (no access to parity-chains.parity.io)
35+
check-runtime-migration:
36+
runs-on: arc-runners-polkadot-sdk-beefy
37+
timeout-minutes: 30
38+
needs: [set-image]
39+
container:
40+
image: ${{ needs.set-image.outputs.IMAGE }}
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
network: [
45+
# westend,
46+
# rococo,
47+
asset-hub-westend,
48+
asset-hub-rococo,
49+
bridge-hub-westend,
50+
bridge-hub-rococo,
51+
contracts-rococo,
52+
collectives-westend,
53+
coretime-rococo,
54+
]
55+
include:
56+
# - network: westend
57+
# package: westend-runtime
58+
# wasm: westend_runtime.compact.compressed.wasm
59+
# uri: "wss://westend-try-runtime-node.parity-chains.parity.io:443"
60+
# subcommand_extra_args: "--no-weight-warnings"
61+
# command_extra_args: ""
62+
# - network: rococo
63+
# package: rococo-runtime
64+
# wasm: rococo_runtime.compact.compressed.wasm
65+
# uri: "wss://rococo-try-runtime-node.parity-chains.parity.io:443"
66+
# subcommand_extra_args: "--no-weight-warnings"
67+
# command_extra_args: ""
68+
- network: asset-hub-westend
69+
package: asset-hub-westend-runtime
70+
wasm: asset_hub_westend_runtime.compact.compressed.wasm
71+
uri: "wss://westend-asset-hub-rpc.polkadot.io:443"
72+
subcommand_extra_args: ""
73+
command_extra_args: ""
74+
- network: "asset-hub-rococo"
75+
package: "asset-hub-rococo-runtime"
76+
wasm: "asset_hub_rococo_runtime.compact.compressed.wasm"
77+
uri: "wss://rococo-asset-hub-rpc.polkadot.io:443"
78+
subcommand_extra_args: ""
79+
command_extra_args: ""
80+
- network: "bridge-hub-westend"
81+
package: "bridge-hub-westend-runtime"
82+
wasm: "bridge_hub_westend_runtime.compact.compressed.wasm"
83+
uri: "wss://westend-bridge-hub-rpc.polkadot.io:443"
84+
- network: "bridge-hub-rococo"
85+
package: "bridge-hub-rococo-runtime"
86+
wasm: "bridge_hub_rococo_runtime.compact.compressed.wasm"
87+
uri: "wss://rococo-bridge-hub-rpc.polkadot.io:443"
88+
- network: "contracts-rococo"
89+
package: "contracts-rococo-runtime"
90+
wasm: "contracts_rococo_runtime.compact.compressed.wasm"
91+
uri: "wss://rococo-contracts-rpc.polkadot.io:443"
92+
- network: "collectives-westend"
93+
package: "collectives-westend-runtime"
94+
wasm: "collectives_westend_runtime.compact.compressed.wasm"
95+
uri: "wss://westend-collectives-rpc.polkadot.io:443"
96+
command_extra_args: "--disable-spec-name-check"
97+
- network: "coretime-rococo"
98+
package: "coretime-rococo-runtime"
99+
wasm: "coretime_rococo_runtime.compact.compressed.wasm"
100+
uri: "wss://rococo-coretime-rpc.polkadot.io:443"
101+
steps:
102+
- name: Checkout
103+
uses: actions/checkout@v4
104+
- name: script
105+
run: |
106+
echo "Running ${{ matrix.network }} runtime migration check"
107+
export RUST_LOG=remote-ext=debug,runtime=debug
108+
109+
echo "---------- Downloading try-runtime CLI ----------"
110+
curl -sL https://github.com/paritytech/try-runtime-cli/releases/download/v0.5.4/try-runtime-x86_64-unknown-linux-musl -o try-runtime
111+
chmod +x ./try-runtime
112+
echo "Using try-runtime-cli version:"
113+
./try-runtime --version
114+
115+
echo "---------- Building ${{ matrix.package }} runtime ----------"
116+
time forklift cargo build --release --locked -p ${{ matrix.package }} --features try-runtime
117+
118+
echo "---------- Executing on-runtime-upgrade for ${{ matrix.network }} ----------"
119+
time ./try-runtime ${{ matrix.command_extra_args }} \
120+
--runtime ./target/release/wbuild/${{ matrix.package }}/${{ matrix.wasm }} \
121+
on-runtime-upgrade --disable-spec-version-check --checks=all ${{ matrix.subcommand_extra_args }} live --uri ${{ matrix.uri }}
122+
sleep 5

.github/workflows/check-workspace.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/quick-checks.yml renamed to .github/workflows/checks-quick.yml

Lines changed: 48 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,24 @@
22
name: quick-checks
33

44
on:
5+
push:
6+
branches:
7+
- master
58
pull_request:
69
types: [opened, synchronize, reopened, ready_for_review]
710
merge_group:
811
concurrency:
912
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1013
cancel-in-progress: true
1114

15+
permissions: {}
16+
1217
jobs:
1318
set-image:
1419
# GitHub Actions allows using 'env' in a container context.
1520
# However, env variables don't work for forks: https://github.com/orgs/community/discussions/44322
1621
# This workaround sets the container image for each job using 'set-image' job output.
17-
runs-on: arc-runners-polkadot-sdk
22+
runs-on: ubuntu-latest
1823
timeout-minutes: 10
1924
outputs:
2025
IMAGE: ${{ steps.set_image.outputs.IMAGE }}
@@ -24,7 +29,7 @@ jobs:
2429
- id: set_image
2530
run: cat .github/env >> $GITHUB_OUTPUT
2631
fmt:
27-
runs-on: arc-runners-polkadot-sdk
32+
runs-on: ubuntu-latest
2833
timeout-minutes: 10
2934
needs: [set-image]
3035
container:
@@ -34,19 +39,16 @@ jobs:
3439
- name: Cargo fmt
3540
run: cargo +nightly fmt --all -- --check
3641
check-dependency-rules:
37-
runs-on: arc-runners-polkadot-sdk
42+
runs-on: ubuntu-latest
3843
timeout-minutes: 10
39-
needs: [set-image]
40-
container:
41-
image: ${{ needs.set-image.outputs.IMAGE }}
4244
steps:
4345
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4446
- name: check dependency rules
4547
run: |
4648
cd substrate/
4749
../.gitlab/ensure-deps.sh
4850
check-rust-feature-propagation:
49-
runs-on: arc-runners-polkadot-sdk
51+
runs-on: ubuntu-latest
5052
timeout-minutes: 10
5153
needs: [set-image]
5254
container:
@@ -56,7 +58,7 @@ jobs:
5658
- name: run zepter
5759
run: zepter run check
5860
test-rust-features:
59-
runs-on: arc-runners-polkadot-sdk
61+
runs-on: ubuntu-latest
6062
timeout-minutes: 10
6163
needs: [set-image]
6264
container:
@@ -66,7 +68,7 @@ jobs:
6668
- name: run rust features
6769
run: bash .gitlab/rust-features.sh .
6870
check-toml-format:
69-
runs-on: arc-runners-polkadot-sdk
71+
runs-on: ubuntu-latest
7072
timeout-minutes: 10
7173
needs: [set-image]
7274
container:
@@ -77,3 +79,40 @@ jobs:
7779
run: |
7880
taplo format --check --config .config/taplo.toml
7981
echo "Please run `taplo format --config .config/taplo.toml` to fix any toml formatting issues"
82+
check-workspace:
83+
runs-on: ubuntu-latest
84+
timeout-minutes: 10
85+
steps:
86+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.0 (22. Sep 2023)
87+
- name: install python deps
88+
run: |
89+
sudo apt-get update && sudo apt-get install -y python3-pip python3
90+
pip3 install toml
91+
- name: check integrity
92+
run: >
93+
python3 .github/scripts/check-workspace.py .
94+
--exclude
95+
"substrate/frame/contracts/fixtures/build"
96+
"substrate/frame/contracts/fixtures/contracts/common"
97+
check-markdown:
98+
runs-on: ubuntu-latest
99+
timeout-minutes: 10
100+
steps:
101+
- name: Checkout sources
102+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
103+
- name: Setup Node.js
104+
uses: actions/[email protected]
105+
with:
106+
node-version: "18.x"
107+
registry-url: "https://npm.pkg.github.com"
108+
scope: "@paritytech"
109+
- name: Install tooling
110+
run: |
111+
npm install -g markdownlint-cli
112+
markdownlint --version
113+
- name: Check Markdown
114+
env:
115+
CONFIG: .github/.markdownlint.yaml
116+
run: |
117+
echo "Checking markdown formatting. More info: docs/contributor/markdown_linting.md"
118+
markdownlint --config "$CONFIG" --ignore target .

.github/workflows/fmt-check.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)