Skip to content

Switch runtimes benchmarking for delivering to sibling parachains instead of Parent #3190

Switch runtimes benchmarking for delivering to sibling parachains instead of Parent

Switch runtimes benchmarking for delivering to sibling parachains instead of Parent #3190

name: Zombienet Parachain Templates
on:
workflow_dispatch: # Disabled for being flaky
#push:
# branches:
# - master
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled]
#merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
RUN_IN_CONTAINER: 1
FF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR: 1
GHA_CLUSTER_SERVER_ADDR: "https://kubernetes.default:443"
# use spot by default
X_INFRA_INSTANCE: "spot"
# don't retry sdk tests
NEXTEST_RETRIES: 0
ZOMBIE_PROVIDER: "native"
RUST_LOG: "info,zombienet_orchestrator=debug"
# only run if we have changes in [subtrate, polkadot] directories or this workflow.
jobs:
isdraft:
uses: ./.github/workflows/reusable-isdraft.yml
preflight:
needs: isdraft
uses: ./.github/workflows/zombienet-reusable-preflight.yml
zombienet-parachain-template-smoke:
needs: [preflight]
if: ${{ (needs.preflight.outputs.changes_substrate || needs.preflight.outputs.changes_polkadot) && ! contains(needs.preflight.outputs.FLAKY_TESTS, 'zombienet-parachain-template-smoke') }}
runs-on: parity-default
timeout-minutes: 30
container:
image: ${{ needs.preflight.outputs.CI_IMAGE }}
env:
ZOMBIE_PROVIDER: "native"
RUST_LOG: "info,zombienet_orchestrator=debug"
FF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR: 1
RUN_IN_CONTAINER: "1"
IMAGE: ${{ needs.preflight.outputs.CI_IMAGE }}
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/[email protected]
with:
path: build-artifacts-linux-stable
name: build-linux-stable-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ needs.preflight.outputs.BUILD_RUN_ID }}
- uses: actions/[email protected]
with:
path: build-artifacts-templates-node
name: build-templates-node-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ needs.preflight.outputs.BUILD_RUN_ID }}
- run: ls -R build-artifacts*
- name: tar
shell: bash
run: |
echo "uncompressing build-artifacts-linux-stable"
cd build-artifacts-linux-stable && tar -xvf artifacts.tar
rm artifacts.tar
cd ../
echo "uncompressing build-artifacts-templates-node"
cd build-artifacts-templates-node && tar -xvf artifacts.tar
- run: ls -R build-artifacts*
- name: zombienet
id: zombienet_tests
shell: bash
run: |
# add `artifacts` to the PATH
export PATH=$(pwd)/build-artifacts-templates-node/artifacts:$(pwd)/build-artifacts-linux-stable/artifacts:$PATH
echo $PATH
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
#
# upload 'native' logs
- name: upload_logs
uses: actions/upload-artifact@v4
if: ${{ ! cancelled() }}
with:
name: zombienet-logs-${{ github.job }}-${{ github.sha }}
path: |
/tmp/zombie*/*/*.log