Skip to content

Commit 433bc9d

Browse files
ordianpepoviola
authored andcommitted
zombienet: use another collator image for the slashing test (#1386)
* zombienet: use test-parachain image for the slashing test * use the right image * try polkadot-parachain image * try naming collator alice 🙈 * add needed job for the pipeline * fix user id in polkadot-parachain-debug image * small tweaks to the test * another small tweak * yet another small tweak * bump zombienet version --------- Co-authored-by: Javier Viola <[email protected]>
1 parent 43d7a8c commit 433bc9d

5 files changed

Lines changed: 12 additions & 9 deletions

File tree

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ variables:
3030
RUSTY_CACHIER_COMPRESSION_METHOD: zstd
3131
NEXTEST_FAILURE_OUTPUT: immediate-final
3232
NEXTEST_SUCCESS_OUTPUT: final
33-
ZOMBIENET_IMAGE: "docker.io/paritytech/zombienet:v1.3.65"
33+
ZOMBIENET_IMAGE: "docker.io/paritytech/zombienet:v1.3.67"
3434
DOCKER_IMAGES_VERSION: "${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}"
3535

3636
default:

.gitlab/pipeline/zombienet/polkadot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
- export ZOMBIENET_INTEGRATION_TEST_IMAGE="${POLKADOT_IMAGE}":${PIPELINE_IMAGE_TAG}
1010
- export ZOMBIENET_INTEGRATION_TEST_SECONDARY_IMAGE="docker.io/parity/polkadot:${BUILD_RELEASE_VERSION}"
1111
- export COL_IMAGE="${COLANDER_IMAGE}":${PIPELINE_IMAGE_TAG}
12+
- export CUMULUS_IMAGE="docker.io/paritypr/polkadot-parachain-debug:${DOCKER_IMAGES_VERSION}"
1213
- export MALUS_IMAGE="${MALUS_IMAGE}":${PIPELINE_IMAGE_TAG}
1314
- echo "Zombienet Tests Config"
1415
- echo "gh-dir ${GH_DIR}"
1516
- echo "local-dir ${LOCAL_DIR}"
1617
- echo "polkadot image ${ZOMBIENET_INTEGRATION_TEST_IMAGE}"
1718
- echo "polkadot secondary image ${ZOMBIENET_INTEGRATION_TEST_SECONDARY_IMAGE}"
1819
- echo "colander image ${COL_IMAGE}"
20+
- echo "cumulus image ${CUMULUS_IMAGE}"
1921
- echo "malus image ${MALUS_IMAGE}"
2022
stage: zombienet
2123
image: "${ZOMBIENET_IMAGE}"
@@ -28,6 +30,8 @@
2830
artifacts: true
2931
- job: build-push-image-colander
3032
artifacts: true
33+
- job: build-push-image-polkadot-parachain-debug
34+
artifacts: true
3135
extends:
3236
- .kubernetes-env
3337
- .zombienet-refs

docker/dockerfiles/polkadot-parachain/polkadot-parachain-debug_unsigned_injected.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ RUN apt-get update && \
2828
apt-get clean && \
2929
find /var/lib/apt/lists/ -type f -not -name lock -delete; \
3030
# add user and link ~/.local/share/polkadot-parachain to /data
31-
useradd -m -u 10000 -U -s /bin/sh -d /polkadot-parachain polkadot-parachain && \
31+
useradd -m -u 1000 -U -s /bin/sh -d /polkadot-parachain polkadot-parachain && \
3232
mkdir -p /data /polkadot-parachain/.local/share && \
3333
chown -R polkadot-parachain:polkadot-parachain /data && \
3434
ln -s /data /polkadot-parachain/.local/share/polkadot-parachain && \

polkadot/zombienet_tests/functional/0005-parachains-disputes-past-session.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ bootnode = true
55
[relaychain.genesis.runtime.configuration.config]
66
max_validators_per_core = 1
77
needed_approvals = 2
8-
group_rotation_frequency = 3
8+
group_rotation_frequency = 2
99

1010
[relaychain]
1111
default_image = "{{ZOMBIENET_INTEGRATION_TEST_IMAGE}}"
@@ -39,8 +39,7 @@ id = 1000
3939
cumulus_based = true
4040

4141
[parachains.collator]
42-
name = "collator"
42+
name = "alice"
4343
command = "polkadot-parachain"
44-
image = "docker.io/parity/polkadot-parachain:latest"
45-
# image = "{{COL_IMAGE}}"
44+
image = "{{CUMULUS_IMAGE}}"
4645
args = ["-lparachain=debug"]

polkadot/zombienet_tests/functional/0005-parachains-disputes-past-session.zndsl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ malus-validator: resume
2121
malus-validator: log line matches "Suggesting malicious candidate" within 200 seconds
2222

2323
# Pause first flaky node
24-
# Availability and finality will continue with 3/4 nodes online (incl. malus)
24+
# Availability will continue with 3/4 nodes online (incl. malus)
2525
honest-flaky-validator-0: pause
2626

2727
# Wait for the dispute
28-
honest-flaky-validator-1: reports parachain_candidate_disputes_total is at least 1 within 40 seconds
28+
honest-flaky-validator-1: reports parachain_candidate_disputes_total is at least 1 within 60 seconds
2929

3030
# Pause second flaky node so that we do not revert blocks due to f+1 invalid votes
3131
# Availability and finality will stop
3232
honest-flaky-validator-1: pause
3333

3434
# Wait for 1 full session to pass after the last unconcluded dispute.
35-
sleep 120 seconds
35+
sleep 110 seconds
3636

3737
# Now resume flaky validators
3838
honest-flaky-validator: resume

0 commit comments

Comments
 (0)