Skip to content

Commit 9fb27e7

Browse files
committed
merge with polkadot-v1.16.2
1 parent fe52bf3 commit 9fb27e7

File tree

5,044 files changed

+370486
-159789
lines changed

Some content is hidden

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

5,044 files changed

+370486
-159789
lines changed

.config/lychee.toml

+7-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# Run with `lychee -c .config/lychee.toml ./**/*.rs ./**/*.prdoc`
33

44
cache = true
5-
max_cache_age = "1d"
5+
max_cache_age = "10d"
66
max_redirects = 10
7-
max_retries = 6
7+
max_retries = 3
88

99
# Exclude localhost et.al.
1010
exclude_all_private = true
@@ -33,16 +33,14 @@ exclude = [
3333
"https://github.com/paritytech/substrate/frame/fast-unstake",
3434
"https://github.com/zkcrypto/bls12_381/blob/e224ad4ea1babfc582ccd751c2bf128611d10936/src/test-data/mod.rs",
3535
"https://polkadot.network/the-path-of-a-parachain-block/",
36-
"https://research.web3.foundation/en/latest/polkadot/BABE/Babe/#6-practical-results",
3736
"https://research.web3.foundation/en/latest/polkadot/NPoS/3.%20Balancing.html",
3837
"https://research.web3.foundation/en/latest/polkadot/Token%20Economics.html#inflation-model",
39-
"https://research.web3.foundation/en/latest/polkadot/block-production/Babe.html",
40-
"https://research.web3.foundation/en/latest/polkadot/block-production/Babe.html#-6.-practical-results",
4138
"https://research.web3.foundation/en/latest/polkadot/networking/3-avail-valid.html#topology",
4239
"https://research.web3.foundation/en/latest/polkadot/overview/2-token-economics.html",
4340
"https://research.web3.foundation/en/latest/polkadot/overview/2-token-economics.html#inflation-model",
4441
"https://research.web3.foundation/en/latest/polkadot/slashing/npos.html",
4542
"https://rpc.polkadot.io/",
43+
"https://try-runtime.polkadot.io/",
4644
"https://w3f.github.io/parachain-implementers-guide/node/approval/approval-distribution.html",
4745
"https://w3f.github.io/parachain-implementers-guide/node/index.html",
4846
"https://w3f.github.io/parachain-implementers-guide/protocol-chain-selection.html",
@@ -51,4 +49,8 @@ exclude = [
5149
# Behind a captcha (code 403):
5250
"https://iohk.io/en/blog/posts/2023/11/03/partner-chains-are-coming-to-cardano/",
5351
"https://www.reddit.com/r/rust/comments/3spfh1/does_collect_allocate_more_than_once_while/",
52+
# 403 rate limited:
53+
"https://etherscan.io/block/11090290",
54+
"https://subscan.io/",
55+
"https://substrate.stackexchange.com/.*",
5456
]

.config/taplo.toml

+9
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
# ignore zombienet as they do some deliberate custom toml stuff
44
exclude = [
5+
"bridges/testing/**",
56
"cumulus/zombienet/**",
67
"polkadot/node/malus/integrationtests/**",
78
"polkadot/zombienet_tests/**",
89
"substrate/zombienet/**",
10+
"target/**",
911
]
1012

1113
# global rules
@@ -31,3 +33,10 @@ keys = ["build"]
3133

3234
[rule.formatting]
3335
reorder_arrays = false
36+
37+
[[rule]]
38+
include = ["Cargo.toml"]
39+
keys = ["workspace.dependencies"]
40+
41+
[rule.formatting]
42+
reorder_keys = true

.config/zepter.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,13 @@ workflows:
2525
'--show-path',
2626
'--quiet',
2727
]
28-
# Same as `check`, but with the `--fix` flag.
28+
# The umbrella crate uses more features, so we to check those too:
29+
check_umbrella:
30+
- [ $check.0, '--features=serde,experimental,riscv,runtime,with-tracing,tuples-96,with-tracing', '-p=polkadot-sdk' ]
31+
# Same as `check_*`, but with the `--fix` flag.
2932
default:
3033
- [ $check.0, '--fix' ]
34+
- [ $check_umbrella.0, '--fix' ]
3135

3236
# Will be displayed when any workflow fails:
3337
help:

.forklift/config-gitlab.toml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[compression]
2+
type = "zstd"
3+
4+
[compression.zstd]
5+
compressionLevel = 3
6+
7+
[general]
8+
jobNameVariable = "CI_JOB_NAME"
9+
jobsBlackList = []
10+
logLevel = "warn"
11+
threadsCount = 6
12+
13+
[cache]
14+
extraEnv = ["RUNTIME_METADATA_HASH"]
15+
16+
[metrics]
17+
enabled = true
18+
pushEndpoint = "placeholder"
19+
20+
[metrics.extraLabels]
21+
environment = "production"
22+
job_name = "$CI_JOB_NAME"
23+
project_name = "$CI_PROJECT_PATH"
24+
25+
[storage]
26+
type = "s3"
27+
28+
[storage.s3]
29+
accessKeyId = "placeholder"
30+
bucketName = "placeholder"
31+
concurrency = 10
32+
endpointUrl = "placeholder"
33+
secretAccessKey = "placeholder"

.forklift/config.toml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[compression]
2+
type = "zstd"
3+
4+
[compression.zstd]
5+
compressionLevel = 3
6+
7+
[general]
8+
jobNameVariable = "CI_JOB_NAME"
9+
jobsBlackList = []
10+
logLevel = "warn"
11+
threadsCount = 6
12+
13+
[cache]
14+
extraEnv = ["RUNTIME_METADATA_HASH"]
15+
16+
[metrics]
17+
enabled = true
18+
pushEndpoint = "placeholder"
19+
20+
[metrics.extraLabels]
21+
environment = "production"
22+
job_name = "$CI_JOB_NAME"
23+
project_name = "$CI_PROJECT_PATH"
24+
25+
[storage]
26+
type = "gcs"
27+
28+
[storage.gcs]
29+
bucketName = "parity-ci-forklift"

.github/CODEOWNERS

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# - Multiple owners are supported.
1414
# - Either handle (e.g, @github_user or @github/team) or email can be used. Keep in mind,
1515
# that handles might work better because they are more recognizable on GitHub,
16-
# eyou can use them for mentioning unlike an email.
16+
# you can use them for mentioning unlike an email.
1717
# - The latest matching rule, if multiple, takes precedence.
1818

1919
# CI
@@ -64,7 +64,8 @@
6464
/substrate/primitives/merkle-mountain-range/ @acatangiu
6565

6666
# Contracts
67-
/substrate/frame/contracts/ @athei @paritytech/docs-audit
67+
/substrate/frame/contracts/ @athei @pgherveou @paritytech/docs-audit
68+
/substrate/frame/revive/ @athei @pgherveou @paritytech/docs-audit
6869

6970
# NPoS and election
7071
/substrate/frame/election-provider-multi-phase/ @paritytech/staking-core @paritytech/docs-audit
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: 'cargo check runtimes'
2+
description: 'Runs `cargo check` for every directory in provided root.'
3+
inputs:
4+
root:
5+
description: "Root directory. Expected to contain several cargo packages inside."
6+
required: true
7+
runs:
8+
using: "composite"
9+
steps:
10+
- name: Check
11+
shell: bash
12+
run: |
13+
mkdir -p ~/.forklift
14+
cp .forklift/config.toml ~/.forklift/config.toml
15+
cd ${{ inputs.root }}
16+
for directory in $(echo */); do
17+
echo "_____Running cargo check for ${directory} ______";
18+
cd ${directory};
19+
pwd;
20+
SKIP_WASM_BUILD=1 forklift cargo check --locked;
21+
cd ..;
22+
done

.github/actions/set-up-gh/action.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: 'install gh'
2+
description: 'Install the gh cli in a debian based distro and switches to the PR branch.'
3+
inputs:
4+
pr-number:
5+
description: "Number of the PR"
6+
required: true
7+
GH_TOKEN:
8+
description: "GitHub token"
9+
required: true
10+
outputs:
11+
branch:
12+
description: 'Branch name for the PR'
13+
value: ${{ steps.branch.outputs.branch }}
14+
runs:
15+
using: "composite"
16+
steps:
17+
- name: Instal gh cli
18+
shell: bash
19+
# Here it would get the script from previous step
20+
run: |
21+
(type -p wget >/dev/null || (apt update && apt-get install wget -y))
22+
mkdir -p -m 755 /etc/apt/keyrings
23+
wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null
24+
chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg
25+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null
26+
apt update
27+
apt install gh -y
28+
git config --global --add safe.directory '*'
29+
- run: gh pr checkout ${{ inputs.pr-number }}
30+
shell: bash
31+
env:
32+
GITHUB_TOKEN: ${{ inputs.GH_TOKEN }}
33+
- name: Export branch name
34+
shell: bash
35+
run: echo "branch=$(git rev-parse --abbrev-ref HEAD)" >> "$GITHUB_OUTPUT"
36+
id: branch

.github/actions/set-up-mac/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# How to use
2+
3+
```yml
4+
set-image:
5+
runs-on: macos-latest
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v4
9+
- id: set_image
10+
run: cat .github/env >> $GITHUB_OUTPUT
11+
- name: Install dependencies
12+
uses: ./.github/actions/set-up-mac
13+
with:
14+
IMAGE: ${{ steps.set-image.outputs.IMAGE }}
15+
```

.github/actions/set-up-mac/action.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "Set up rust on mac"
2+
description: "Install the required tools for Mac runners"
3+
inputs:
4+
IMAGE:
5+
description: "Rust docker image"
6+
required: true
7+
runs:
8+
using: "composite"
9+
steps:
10+
- name: Install with Hombrew
11+
shell: bash
12+
run: brew install protobuf rustup openssl pkg-config zlib xz zstd llvm jq curl gcc make cmake
13+
- name: Set version
14+
shell: bash
15+
run: |
16+
VERSION=$(echo $IMAGE | sed -E 's/.*:bullseye-([^-]+)-.*/\1/')
17+
echo $VERSION
18+
echo "VERSION=$VERSION" >> $GITHUB_ENV
19+
NIGHTLY=$(echo $IMAGE | sed -E 's/.*([0-9]{4}-[0-9]{2}-[0-9]{2}).*/\1/')
20+
echo $NIGHTLY
21+
echo "NIGHTLY=$NIGHTLY" >> $GITHUB_ENV
22+
env:
23+
IMAGE: ${{ inputs.IMAGE }}
24+
25+
- name: Install rustup
26+
shell: bash
27+
run: |
28+
rustup-init -y
29+
rustup install $VERSION
30+
rustup default $VERSION
31+
rustup toolchain install "nightly-${NIGHTLY}"
32+
33+
- name: MacOS Deps
34+
shell: bash
35+
run: |
36+
rustup target add wasm32-unknown-unknown --toolchain $VERSION
37+
rustup component add rust-src rustfmt clippy --toolchain $VERSION
38+
39+
- name: Check Rust
40+
shell: bash
41+
run: |
42+
rustup show
43+
rustup +nightly show

.github/codecov.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
coverage:
2+
precision: 2
3+
round: down
4+
range: "1...100"
5+
status:
6+
project:
7+
default:
8+
target: 1.0
9+
threshold: 2.0

.github/dependabot.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ updates:
55
directory: '/'
66
labels: ["A1-insubstantial", "R0-silent"]
77
schedule:
8-
interval: daily
8+
interval: weekly
9+
groups:
10+
ci_dependencies:
11+
patterns:
12+
- "*"
913
# Update Rust dependencies:
1014
- package-ecosystem: "cargo"
1115
directory: "/"
1216
labels: ["A1-insubstantial", "R0-silent"]
1317
schedule:
14-
interval: "daily"
18+
interval: "weekly"
1519
groups:
1620
# We assume these crates to be semver abiding and can therefore group them together.
1721
known_good_semver:

.github/env

+1
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-v202407161507"

.github/pull_request_template.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../docs/contributor/PULL_REQUEST_TEMPLATE.md

.github/review-bot.yml

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ rules:
99
- ^\.gitlab/.*
1010
- ^\.config/nextest.toml
1111
- ^\.cargo/.*
12+
- ^\.forklift/.*
1213
exclude:
1314
- ^\.gitlab/pipeline/zombienet.*
1415
type: "or"
@@ -33,6 +34,7 @@ rules:
3334
- ^docker/.*
3435
- ^\.github/.*
3536
- ^\.gitlab/.*
37+
- ^\.forklift/.*
3638
- ^\.config/nextest.toml
3739
- ^\.cargo/.*
3840
minApprovals: 2

0 commit comments

Comments
 (0)