-
Notifications
You must be signed in to change notification settings - Fork 722
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add zombienet-sdk test to parachain-template (#5342)
Add new `CI` machinery to smoke test the `parachain-template-node` using zombienet-sdk. Thx! --------- Co-authored-by: Przemek Rzad <[email protected]> Co-authored-by: Shawn Tabrizi <[email protected]> Co-authored-by: rzadp <[email protected]> Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Kian Paimani <[email protected]>
- Loading branch information
1 parent
9064fb4
commit 9307d99
Showing
7 changed files
with
3,320 additions
and
1,428 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# common settings for all zombienet jobs | ||
.zombienet-parachain-template-common: | ||
before_script: | ||
# add `./artifacts` to the PATH | ||
- export PATH=$(pwd)/artifacts:$PATH | ||
stage: zombienet | ||
needs: | ||
- job: build-linux-stable # polkadot binaries | ||
artifacts: true | ||
- job: build-templates-node # templates | ||
artifacts: true | ||
extends: | ||
- .docker-env | ||
- .zombienet-refs | ||
variables: | ||
ZOMBIE_PROVIDER: "native" | ||
RUST_LOG: "info,zombienet_orchestrator=debug" | ||
FF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR: 1 | ||
RUN_IN_CONTAINER: "1" | ||
artifacts: | ||
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}" | ||
when: always | ||
expire_in: 2 days | ||
paths: | ||
- ./zombienet-logs | ||
after_script: | ||
- mkdir -p ./zombienet-logs | ||
- cp /tmp/zombie*/logs/* ./zombienet-logs/ | ||
retry: 2 | ||
timeout: 15m | ||
tags: | ||
- linux-docker | ||
|
||
zombienet-parachain-template-smoke: | ||
extends: | ||
- .zombienet-parachain-template-common | ||
script: | ||
- echo $PATH | ||
- ls -ltr $(pwd)/artifacts | ||
- cargo test -p template-zombienet-tests --features zombienet --tests minimal_template_block_production_test | ||
- cargo test -p template-zombienet-tests --features zombienet --tests parachain_template_block_production_test | ||
# - cargo test -p template-zombienet-tests --features zombienet --tests solochain_template_block_production_test |
Oops, something went wrong.