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

add zombienet-sdk test to parachain-template #5342

Merged
merged 27 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
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
13 changes: 13 additions & 0 deletions .gitlab/pipeline/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,19 @@ build-malus:
- echo "polkadot-test-malus = $(cat ./artifacts/VERSION) (EXTRATAG = $(cat ./artifacts/EXTRATAG))"
- cp -r ./docker/* ./artifacts

build-parachain-template-node:
stage: build
extends:
- .docker-env
- .common-refs
- .run-immediately
- .collect-artifacts
script:
- time cargo build --locked --package parachain-template-node --release
# pack artifacts
- mkdir -p ./artifacts
- mv ./target/release/parachain-template-node ./artifacts/.

build-rustdoc:
stage: build
extends:
Expand Down
2 changes: 2 additions & 0 deletions .gitlab/pipeline/zombienet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ include:
- .gitlab/pipeline/zombienet/polkadot.yml
# bridges tests
- .gitlab/pipeline/zombienet/bridges.yml
# parachain-template-node tests
- .gitlab/pipeline/zombienet/parachain-template.yml
41 changes: 41 additions & 0 deletions .gitlab/pipeline/zombienet/parachain-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# common settings for all zombienet jobs
.zombienet-parachain-template-common:
before_script:
# add `./artifacts` to the PATH
- export PATH=./artifacts:$PATH
stage: zombienet
needs:
- job: build-linux-stable # polkadot binaries
artifacts: true
- job: build-parachain-template-node # parachain-template-node
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 ./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
Loading
Loading