Skip to content

Commit

Permalink
Rename zombienet extension (#6073)
Browse files Browse the repository at this point in the history
* Rename extension files and respective entries from '.feature' to '.zndsl'

* Rename zombienet extension for 0001-dispute-valid-block test
  • Loading branch information
wirednkod authored Sep 29, 2022
1 parent 9196f32 commit 39e55ff
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 17 deletions.
6 changes: 3 additions & 3 deletions polkadot/node/malus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ The first argument determines the behavior strain. The currently supported are:
To define integration tests create file
in the toml format as used with [zombienet][zombienet]
under `./integrationtests` describing the network to spawn and
also the `feature` file (with `.feature` extension ) using the format
defined in the [DSL doc](https://github.com/paritytech/zombienet/blob/main/docs/testing-dsl-definition.md).
also the `zndsl` file (with `.zndsl` extension ) using the format
defined in the [(DSL[(**D**omain **S**pecific **L**anguage)]) doc](https://paritytech.github.io/zombienet/cli/test-dsl-definition-spec.html).

## Usage

Expand All @@ -37,7 +37,7 @@ gcloud container clusters get-credentials "parity-zombienet" --zone "europe-west
# launching the actual test
cd zombienet
npm run build
node dist/cli.js test <path to polkadot repo>/node/malus/integrationtests/0001-dispute-valid-block.feature
node dist/cli.js test <path to polkadot repo>/node/malus/integrationtests/0001-dispute-valid-block.zndsl

# Access logs (in google cloud storage)
gsutil ls gs://zombienet-logs/zombie-<namespace uniqueId>/logs/
Expand Down
22 changes: 11 additions & 11 deletions polkadot/scripts/ci/gitlab/pipeline/zombienet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ zombienet-tests-parachains-smoke-test:
script:
- /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh
--github-remote-dir="${GH_DIR}"
--test="0001-parachains-smoke-test.feature"
--test="0001-parachains-smoke-test.zndsl"
allow_failure: false
retry: 2
tags:
Expand Down Expand Up @@ -56,7 +56,7 @@ zombienet-tests-parachains-pvf:
script:
- /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh
--github-remote-dir="${GH_DIR}"
--test="0001-parachains-pvf.feature"
--test="0001-parachains-pvf.zndsl"
allow_failure: false
retry: 2
tags:
Expand Down Expand Up @@ -87,7 +87,7 @@ zombienet-tests-parachains-disputes:
script:
- /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh
--github-remote-dir="${GH_DIR}"
--test="0002-parachains-disputes.feature"
--test="0002-parachains-disputes.zndsl"
allow_failure: false
retry: 2
tags:
Expand Down Expand Up @@ -118,7 +118,7 @@ zombienet-tests-parachains-disputes-garbage-candidate:
script:
- /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh
--github-remote-dir="${GH_DIR}"
--test="0003-parachains-garbage-candidate.feature"
--test="0003-parachains-garbage-candidate.zndsl"
allow_failure: false
retry: 2
tags:
Expand Down Expand Up @@ -148,7 +148,7 @@ zombienet-test-parachains-upgrade-smoke-test:
script:
- /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh
--github-remote-dir="${GH_DIR}"
--test="0002-parachains-upgrade-smoke-test.feature"
--test="0002-parachains-upgrade-smoke-test.zndsl"
allow_failure: true
retry: 2
tags:
Expand Down Expand Up @@ -177,7 +177,7 @@ zombienet-tests-misc-paritydb:
script:
- /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh
--github-remote-dir="${GH_DIR}"
--test="0001-paritydb.feature"
--test="0001-paritydb.zndsl"
allow_failure: false
retry: 2
tags:
Expand Down Expand Up @@ -210,7 +210,7 @@ zombienet-tests-misc-upgrade-node:
script:
- /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh
--github-remote-dir="${GH_DIR}"
--test="0002-upgrade-node.feature"
--test="0002-upgrade-node.zndsl"
allow_failure: false
retry: 2
tags:
Expand Down Expand Up @@ -241,7 +241,7 @@ zombienet-tests-malus-dispute-valid:
script:
- /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh
--github-remote-dir="${GH_DIR}"
--test="0001-dispute-valid-block.feature"
--test="0001-dispute-valid-block.zndsl"
allow_failure: false
retry: 2
tags:
Expand Down Expand Up @@ -269,7 +269,7 @@ zombienet-tests-deregister-register-validator:
script:
- /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh
--github-remote-dir="${GH_DIR}"
--test="0003-deregister-register-validator-smoke.feature"
--test="0003-deregister-register-validator-smoke.zndsl"
allow_failure: false
retry: 2
tags:
Expand All @@ -295,8 +295,8 @@ zombienet-tests-beefy-and-mmr:
script:
- /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh
--github-remote-dir="${GH_DIR}"
--test="0003-beefy-and-mmr.feature"
--test="0003-beefy-and-mmr.zndsl"
allow_failure: true
retry: 2
tags:
- zombienet-polkadot-integration-test
- zombienet-polkadot-integration-test
5 changes: 3 additions & 2 deletions polkadot/zombienet_tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ _The content of this directory is meant to be used by Parity's private CI/CD inf
`parachains`
At the moment this directory only have one test related to parachains: `/parachains-smoke-test`, that check the parachain registration and the block height.

## Resources (private)
## Resources

* [zombienet repo](https://github.com/paritytech/zombienet)
* [zombienet book](https://paritytech.github.io/zombienet/)

## Questions / permissions

Ping in element [Javier](@javier:matrix.parity.io) to ask questions or grant permission to run the test from your local setup.
Ping in element Javier (@javier:matrix.parity.io) to ask questions or grant permission to run the test from your local setup.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ mkdir -p $CFG_DIR
export PATH=$CFG_DIR:$PATH

cd $CFG_DIR
# see 0002-upgrade-node.feature to view the args.
# see 0002-upgrade-node.zndsl to view the args.
curl -L -O $1
chmod +x $CFG_DIR/polkadot
echo $(polkadot --version)

0 comments on commit 39e55ff

Please sign in to comment.