Skip to content

Commit 65cdbb2

Browse files
authored
fix warp test (#11101)
`full_node_warp_sync` test start failing after we update the version of `zombienet-sdk`, because the upgrade have some changes in the customization of the chain-spec. In order to keep using the current snapshots we should use the chain-specs in `raw` version to disable the customization of the sdk. <img width="997" height="172" alt="image" src="https://github.com/user-attachments/assets/9312df04-b86f-4b92-b2ad-b017f8560bcb" />
1 parent 8c106ff commit 65cdbb2

File tree

6 files changed

+264
-275
lines changed

6 files changed

+264
-275
lines changed

cumulus/zombienet/zombienet-sdk/tests/zombie_ci/full_node_warp_sync/common.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub(crate) async fn build_network_config(
6464
.with_default_command("polkadot")
6565
.with_default_image(images.polkadot.as_str())
6666
.with_chain_spec_path(
67-
"tests/zombie_ci/full_node_warp_sync/warp-sync-relaychain-spec.json",
67+
"tests/zombie_ci/full_node_warp_sync/warp-sync-relaychain-spec-raw.json",
6868
)
6969
.with_default_args(vec![("-lparachain=debug").into()])
7070
.with_validator(|node| {
@@ -125,7 +125,7 @@ pub(crate) async fn build_network_config(
125125
.with_default_command("test-parachain")
126126
.with_default_image(images.cumulus.as_str())
127127
.with_chain_spec_path(
128-
"tests/zombie_ci/full_node_warp_sync/warp-sync-parachain-spec.json",
128+
"tests/zombie_ci/full_node_warp_sync/warp-sync-parachain-spec-raw.json",
129129
)
130130
.with_default_args(vec![("-lparachain=debug").into(), ("--").into()])
131131
.with_collator(|n| {

cumulus/zombienet/zombienet-sdk/tests/zombie_ci/full_node_warp_sync/generate-snapshots.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ RELAYCHAIN_DB="relaychain-db.tgz"
77
PARACHAIN_DB="parachain-db.tgz"
88

99
# Config
10-
PARACHAIN_SPEC="$SCRIPT_DIR/warp-sync-parachain-spec.json"
11-
RELAYCHAIN_SPEC="$SCRIPT_DIR/warp-sync-relaychain-spec.json"
10+
PARACHAIN_SPEC="$SCRIPT_DIR/warp-sync-parachain-spec-raw.json"
11+
RELAYCHAIN_SPEC="$SCRIPT_DIR/warp-sync-relaychain-spec-raw.json"
1212
TARGET_DIR=$(dirname "$(cargo locate-project --workspace --message-format plain)")/target/release
1313
SNAPSHOT_DIR="${ZOMBIENET_SDK_BASE_DIR:-/tmp/zombienet-warp-sync}"
1414

@@ -46,7 +46,7 @@ chainspec_parachain() {
4646
local wasm_path="$TARGET_DIR/wbuild/cumulus-test-runtime/cumulus_test_runtime.wasm"
4747
[[ -f "$wasm_path" ]] || { echo "Error: WASM runtime not found at $wasm_path" >&2; exit 1; }
4848

49-
"$TARGET_DIR/chain-spec-builder" create -r "$wasm_path" named-preset development
49+
"$TARGET_DIR/chain-spec-builder" create -s -r "$wasm_path" named-preset development
5050
[[ -f "$PARACHAIN_SPEC" ]] && cp "$PARACHAIN_SPEC" "$PARACHAIN_SPEC.backup"
5151
mv chain_spec.json "$PARACHAIN_SPEC"
5252
echo "Created: $PARACHAIN_SPEC"
@@ -55,7 +55,7 @@ chainspec_parachain() {
5555
chainspec_relaychain() {
5656
echo "==> Generating relaychain chain spec"
5757

58-
"$TARGET_DIR/polkadot" build-spec --chain rococo-local --disable-default-bootnode > chain_spec.json
58+
"$TARGET_DIR/polkadot" build-spec --chain rococo-local --disable-default-bootnode --raw > chain_spec.json
5959
[[ -f "$RELAYCHAIN_SPEC" ]] && cp "$RELAYCHAIN_SPEC" "$RELAYCHAIN_SPEC.backup"
6060
mv chain_spec.json "$RELAYCHAIN_SPEC"
6161
echo "Created: $RELAYCHAIN_SPEC"

cumulus/zombienet/zombienet-sdk/tests/zombie_ci/full_node_warp_sync/warp-sync-parachain-spec-raw.json

Lines changed: 66 additions & 0 deletions
Large diffs are not rendered by default.

cumulus/zombienet/zombienet-sdk/tests/zombie_ci/full_node_warp_sync/warp-sync-parachain-spec.json

Lines changed: 0 additions & 88 deletions
This file was deleted.

cumulus/zombienet/zombienet-sdk/tests/zombie_ci/full_node_warp_sync/warp-sync-relaychain-spec-raw.json

Lines changed: 192 additions & 0 deletions
Large diffs are not rendered by default.

cumulus/zombienet/zombienet-sdk/tests/zombie_ci/full_node_warp_sync/warp-sync-relaychain-spec.json

Lines changed: 0 additions & 181 deletions
This file was deleted.

0 commit comments

Comments
 (0)