Skip to content
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

migrate zombie past slashing test #7147

Merged
merged 30 commits into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
6abfeae
add zombienet-sdk past-session slashing test
ordian Jan 14, 2025
338b3cd
custom wait_for_metric workaround
ordian Jan 14, 2025
c88dfa1
remove old v1 test
ordian Jan 14, 2025
6f9dc66
some minor adjustments to the test
ordian Jan 16, 2025
87e7391
push some changes that are supposed to make it more robust
ordian Jan 16, 2025
62f2581
use best blocks instead of finalized
ordian Jan 16, 2025
75fe402
Merge branch 'master' into ao-migrate-zombie-past-slashing-test
ordian Jan 16, 2025
3dd7784
revert to using built-in zombienet assertion
ordian Jan 20, 2025
18f6580
REVERTME: debug the InvalidProof issue
ordian Jan 20, 2025
74b9e30
fix pre-dispatch pov underweight for ParasInherent
ordian Jan 28, 2025
74195b7
wait for longer to avoid a debug panic
ordian Jan 28, 2025
d296885
Revert "REVERTME: debug the InvalidProof issue"
ordian Jan 29, 2025
722a770
Merge branch 'master' into ao-migrate-zombie-past-slashing-test
ordian Jan 30, 2025
a18e8c5
update to zombienet-sdk to 0.2.23
ordian Feb 3, 2025
83a2992
Merge branch 'master' into ao-migrate-zombie-past-slashing-test
ordian Feb 3, 2025
c9ad223
add the test to CI
ordian Feb 3, 2025
83c0c87
try specifying malus image
ordian Feb 3, 2025
e12dbde
cargo update -p zombienet-sdk
ordian Feb 3, 2025
dbc9f5a
Merge branch 'master' into ao-migrate-zombie-past-slashing-test
ordian Feb 4, 2025
393a0bd
Merge branch 'master' into ao-migrate-zombie-past-slashing-test
ordian Feb 6, 2025
d656b4e
litep2p: Increase keep-alive to 10 seconds to mirror libp2p (#7488)
lexnv Feb 6, 2025
41b23e6
address review comments
ordian Feb 6, 2025
88bd366
Revert "litep2p: Increase keep-alive to 10 seconds to mirror libp2p (…
ordian Feb 6, 2025
5135e2b
Merge branch 'master' into ao-migrate-zombie-past-slashing-test
ordian Feb 6, 2025
0ec474d
remove a no longer needed workaround
ordian Feb 7, 2025
773a6a5
lower the upper range of produced blocks
ordian Feb 7, 2025
97f68c5
fmt
ordian Feb 7, 2025
76c9427
up the finality timeout for the aggression to kick in
ordian Feb 11, 2025
b58acf6
another small bump for the timeout
ordian Feb 11, 2025
a9d1b74
Merge branch 'master' into ao-migrate-zombie-past-slashing-test
ordian Feb 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 27 additions & 19 deletions .gitlab/pipeline/zombienet/polkadot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,6 @@ zombienet-polkadot-functional-0004-parachains-disputes-garbage-candidate:
--local-dir="${LOCAL_DIR}/functional"
--test="0004-parachains-garbage-candidate.zndsl"

.zombienet-polkadot-functional-0005-parachains-disputes-past-session:
extends:
- .zombienet-polkadot-common
script:
- /home/nonroot/zombie-net/scripts/ci/run-test-local-env-manager.sh
--local-dir="${LOCAL_DIR}/functional"
--test="0005-parachains-disputes-past-session.zndsl"

zombienet-polkadot-functional-0006-parachains-max-tranche0:
extends:
- .zombienet-polkadot-common
Expand Down Expand Up @@ -188,7 +180,7 @@ zombienet-polkadot-functional-0015-coretime-shared-core:
extends:
- .zombienet-polkadot-common
before_script:
- !reference [ .zombienet-polkadot-common, before_script ]
- !reference [.zombienet-polkadot-common, before_script]
- cp --remove-destination ${LOCAL_DIR}/assign-core.js ${LOCAL_DIR}/functional
script:
- /home/nonroot/zombie-net/scripts/ci/run-test-local-env-manager.sh
Expand All @@ -207,7 +199,7 @@ zombienet-polkadot-functional-0018-shared-core-idle-parachain:
extends:
- .zombienet-polkadot-common
before_script:
- !reference [ .zombienet-polkadot-common, before_script ]
- !reference [.zombienet-polkadot-common, before_script]
- cp --remove-destination ${LOCAL_DIR}/assign-core.js ${LOCAL_DIR}/functional
script:
- /home/nonroot/zombie-net/scripts/ci/run-test-local-env-manager.sh
Expand All @@ -218,7 +210,7 @@ zombienet-polkadot-functional-0019-coretime-collation-fetching-fairness:
extends:
- .zombienet-polkadot-common
before_script:
- !reference [ .zombienet-polkadot-common, before_script ]
- !reference [.zombienet-polkadot-common, before_script]
- cp --remove-destination ${LOCAL_DIR}/assign-core.js ${LOCAL_DIR}/functional
script:
- /home/nonroot/zombie-net/scripts/ci/run-test-local-env-manager.sh
Expand Down Expand Up @@ -354,7 +346,7 @@ zombienet-polkadot-malus-0001-dispute-valid:
- job: build-polkadot-zombienet-tests
artifacts: true
before_script:
- !reference [ ".zombienet-polkadot-common", "before_script" ]
- !reference [".zombienet-polkadot-common", "before_script"]
- export POLKADOT_IMAGE="${ZOMBIENET_INTEGRATION_TEST_IMAGE}"
script:
# we want to use `--no-capture` in zombienet tests.
Expand All @@ -369,7 +361,7 @@ zombienet-polkadot-elastic-scaling-slot-based-3cores:
- job: build-polkadot-zombienet-tests
artifacts: true
before_script:
- !reference [ ".zombienet-polkadot-common", "before_script" ]
- !reference [".zombienet-polkadot-common", "before_script"]
- export POLKADOT_IMAGE="${ZOMBIENET_INTEGRATION_TEST_IMAGE}"
- export CUMULUS_IMAGE="docker.io/paritypr/test-parachain:${PIPELINE_IMAGE_TAG}"
- export X_INFRA_INSTANCE=spot # use spot by default
Expand All @@ -386,7 +378,7 @@ zombienet-polkadot-elastic-scaling-slot-based-12cores:
- job: build-polkadot-zombienet-tests
artifacts: true
before_script:
- !reference [ ".zombienet-polkadot-common", "before_script" ]
- !reference [".zombienet-polkadot-common", "before_script"]
- export POLKADOT_IMAGE="${ZOMBIENET_INTEGRATION_TEST_IMAGE}"
- export CUMULUS_IMAGE="docker.io/paritypr/test-parachain:${PIPELINE_IMAGE_TAG}"
- export X_INFRA_INSTANCE=spot # use spot by default
Expand All @@ -403,7 +395,7 @@ zombienet-polkadot-elastic-scaling-doesnt-break-parachains:
- job: build-polkadot-zombienet-tests
artifacts: true
before_script:
- !reference [ ".zombienet-polkadot-common", "before_script" ]
- !reference [".zombienet-polkadot-common", "before_script"]
- export POLKADOT_IMAGE="${ZOMBIENET_INTEGRATION_TEST_IMAGE}"
- export X_INFRA_INSTANCE=spot # use spot by default
variables:
Expand All @@ -421,7 +413,7 @@ zombienet-polkadot-elastic-scaling-basic-3cores:
- job: build-polkadot-zombienet-tests
artifacts: true
before_script:
- !reference [ ".zombienet-polkadot-common", "before_script" ]
- !reference [".zombienet-polkadot-common", "before_script"]
- export POLKADOT_IMAGE="${ZOMBIENET_INTEGRATION_TEST_IMAGE}"
- export CUMULUS_IMAGE="${COL_IMAGE}"
- export X_INFRA_INSTANCE=spot # use spot by default
Expand All @@ -438,7 +430,7 @@ zombienet-polkadot-functional-sync-backing:
- job: build-polkadot-zombienet-tests
artifacts: true
before_script:
- !reference [ ".zombienet-polkadot-common", "before_script" ]
- !reference [".zombienet-polkadot-common", "before_script"]
- export POLKADOT_IMAGE="${ZOMBIENET_INTEGRATION_TEST_IMAGE}"
# Hardcoded to an old polkadot-parachain image, pre async backing.
- export CUMULUS_IMAGE="docker.io/paritypr/polkadot-parachain-debug:master-99623e62"
Expand All @@ -456,7 +448,7 @@ zombienet-polkadot-functional-async-backing-6-seconds-rate:
- job: build-polkadot-zombienet-tests
artifacts: true
before_script:
- !reference [ ".zombienet-polkadot-common", "before_script" ]
- !reference [".zombienet-polkadot-common", "before_script"]
- export POLKADOT_IMAGE="${ZOMBIENET_INTEGRATION_TEST_IMAGE}"
- export X_INFRA_INSTANCE=spot # use spot by default
script:
Expand All @@ -472,11 +464,27 @@ zombienet-polkadot-functional-duplicate-collations:
- job: build-polkadot-zombienet-tests
artifacts: true
before_script:
- !reference [ ".zombienet-polkadot-common", "before_script" ]
- !reference [".zombienet-polkadot-common", "before_script"]
- export POLKADOT_IMAGE="${ZOMBIENET_INTEGRATION_TEST_IMAGE}"
- export X_INFRA_INSTANCE=spot # use spot by default
script:
# we want to use `--no-capture` in zombienet tests.
- unset NEXTEST_FAILURE_OUTPUT
- unset NEXTEST_SUCCESS_OUTPUT
- cargo nextest run --archive-file ./artifacts/polkadot-zombienet-tests.tar.zst --no-capture -- functional::duplicate_collations::duplicate_collations_test

zombienet-polkadot-disputes-slashing:
extends:
- .zombienet-polkadot-common
needs:
- job: build-polkadot-zombienet-tests
artifacts: true
before_script:
- !reference [".zombienet-polkadot-common", "before_script"]
- export POLKADOT_IMAGE="${ZOMBIENET_INTEGRATION_TEST_IMAGE}"
- export X_INFRA_INSTANCE=spot # use spot by default
script:
# we want to use `--no-capture` in zombienet tests.
- unset NEXTEST_FAILURE_OUTPUT
- unset NEXTEST_SUCCESS_OUTPUT
- cargo nextest run --archive-file ./artifacts/polkadot-zombienet-tests.tar.zst --no-capture -- disabling::slashing
127 changes: 110 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions polkadot/zombienet-sdk-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ serde_json = { workspace = true }
subxt = { workspace = true, features = ["substrate-compat"] }
subxt-signer = { workspace = true }
tokio = { workspace = true, features = ["rt-multi-thread"] }
tokio-util = { workspace = true, features = ["time"] }
zombienet-sdk = { workspace = true }

[features]
Expand Down
4 changes: 4 additions & 0 deletions polkadot/zombienet-sdk-tests/tests/disabling/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0

mod slashing;
Loading
Loading