Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit 7fd2ea4

Browse files
claravanstadenclaravanstaden
authored andcommitted
Merge branch 'master' into snowbridge
# Conflicts: # .github/CODEOWNERS # .github/scripts/common/lib.sh # bridges/snowbridge/pallets/ethereum-client/src/tests.rs # bridges/snowbridge/pallets/inbound-queue/fixtures/src/register_token_with_insufficient_fee.rs # cumulus/parachains/integration-tests/emulated/tests/bridges/bridge-hub-rococo/src/tests/snowbridge.rs
2 parents aa3a75a + 5d314eb commit 7fd2ea4

File tree

658 files changed

+7051
-3934
lines changed

Some content is hidden

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

658 files changed

+7051
-3934
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# The actions takes json file as input and runs github-action-benchmark for it.
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
benchmark-data-dir-path:
7+
description: "Path to the benchmark data directory"
8+
required: true
9+
type: string
10+
output-file-path:
11+
description: "Path to the benchmark data file"
12+
required: true
13+
type: string
14+
15+
jobs:
16+
subsystem-benchmarks:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout Sources
20+
uses: actions/[email protected]
21+
with:
22+
fetch-depth: 0
23+
ref: "gh-pages"
24+
25+
- name: Copy bench results
26+
id: step_one
27+
run: |
28+
cp bench/gitlab/${{ github.event.inputs.output-file-path }} ${{ github.event.inputs.output-file-path }}
29+
30+
- name: Switch branch
31+
id: step_two
32+
run: |
33+
git checkout master
34+
35+
- name: Store benchmark result
36+
uses: benchmark-action/github-action-benchmark@v1
37+
with:
38+
tool: "customSmallerIsBetter"
39+
output-file-path: ${{ github.event.inputs.output-file-path }}
40+
benchmark-data-dir-path: "bench/${{ github.event.inputs.benchmark-data-dir-path }}"
41+
github-token: ${{ secrets.GITHUB_TOKEN }}
42+
auto-push: true

.gitlab-ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ default:
147147
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
148148
- if: $CI_COMMIT_REF_NAME =~ /^gh-readonly-queue.*$/ # merge queues
149149

150+
.publish-gh-pages-refs:
151+
rules:
152+
- if: $CI_PIPELINE_SOURCE == "pipeline"
153+
when: never
154+
- if: $CI_PIPELINE_SOURCE == "web" && $CI_COMMIT_REF_NAME == "master"
155+
- if: $CI_COMMIT_REF_NAME == "master"
156+
150157
# handle the specific case where benches could store incorrect bench data because of the downstream staging runs
151158
# exclude cargo-check-benches from such runs
152159
.test-refs-check-benches:

.gitlab/pipeline/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ build-runtimes-polkavm:
350350
- .run-immediately
351351
# - .collect-artifact
352352
variables:
353-
# this variable gets overriden by "rusty-cachier environment inject", use the value as default
353+
# this variable gets overridden by "rusty-cachier environment inject", use the value as default
354354
CARGO_TARGET_DIR: "$CI_PROJECT_DIR/target"
355355
before_script:
356356
- mkdir -p ./artifacts/subkey

.gitlab/pipeline/publish.yml

Lines changed: 70 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@
33

44
publish-rustdoc:
55
stage: publish
6-
extends: .kubernetes-env
6+
extends:
7+
- .kubernetes-env
8+
- .publish-gh-pages-refs
79
variables:
810
CI_IMAGE: node:18
911
GIT_DEPTH: 100
1012
RUSTDOCS_DEPLOY_REFS: "master"
11-
rules:
12-
- if: $CI_PIPELINE_SOURCE == "pipeline"
13-
when: never
14-
- if: $CI_PIPELINE_SOURCE == "web" && $CI_COMMIT_REF_NAME == "master"
15-
- if: $CI_COMMIT_REF_NAME == "master"
1613
needs:
1714
- job: build-rustdoc
1815
artifacts: true
@@ -60,9 +57,76 @@ publish-rustdoc:
6057
- git commit -m "___Updated docs for ${CI_COMMIT_REF_NAME}___" ||
6158
echo "___Nothing to commit___"
6259
- git push origin gh-pages --force
60+
# artificial sleep to publish gh-pages
61+
- sleep 300
62+
after_script:
63+
- rm -rf .git/ ./*
64+
65+
publish-subsystem-benchmarks:
66+
stage: publish
67+
variables:
68+
CI_IMAGE: "paritytech/tools:latest"
69+
extends:
70+
- .kubernetes-env
71+
- .publish-gh-pages-refs
72+
needs:
73+
- job: subsystem-regression-tests
74+
artifacts: true
75+
- job: publish-rustdoc
76+
artifacts: false
77+
script:
78+
# setup ssh
79+
- eval $(ssh-agent)
80+
- ssh-add - <<< ${GITHUB_SSH_PRIV_KEY}
81+
- mkdir ~/.ssh && touch ~/.ssh/known_hosts
82+
- ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
83+
# Set git config
84+
- rm -rf .git/config
85+
- git config user.email "[email protected]"
86+
- git config user.name "${GITHUB_USER}"
87+
- git config remote.origin.url "[email protected]:/paritytech/${CI_PROJECT_NAME}.git"
88+
- git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
89+
- git fetch origin gh-pages
90+
# Push result to github
91+
- git checkout gh-pages --force
92+
- mkdir -p bench/gitlab/ || echo "Directory exists"
93+
- rm -rf bench/gitlab/*.json || echo "No json files"
94+
- cp -r charts/*.json bench/gitlab/
95+
- git add bench/gitlab/
96+
- git commit -m "Add json files with benchmark results for ${CI_COMMIT_REF_NAME}"
97+
- git push origin gh-pages
98+
# artificial sleep to publish gh-pages
99+
- sleep 300
100+
allow_failure: true
63101
after_script:
64102
- rm -rf .git/ ./*
65103

104+
trigger_workflow:
105+
stage: deploy
106+
extends:
107+
- .kubernetes-env
108+
- .publish-gh-pages-refs
109+
needs:
110+
- job: publish-subsystem-benchmarks
111+
artifacts: false
112+
- job: subsystem-regression-tests
113+
artifacts: true
114+
script:
115+
- echo "Triggering workflow"
116+
- |
117+
for benchmark in $(ls charts/*.json); do
118+
export bencmark_name=$(basename $benchmark)
119+
echo "Benchmark: $bencmark_name"
120+
export benchmark_dir=$(echo $bencmark_name | sed 's/\.json//')
121+
curl -q -X POST \
122+
-H "Accept: application/vnd.github.v3+json" \
123+
-H "Authorization: token $GITHUB_TOKEN" \
124+
https://api.github.com/repos/paritytech/${CI_PROJECT_NAME}/actions/workflows/subsystem-benchmarks.yml/dispatches \
125+
-d '{"ref":"refs/heads/master","inputs":{"benchmark-data-dir-path":"'$benchmark_dir'","output-file-path":"'$bencmark_name'"}}'
126+
sleep 300
127+
done
128+
allow_failure: true
129+
66130
# note: images are used not only in zombienet but also in rococo, wococo and versi
67131
.build-push-image:
68132
image: $BUILDAH_IMAGE

.gitlab/pipeline/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,12 +497,19 @@ test-syscalls:
497497

498498
subsystem-regression-tests:
499499
stage: test
500+
artifacts:
501+
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
502+
when: always
503+
expire_in: 1 days
504+
paths:
505+
- charts/
500506
extends:
501507
- .docker-env
502508
- .common-refs
503509
- .run-immediately
504510
script:
505511
- cargo bench --profile=testnet -p polkadot-availability-recovery --bench availability-recovery-regression-bench --features subsystem-benchmarks
512+
- cargo bench --profile=testnet -p polkadot-availability-distribution --bench availability-distribution-regression-bench --features subsystem-benchmarks
506513
tags:
507514
- benchmark
508515
allow_failure: true

.gitlab/pipeline/zombienet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.zombienet-refs:
22
extends: .build-refs
33
variables:
4-
ZOMBIENET_IMAGE: "docker.io/paritytech/zombienet:v1.3.95"
4+
ZOMBIENET_IMAGE: "docker.io/paritytech/zombienet:v1.3.98"
55

66
include:
77
# substrate tests

.gitlab/rust-features.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#
1616
# The steps of this script:
1717
# 1. Check that all required dependencies are installed.
18-
# 2. Check that all rules are fullfilled for the whole workspace. If not:
18+
# 2. Check that all rules are fulfilled for the whole workspace. If not:
1919
# 4. Check all crates to find the offending ones.
2020
# 5. Print all offending crates and exit with code 1.
2121
#

Cargo.lock

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@ resolver = "2"
1010

1111
members = [
1212
"bridges/bin/runtime-common",
13+
"bridges/chains/chain-asset-hub-rococo",
14+
"bridges/chains/chain-asset-hub-westend",
15+
"bridges/chains/chain-bridge-hub-cumulus",
16+
"bridges/chains/chain-bridge-hub-kusama",
17+
"bridges/chains/chain-bridge-hub-polkadot",
18+
"bridges/chains/chain-bridge-hub-rococo",
19+
"bridges/chains/chain-bridge-hub-westend",
20+
"bridges/chains/chain-kusama",
21+
"bridges/chains/chain-polkadot",
22+
"bridges/chains/chain-polkadot-bulletin",
23+
"bridges/chains/chain-rococo",
24+
"bridges/chains/chain-westend",
1325
"bridges/modules/grandpa",
1426
"bridges/modules/messages",
1527
"bridges/modules/parachains",
1628
"bridges/modules/relayers",
1729
"bridges/modules/xcm-bridge-hub",
1830
"bridges/modules/xcm-bridge-hub-router",
19-
"bridges/primitives/chain-asset-hub-rococo",
20-
"bridges/primitives/chain-asset-hub-westend",
21-
"bridges/primitives/chain-bridge-hub-cumulus",
22-
"bridges/primitives/chain-bridge-hub-kusama",
23-
"bridges/primitives/chain-bridge-hub-polkadot",
24-
"bridges/primitives/chain-bridge-hub-rococo",
25-
"bridges/primitives/chain-bridge-hub-westend",
26-
"bridges/primitives/chain-kusama",
27-
"bridges/primitives/chain-polkadot",
28-
"bridges/primitives/chain-polkadot-bulletin",
29-
"bridges/primitives/chain-rococo",
30-
"bridges/primitives/chain-westend",
3131
"bridges/primitives/header-chain",
3232
"bridges/primitives/messages",
3333
"bridges/primitives/parachains",
@@ -214,6 +214,7 @@ members = [
214214
"polkadot/xcm/xcm-builder",
215215
"polkadot/xcm/xcm-executor",
216216
"polkadot/xcm/xcm-executor/integration-tests",
217+
"polkadot/xcm/xcm-fee-payment-runtime-api",
217218
"polkadot/xcm/xcm-simulator",
218219
"polkadot/xcm/xcm-simulator/example",
219220
"polkadot/xcm/xcm-simulator/fuzzer",

bridges/bin/runtime-common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ workspace = true
1414
codec = { package = "parity-scale-codec", version = "3.1.5", default-features = false, features = ["derive"] }
1515
hash-db = { version = "0.16.0", default-features = false }
1616
log = { workspace = true }
17-
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
17+
scale-info = { version = "2.11.0", default-features = false, features = ["derive"] }
1818
static_assertions = { version = "1.1", optional = true }
1919

2020
# Bridge dependencies

0 commit comments

Comments
 (0)