-
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
base: main
Are you sure you want to change the base?
Changes from 6 commits
e519ba7
dddc177
d5220ad
9e44eb1
6280ce1
768da56
2e98756
4574f5e
0f86c8e
6551097
ce61364
7bd69d2
db5ee99
ace00fa
bf23a77
23075f7
b666aad
e6972ab
cfa32ab
320783a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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}" | ||
|
x3c41a marked this conversation as resolved.
Outdated
|
||
|
|
||
| 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" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,5 +31,17 @@ | |
| "pallet_xcm_benchmarks::generic": "templates/xcm-bench-template.hbs", | ||
| "pallet_xcm_benchmarks::fungible": "templates/xcm-bench-template.hbs" | ||
| } | ||
| }, | ||
| { | ||
| "name": "bulletin-polkadot", | ||
| "package": "bulletin-polkadot-runtime", | ||
| "path": "external/fellows-runtimes/system-parachains/bulletin/bulletin-polkadot", | ||
|
x3c41a marked this conversation as resolved.
Outdated
|
||
| "uris": [], | ||
|
x3c41a marked this conversation as resolved.
Outdated
|
||
| "integration_tests": true, | ||
| "experimental": true, | ||
|
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. What's the divide between experimental and not?
Collaborator
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.
yes, no experimental, point is to add to the runtimes-matrix.json (and do the very minimalistic changes on the way - only where is really needed - justfile, chain-spec script + zombienet, the important one is to run correct bulletin-polkadot-local.toml (for now westend is ok, we will chain with polkadot-local relay later) + scripts/create_bulletin_polkadot_spec.sh which will checkout that branch - this can be hard-coded here or I like
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.
did that but the CI failed. The Authorizer is
For now having a smoke test looks reasonable to me. What do you think? @bkontur @franciscoaguirre
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.
Collaborator
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.
exactly, for this, we should be able to use #405 (let me rebase that)
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. oh, nice! I was not aware of this PR.
x3c41a marked this conversation as resolved.
Outdated
|
||
| "external_runtime": { | ||
| "repo": "https://github.com/bkontur/runtimes.git", | ||
| "ref": "bko-bulletin-stage1" | ||
|
x3c41a marked this conversation as resolved.
Outdated
|
||
| } | ||
| } | ||
| ] | ||
| 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", | ||
| ] |
Uh oh!
There was an error while loading. Please reload this page.