-
Notifications
You must be signed in to change notification settings - Fork 12
ci: prototype bulletin-polkadot in integration-test matrix #511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
x3c41a
wants to merge
14
commits into
main
Choose a base branch
from
ndk/issue-507-bulletin-polkadot-ci
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
e519ba7
ci: prototype bulletin-polkadot in integration-test matrix
x3c41a dddc177
ci: drop continue-on-error from bulletin-polkadot steps
x3c41a d5220ad
ci: drop em dash from comment
x3c41a 9e44eb1
ci: split experimental runtimes into dedicated job
x3c41a 6280ce1
Merge branch 'main' into ndk/issue-507-bulletin-polkadot-ci
x3c41a 768da56
Merge branch 'main' into ndk/issue-507-bulletin-polkadot-ci
bkontur 2e98756
ci: run bulletin-polkadot through the regular integration-tests job
x3c41a 4574f5e
ci: split external runtime build out of the spec script
x3c41a 0f86c8e
ci: run check-migrations against bulletin-polkadot via external build
x3c41a 6551097
Merge remote-tracking branch 'origin/main' into ndk/issue-507-bulleti…
x3c41a ce61364
ci: point bulletin-polkadot matrix at the configurable-authorizers port
x3c41a 7bd69d2
Merge branch 'main' into ndk/issue-507-bulletin-polkadot-ci
x3c41a db5ee99
Merge remote-tracking branch 'origin/main' into ndk/issue-507-bulleti…
x3c41a ace00fa
Merge branch 'main' into ndk/issue-507-bulletin-polkadot-ci
x3c41a File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| #!/usr/bin/env bash | ||
| # | ||
| # Build the bulletin-polkadot runtime WASM from the Polkadot Fellows | ||
| # `runtimes` repo and generate the chain spec used by the local zombienet | ||
| # config. | ||
| # | ||
| # The runtime is not part of this Cargo workspace, so we clone the upstream | ||
| # repository at a configurable ref and build it out-of-tree. | ||
| # | ||
| # Override the source via env vars (defaults track Fellows PR #1170): | ||
| # FELLOWS_RUNTIMES_REPO - git URL (default: bkontur/runtimes fork) | ||
| # FELLOWS_RUNTIMES_REF - branch / tag / sha (default: bko-bulletin-stage1) | ||
| # FELLOWS_RUNTIMES_DIR - local checkout dir (default: target/fellows-runtimes) | ||
|
|
||
| set -e | ||
|
|
||
| SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" | ||
| ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)" | ||
|
|
||
| FELLOWS_RUNTIMES_REPO="${FELLOWS_RUNTIMES_REPO:-https://github.com/bkontur/runtimes.git}" | ||
| FELLOWS_RUNTIMES_REF="${FELLOWS_RUNTIMES_REF:-bko-bulletin-stage1}" | ||
| FELLOWS_RUNTIMES_DIR="${FELLOWS_RUNTIMES_DIR:-$ROOT_DIR/target/fellows-runtimes}" | ||
|
|
||
| mkdir -p "$(dirname "$FELLOWS_RUNTIMES_DIR")" | ||
|
|
||
| if [ ! -d "$FELLOWS_RUNTIMES_DIR/.git" ]; then | ||
| echo "📥 Cloning $FELLOWS_RUNTIMES_REPO into $FELLOWS_RUNTIMES_DIR..." | ||
| git clone --filter=blob:none "$FELLOWS_RUNTIMES_REPO" "$FELLOWS_RUNTIMES_DIR" | ||
| else | ||
| echo "♻️ Reusing existing checkout at $FELLOWS_RUNTIMES_DIR" | ||
| git -C "$FELLOWS_RUNTIMES_DIR" remote set-url origin "$FELLOWS_RUNTIMES_REPO" | ||
| fi | ||
|
|
||
| echo "🔀 Fetching ref: $FELLOWS_RUNTIMES_REF..." | ||
| git -C "$FELLOWS_RUNTIMES_DIR" fetch --depth 1 origin "$FELLOWS_RUNTIMES_REF" | ||
| git -C "$FELLOWS_RUNTIMES_DIR" checkout -q FETCH_HEAD | ||
|
|
||
| echo "🔨 Building bulletin-polkadot-runtime..." | ||
| (cd "$FELLOWS_RUNTIMES_DIR" && cargo build --release -p bulletin-polkadot-runtime) | ||
|
|
||
| WASM_PATH="$FELLOWS_RUNTIMES_DIR/target/release/wbuild/bulletin-polkadot-runtime/bulletin_polkadot_runtime.compact.compressed.wasm" | ||
| if [ ! -f "$WASM_PATH" ]; then | ||
| echo "❌ Expected WASM not found at: $WASM_PATH" | ||
| exit 1 | ||
| fi | ||
|
|
||
| cd "$ROOT_DIR" | ||
|
|
||
| chain-spec-builder create \ | ||
| -p 1010 \ | ||
| -c westend \ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. westend?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, per @bkontur comment below: |
||
| -i bulletin-polkadot \ | ||
| -n Bulletin \ | ||
| -t local \ | ||
| -r "$WASM_PATH" \ | ||
| named-preset local_testnet | ||
|
|
||
| mv chain_spec.json ./zombienet/bulletin-polkadot-spec.json | ||
| echo "✅ Wrote ./zombienet/bulletin-polkadot-spec.json" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| # To run the network, execute the following command: | ||
| # | ||
| # cd <root dir> | ||
| # ./scripts/create_bulletin_polkadot_spec.sh | ||
| # POLKADOT_BINARY_PATH=~/local_bridge_testing/bin/polkadot POLKADOT_PARACHAIN_BINARY_PATH=~/local_bridge_testing/bin/polkadot-parachain zombienet -p native spawn ./zombienet/bulletin-polkadot-local.toml | ||
|
|
||
| [settings] | ||
| node_spawn_timeout = 240 | ||
|
|
||
| [relaychain] | ||
| default_command = "{{POLKADOT_BINARY_PATH}}" | ||
| default_args = ["-lruntime=debug,xcm=trace"] | ||
| chain = "westend-local" | ||
|
|
||
| [[relaychain.nodes]] | ||
| name = "alice" | ||
| validator = true | ||
| p2p_port = 30333 | ||
| rpc_port = 9942 | ||
| balance = 2000000000000 | ||
|
|
||
| [[relaychain.nodes]] | ||
| name = "bob" | ||
| validator = true | ||
| p2p_port = 30433 | ||
| rpc_port = 9943 | ||
| balance = 2000000000000 | ||
|
|
||
| [[parachains]] | ||
| id = 1010 | ||
| chain_spec_path = "./zombienet/bulletin-polkadot-spec.json" | ||
| cumulus_based = true | ||
|
|
||
| [[parachains.collators]] | ||
| name = "bulletin-polkadot-collator-1" | ||
| command = "{{POLKADOT_PARACHAIN_BINARY_PATH}}" | ||
| validator = true | ||
| p2p_port = 10001 | ||
| rpc_port = 10000 | ||
| args = [ | ||
| "--ipfs-server", | ||
| "--pool-kbytes 65536", | ||
| "-lparachain=info,runtime=debug,xcm=trace,sub-libp2p::bitswap=trace,runtime::transaction-storage=trace", | ||
| # Embedded relay chain args (after "--"): | ||
| # Use -:--port to exclude zombienet's auto-generated --port flag, | ||
| # then provide --listen-addr to bind only on 127.0.0.1 (avoids litep2p | ||
| # IPv6 dual-stack crash on macOS and prevents 0.0.0.0 exposure). | ||
| "--", | ||
| "--listen-addr=/ip4/127.0.0.1/tcp/10003/ws", | ||
| "-:--port", | ||
| ] | ||
|
|
||
| [[parachains.collators]] | ||
| name = "bulletin-polkadot-collator-2" | ||
| command = "{{POLKADOT_PARACHAIN_BINARY_PATH}}" | ||
| validator = true | ||
| p2p_port = 12347 | ||
| rpc_port = 12346 | ||
| args = [ | ||
| "--ipfs-server", | ||
| "--pool-kbytes 65536", | ||
| "-lparachain=info,runtime=debug,xcm=trace,bitswap=trace,sub-libp2p::bitswap=trace,runtime::transaction-storage=trace", | ||
| # Embedded relay chain args (after "--"): | ||
| "--", | ||
| "--listen-addr=/ip4/127.0.0.1/tcp/12349/ws", | ||
| "-:--port", | ||
| ] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.