Skip to content

Commit 9684df4

Browse files
committed
Merge branch 'master' into ao-statement-distribution-reenabling-prep
* master: (93 commits) Fix broken windows build (#4636) Beefy client generic on aduthority Id (#1816) pallet-staking: Put tests behind `cfg(debug_assertions)` (#4620) Broker new price adapter (#4521) Change `XcmDryRunApi::dry_run_extrinsic` to take a call instead (#4621) Update README.md (#4623) Publish `chain-spec-builder` (#4518) Add omni bencher & chain-spec-builder bins to release (#4557) Moves runtime macro out of experimental flag (#4249) Filter workspace dependencies in the templates (#4599) parachain-inherent: Make `para_id` more prominent (#4555) Add metric to measure the time it takes to gather enough assignments (#4587) Improve On_demand_assigner events (#4339) Conditional `required` checks (#4544) [CI] Deny adding git deps (#4572) [subsytem-bench] Remove redundant banchmark_name param (#4540) Add availability-recovery from systematic chunks (#1644) Remove workspace lints from templates (#4598) `sc-chain-spec`: deprecated code removed (#4410) [subsystem-benchmarks] Add statement-distribution benchmarks (#3863) ...
2 parents fe4ea5f + d539778 commit 9684df4

File tree

1,015 files changed

+33134
-12379
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,015 files changed

+33134
-12379
lines changed

.config/lychee.toml

Lines changed: 1 addition & 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",
@@ -54,5 +51,6 @@ exclude = [
5451
"https://www.reddit.com/r/rust/comments/3spfh1/does_collect_allocate_more_than_once_while/",
5552
# 403 rate limited:
5653
"https://etherscan.io/block/11090290",
54+
"https://subscan.io/",
5755
"https://substrate.stackexchange.com/.*",
5856
]

.config/zepter.yaml

Lines changed: 5 additions & 1 deletion
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,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.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/scripts/deny-git-deps.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
"""
2+
Script to deny Git dependencies in the Cargo workspace. Can be passed one optional argument for the
3+
root folder. If not provided, it will use the cwd.
4+
5+
## Usage
6+
python3 .github/scripts/deny-git-deps.py polkadot-sdk
7+
"""
8+
9+
import os
10+
import sys
11+
12+
from cargo_workspace import Workspace, DependencyLocation
13+
14+
KNOWN_BAD_GIT_DEPS = {
15+
'simple-mermaid': ['xcm-docs'],
16+
# Fix in <https://github.com/paritytech/polkadot-sdk/issues/2922>
17+
'bandersnatch_vrfs': ['sp-core'],
18+
}
19+
20+
root = sys.argv[1] if len(sys.argv) > 1 else os.getcwd()
21+
workspace = Workspace.from_path(root)
22+
23+
def check_dep(dep, used_by):
24+
if dep.location != DependencyLocation.GIT:
25+
return
26+
27+
if used_by in KNOWN_BAD_GIT_DEPS.get(dep.name, []):
28+
print(f'🤨 Ignoring git dependency {dep.name} in {used_by}')
29+
else:
30+
print(f'🚫 Found git dependency {dep.name} in {used_by}')
31+
sys.exit(1)
32+
33+
# Check the workspace dependencies that can be inherited:
34+
for dep in workspace.dependencies:
35+
check_dep(dep, "workspace")
36+
37+
# And the dependencies of each crate:
38+
for crate in workspace.crates:
39+
for dep in crate.dependencies:
40+
check_dep(dep, crate.name)
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Reusable workflow to perform checks and generate conditions for other workflows.
2+
# Currently it checks if any Rust (build-related) file is changed
3+
# and if the current (caller) workflow file is changed.
4+
# Example:
5+
#
6+
# jobs:
7+
# changes:
8+
# permissions:
9+
# pull-requests: read
10+
# uses: ./.github/workflows/check-changed-files.yml
11+
# some-job:
12+
# needs: changes
13+
# if: ${{ needs.changes.outputs.rust }}
14+
# .......
15+
16+
name: Check changes files
17+
18+
on:
19+
workflow_call:
20+
# Map the workflow outputs to job outputs
21+
outputs:
22+
rust:
23+
value: ${{ jobs.changes.outputs.rust }}
24+
description: 'true if any of the build-related OR current (caller) workflow files have changed'
25+
current-workflow:
26+
value: ${{ jobs.changes.outputs.current-workflow }}
27+
description: 'true if current (caller) workflow file has changed'
28+
29+
jobs:
30+
changes:
31+
runs-on: ubuntu-latest
32+
permissions:
33+
pull-requests: read
34+
outputs:
35+
# true if current workflow (caller) file is changed
36+
rust: ${{ steps.filter.outputs.rust == 'true' || steps.filter.outputs.current-workflow == 'true' }}
37+
current-workflow: ${{ steps.filter.outputs.current-workflow }}
38+
steps:
39+
- id: current-file
40+
run: echo "current-workflow-file=$(echo ${{ github.workflow_ref }} | sed -nE "s/.*(\.github\/workflows\/[a-zA-Z0-9_-]*\.y[a]?ml)@refs.*/\1/p")" >> $GITHUB_OUTPUT
41+
- run: echo "${{ steps.current-file.outputs.current-workflow-file }}"
42+
# For pull requests it's not necessary to checkout the code
43+
- id: filter
44+
uses: dorny/paths-filter@v3
45+
with:
46+
predicate-quantifier: 'every'
47+
# current-workflow - check if the current (caller) workflow file is changed
48+
# rust - check if any Rust (build-related) file is changed
49+
filters: |
50+
current-workflow:
51+
- '${{ steps.current-file.outputs.current-workflow-file }}'
52+
rust:
53+
- '**/*'
54+
- '!.github/**/*'
55+
- '!prdoc/**/*'
56+
- '!docs/**/*'
57+
#

.github/workflows/check-features.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Check
1414
uses: hack-ink/cargo-featalign-action@bea88a864d6ca7d0c53c26f1391ce1d431dc7f34 # v0.1.1
1515
with:
16-
crate: substrate/bin/node/runtime
16+
crate: templates/parachain/runtime/
1717
features: std,runtime-benchmarks,try-runtime
1818
ignore: sc-executor
1919
default-std: true

.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.

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: check-runtime-migration
22

33
on:
4+
push:
5+
branches:
6+
- master
47
pull_request:
58
types: [opened, synchronize, reopened, ready_for_review]
69
merge_group:

.github/workflows/check-semver.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
run: |
3939
export CARGO_TARGET_DIR=target
4040
export RUSTFLAGS='-A warnings -A missing_docs'
41+
export SKIP_WASM_BUILD=1
4142
if ! parity-publish --color always prdoc --since old --validate prdoc/pr_$PR.prdoc --toolchain nightly-2024-03-01 -v; then
4243
cat <<EOF
4344
👋 Hello developer! The SemVer information that you declared in the prdoc file did not match what the CI detected.

0 commit comments

Comments
 (0)