Skip to content

Commit a3bcb2f

Browse files
committed
Merge branch 'master' into tsv-disabling-node-side
* master: (24 commits) Init System Parachain storage versions and add migration check jobs to CI (#1344) no-bound derives: Use absolute path for `core` (#1763) migrate alliance, fast-unstake and bags list to use derive-impl (#1636) Tvl pool staking (#1322) improve service error (#1734) frame-support: `RuntimeDebug\Eq\PartialEq` impls for `Imbalance` (#1717) Point documentation links to monorepo (#1741) [NPoS] Fix for Reward Deficit in the pool (#1255) Move import queue from `ChainSync` to `SyncingEngine` (#1736) Enable mocking contracts (#1331) Revert "fix(review-bot): pull secrets from `master` environment" (#1748) Remove kusama and polkadot runtime crates (#1731) Use `Extensions` to register offchain worker custom extensions (#1719) [RPC-Spec-V2] chainHead: use integer for block index and adjust RuntimeVersion JSON format (#1666) fix(review-bot): pull secrets from `master` environment (#1745) Fix `subkey inspect` output text padding (#1744) archive: Implement height, hashByHeight and call (#1582) rpc/client: Propagate `rpc_methods` method to reported methods (#1713) rococo-runtime: `RococoGenesisExt` removed (#1490) PVF: more filesystem sandboxing (#1373) ...
2 parents 2c53894 + db3fd68 commit a3bcb2f

File tree

350 files changed

+5870
-43502
lines changed

Some content is hidden

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

350 files changed

+5870
-43502
lines changed

.github/review-bot.yml

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
rules:
2+
- name: CI files
3+
condition:
4+
include:
5+
- ^\.gitlab-ci\.yml
6+
- ^docker/.*
7+
- ^\.github/.*
8+
- ^\.gitlab/.*
9+
- ^\.config/nextest.toml
10+
- ^\.cargo/.*
11+
exclude:
12+
- ^./gitlab/pipeline/zombienet.*
13+
min_approvals: 2
14+
type: basic
15+
teams:
16+
- ci
17+
- release-engineering
18+
19+
- name: Audit rules
20+
type: basic
21+
condition:
22+
include:
23+
- ^polkadot/runtime\/(kusama|polkadot|common)\/.*
24+
- ^polkadot/primitives/src\/.+\.rs$
25+
- ^substrate/primitives/.*
26+
- ^substrate/frame/.*
27+
exclude:
28+
- ^polkadot/runtime\/(kusama|polkadot)\/src\/weights\/.+\.rs$
29+
- ^substrate\/frame\/.+\.md$
30+
min_approvals: 1
31+
allowedToSkipRule:
32+
teams:
33+
- core-devs
34+
teams:
35+
- srlabs
36+
37+
- name: Core developers
38+
countAuthor: true
39+
condition:
40+
include:
41+
- .*
42+
# excluding files from 'Runtime files' and 'CI files' rules
43+
exclude:
44+
- ^polkadot/runtime/(kusama|polkadot)/src/[^/]+\.rs$
45+
- ^cumulus/parachains/runtimes/assets/(asset-hub-kusama|asset-hub-polkadot)/src/[^/]+\.rs$
46+
- ^cumulus/parachains/runtimes/bridge-hubs/(bridge-hub-kusama|bridge-hub-polkadot)/src/[^/]+\.rs$
47+
- ^cumulus/parachains/runtimes/collectives/collectives-polkadot/src/[^/]+\.rs$
48+
- ^cumulus/parachains/common/src/[^/]+\.rs$
49+
- ^substrate/frame/(?!.*(nfts/.*|uniques/.*|babe/.*|grandpa/.*|beefy|merkle-mountain-range/.*|contracts/.*|election|nomination-pools/.*|staking/.*|aura/.*))
50+
- ^polkadot/runtime/(kusama|polkadot)/src/[^/]+\.rs$
51+
- ^\.gitlab-ci\.yml
52+
- ^docker/.*
53+
- ^\.github/.*
54+
- ^\.gitlab/.*
55+
- ^\.config/nextest.toml
56+
- ^\.cargo/.*
57+
min_approvals: 2
58+
type: basic
59+
teams:
60+
- core-devs
61+
62+
# cumulus
63+
- name: Runtime files cumulus
64+
countAuthor: true
65+
condition:
66+
include:
67+
- ^cumulus/parachains/runtimes/assets/(asset-hub-kusama|asset-hub-polkadot)/src/[^/]+\.rs$
68+
- ^cumulus/parachains/runtimes/bridge-hubs/(bridge-hub-kusama|bridge-hub-polkadot)/src/[^/]+\.rs$
69+
- ^cumulus/parachains/runtimes/collectives/collectives-polkadot/src/[^/]+\.rs$
70+
- ^cumulus/parachains/common/src/[^/]+\.rs$
71+
type: and-distinct
72+
reviewers:
73+
- min_approvals: 1
74+
teams:
75+
- locks-review
76+
- min_approvals: 1
77+
teams:
78+
- polkadot-review
79+
80+
# if there are any changes in the bridges subtree (in case of backport changes back to bridges repo)
81+
- name: Bridges subtree files
82+
type: basic
83+
condition:
84+
include:
85+
- ^bridges/.*
86+
min_approvals: 1
87+
teams:
88+
- bridges-core
89+
90+
# substrate
91+
92+
- name: FRAME coders substrate
93+
condition:
94+
include:
95+
- ^substrate/frame/(?!.*(nfts/.*|uniques/.*|babe/.*|grandpa/.*|beefy|merkle-mountain-range/.*|contracts/.*|election|nomination-pools/.*|staking/.*|aura/.*))
96+
type: "and"
97+
reviewers:
98+
- min_approvals: 2
99+
teams:
100+
- core-devs
101+
- min_approvals: 1
102+
teams:
103+
- frame-coders
104+
105+
# Protection of THIS file
106+
- name: Review Bot
107+
condition:
108+
include:
109+
- review-bot\.yml
110+
min_approvals: 2
111+
type: "and"
112+
reviewers:
113+
- min_approvals: 1
114+
teams:
115+
- opstooling
116+
- min_approvals: 1
117+
teams:
118+
- locks-review
119+
- min_approvals: 1
120+
teams:
121+
- ci

.github/workflows/review-bot.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Review PR
2+
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
- reopened
7+
- synchronize
8+
- review_requested
9+
- review_request_removed
10+
- ready_for_review
11+
pull_request_review:
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
review-approvals:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Generate token
21+
id: team_token
22+
uses: tibdex/github-app-token@v1
23+
with:
24+
app_id: ${{ secrets.REVIEW_APP_ID }}
25+
private_key: ${{ secrets.REVIEW_APP_KEY }}
26+
- name: "Evaluates PR reviews and assigns reviewers"
27+
uses: paritytech/[email protected]
28+
with:
29+
repo-token: ${{ secrets.GITHUB_TOKEN }}
30+
team-token: ${{ steps.team_token.outputs.token }}
31+
checks-token: ${{ steps.team_token.outputs.token }}

.gitlab/pipeline/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,18 @@ build-linux-stable:
1919
RUN_UI_TESTS: 1
2020
script:
2121
- time cargo build --locked --profile testnet --features pyroscope,fast-runtime --bin polkadot --bin polkadot-prepare-worker --bin polkadot-execute-worker
22+
- time ROCOCO_EPOCH_DURATION=10 ./polkadot/scripts/build-only-wasm.sh rococo-runtime $(pwd)/runtimes/rococo-runtime-10/
23+
- time ROCOCO_EPOCH_DURATION=100 ./polkadot/scripts/build-only-wasm.sh rococo-runtime $(pwd)/runtimes/rococo-runtime-100/
24+
- time ROCOCO_EPOCH_DURATION=600 ./polkadot/scripts/build-only-wasm.sh rococo-runtime $(pwd)/runtimes/rococo-runtime-600/
25+
- pwd
26+
- ls -alR runtimes
2227
# pack artifacts
2328
- mkdir -p ./artifacts
2429
- VERSION="${CI_COMMIT_REF_NAME}" # will be tag or branch name
2530
- mv ./target/testnet/polkadot ./artifacts/.
2631
- mv ./target/testnet/polkadot-prepare-worker ./artifacts/.
2732
- mv ./target/testnet/polkadot-execute-worker ./artifacts/.
33+
- mv ./runtimes/ ./artifacts/.
2834
- pushd artifacts
2935
- sha256sum polkadot | tee polkadot.sha256
3036
- shasum -c polkadot.sha256

.gitlab/pipeline/check.yml

Lines changed: 54 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,16 @@ test-rust-feature-propagation:
113113
script:
114114
- |
115115
export RUST_LOG=remote-ext=debug,runtime=debug
116-
echo "---------- Running try-runtime for ${NETWORK} ----------"
117-
time cargo install --locked --git https://github.com/paritytech/try-runtime-cli --rev a93c9b5abe5d31a4cf1936204f7e5c489184b521
118-
time cargo build --release --locked -p "$NETWORK"-runtime --features try-runtime
116+
echo "---------- Installing try-runtime-cli ----------"
117+
time cargo install --locked --git https://github.com/paritytech/try-runtime-cli --tag v0.3.0
118+
echo "---------- Building ${PACKAGE} runtime ----------"
119+
time cargo build --release --locked -p "$PACKAGE" --features try-runtime
120+
echo "---------- Executing `on-runtime-upgrade` for ${NETWORK} ----------"
119121
time try-runtime \
120-
--runtime ./target/release/wbuild/"$NETWORK"-runtime/target/wasm32-unknown-unknown/release/"$NETWORK"_runtime.wasm \
121-
on-runtime-upgrade --checks=pre-and-post live --uri wss://${NETWORK}-try-runtime-node.parity-chains.parity.io:443
122+
--runtime ./target/release/wbuild/"$PACKAGE"/"$WASM" \
123+
on-runtime-upgrade --checks=pre-and-post ${EXTRA_ARGS} live --uri ${URI}
122124
125+
# Check runtime migrations for Parity managed relay chains
123126
check-runtime-migration-westend:
124127
stage: check
125128
extends:
@@ -128,19 +131,61 @@ check-runtime-migration-westend:
128131
- .check-runtime-migration
129132
variables:
130133
NETWORK: "westend"
134+
PACKAGE: "westend-runtime"
135+
WASM: "westend_runtime.compact.compressed.wasm"
136+
URI: "wss://westend-try-runtime-node.parity-chains.parity.io:443"
137+
EXTRA_ARGS: "--no-weight-warnings"
131138

132139
check-runtime-migration-rococo:
133140
stage: check
134-
# DAG
135-
needs:
136-
- job: check-runtime-migration-westend
137-
artifacts: false
138141
extends:
139142
- .docker-env
140143
- .test-pr-refs
141144
- .check-runtime-migration
142145
variables:
143146
NETWORK: "rococo"
147+
PACKAGE: "rococo-runtime"
148+
WASM: "rococo_runtime.compact.compressed.wasm"
149+
URI: "wss://rococo-try-runtime-node.parity-chains.parity.io:443"
150+
EXTRA_ARGS: "--no-weight-warnings"
151+
152+
# Check runtime migrations for Parity managed asset hub chains
153+
check-runtime-migration-asset-hub-westend:
154+
stage: check
155+
extends:
156+
- .docker-env
157+
- .test-pr-refs
158+
- .check-runtime-migration
159+
variables:
160+
NETWORK: "asset-hub-westend"
161+
PACKAGE: "asset-hub-westend-runtime"
162+
WASM: "asset_hub_westend_runtime.compact.compressed.wasm"
163+
URI: "wss://westend-asset-hub-rpc.polkadot.io:443"
164+
165+
check-runtime-migration-bridge-hub-rococo:
166+
stage: check
167+
extends:
168+
- .docker-env
169+
- .test-pr-refs
170+
- .check-runtime-migration
171+
variables:
172+
NETWORK: "bridge-hub-rococo"
173+
PACKAGE: "bridge-hub-rococo-runtime"
174+
WASM: "bridge_hub_rococo_runtime.compact.compressed.wasm"
175+
URI: "wss://rococo-bridge-hub-rpc.polkadot.io:443"
176+
177+
# Check runtime migrations for Parity managed contract chains
178+
check-runtime-migration-contracts-rococo:
179+
stage: check
180+
extends:
181+
- .docker-env
182+
- .test-pr-refs
183+
- .check-runtime-migration
184+
variables:
185+
NETWORK: "contracts-rococo"
186+
PACKAGE: "contracts-rococo-runtime"
187+
WASM: "contracts_rococo_runtime.compact.compressed.wasm"
188+
URI: "wss://rococo-contracts-rpc.polkadot.io:443"
144189

145190
find-fail-ci-phrase:
146191
stage: check

.gitlab/pipeline/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,12 +229,12 @@ test-deterministic-wasm:
229229
artifacts: false
230230
script:
231231
# build runtime
232-
- WASM_BUILD_NO_COLOR=1 cargo build -q --locked --release -p staging-kusama-runtime -p polkadot-runtime -p westend-runtime
232+
- WASM_BUILD_NO_COLOR=1 cargo build -q --locked --release -p westend-runtime -p rococo-runtime
233233
# make checksum
234234
- sha256sum target/release/wbuild/*-runtime/target/wasm32-unknown-unknown/release/*.wasm > checksum.sha256
235235
- cargo clean
236236
# build again
237-
- WASM_BUILD_NO_COLOR=1 cargo build -q --locked --release -p staging-kusama-runtime -p polkadot-runtime -p westend-runtime
237+
- WASM_BUILD_NO_COLOR=1 cargo build -q --locked --release -p westend-runtime -p rococo-runtime
238238
# confirm checksum
239239
- sha256sum -c checksum.sha256
240240

0 commit comments

Comments
 (0)