ci: remove all zombienet CI infrastructure
Zombienet tests are upstream Polkadot SDK tests with no custom pallet coverage. Mainnet has 500K+ blocks, 9 successful upgrades, and zero breakage — these tests provide no value for our project. Removed 22 files (2293 lines): - 6 workflow files (zombienet_*.yml, preflight, flaky-tests check) - 3 custom actions (zombienet, zombienet-sdk, download-binaries) - 5 scripts (dispatch, run, parse, process-logs, check-flaky) - 5 config files (zombienet-env, flaky-tests, test definitions) - 1 doc file (ZOMBIENET_CI.md) - Remaining comment references in build-publish-images.yml
This commit is contained in:
@@ -1,104 +0,0 @@
|
||||
name: "Download binaries for zombienet tests"
|
||||
description: "Zombienet native tests expects some set of binaries to be available in the filesystem"
|
||||
|
||||
inputs:
|
||||
build-id:
|
||||
description: ""
|
||||
required: true
|
||||
ref-slug:
|
||||
description: "Ref slug (e.g branch-name-short)"
|
||||
required: true
|
||||
gh-token:
|
||||
description: "GITHUB_TOKEN to use for downloading artifacts"
|
||||
required: true
|
||||
destination-path:
|
||||
description: "Destination path for copied files"
|
||||
required: false
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: ./.github/actions/download-artifact-extract
|
||||
with:
|
||||
artifact-name: build-linux-bizinikiwi-${{ inputs.ref-slug }}
|
||||
gh-token: ${{ inputs.gh-token }}
|
||||
run-id: ${{ inputs.build-id }}
|
||||
extract-path: ./tmp
|
||||
files-to-copy: |
|
||||
artifacts/bizinikiwi/bizinikiwi
|
||||
destination-path: ${{ inputs.destination-path }}
|
||||
cleanup: "true"
|
||||
|
||||
- uses: ./.github/actions/download-artifact-extract
|
||||
with:
|
||||
artifact-name: build-linux-stable-${{ inputs.ref-slug }}
|
||||
gh-token: ${{ inputs.gh-token }}
|
||||
run-id: ${{ inputs.build-id }}
|
||||
extract-path: ./tmp
|
||||
files-to-copy: |
|
||||
artifacts/pezkuwi
|
||||
artifacts/pezkuwi-execute-worker
|
||||
artifacts/pezkuwi-prepare-worker
|
||||
destination-path: ${{ inputs.destination-path }}
|
||||
cleanup: "true"
|
||||
|
||||
|
||||
- uses: ./.github/actions/download-artifact-extract
|
||||
with:
|
||||
artifact-name: build-linux-stable-pezcumulus-${{ inputs.ref-slug }}
|
||||
gh-token: ${{ inputs.gh-token }}
|
||||
run-id: ${{ inputs.build-id }}
|
||||
extract-path: ./tmp
|
||||
files-to-copy: |
|
||||
artifacts/pezkuwi-teyrchain
|
||||
destination-path: ${{ inputs.destination-path }}
|
||||
cleanup: "true"
|
||||
|
||||
- uses: ./.github/actions/download-artifact-extract
|
||||
with:
|
||||
artifact-name: build-test-teyrchain-${{ inputs.ref-slug }}
|
||||
gh-token: ${{ inputs.gh-token }}
|
||||
run-id: ${{ inputs.build-id }}
|
||||
extract-path: ./tmp
|
||||
files-to-copy: |
|
||||
artifacts/test-teyrchain
|
||||
destination-path: ${{ inputs.destination-path }}
|
||||
cleanup: "true"
|
||||
|
||||
- uses: ./.github/actions/download-artifact-extract
|
||||
with:
|
||||
artifact-name: build-test-collators-${{ inputs.ref-slug }}
|
||||
gh-token: ${{ inputs.gh-token }}
|
||||
run-id: ${{ inputs.build-id }}
|
||||
extract-path: ./tmp
|
||||
files-to-copy: |
|
||||
artifacts/adder-collator
|
||||
artifacts/undying-collator
|
||||
destination-path: ${{ inputs.destination-path }}
|
||||
cleanup: "true"
|
||||
|
||||
- uses: ./.github/actions/download-artifact-extract
|
||||
with:
|
||||
artifact-name: build-malus-${{ inputs.ref-slug }}
|
||||
gh-token: ${{ inputs.gh-token }}
|
||||
run-id: ${{ inputs.build-id }}
|
||||
extract-path: ./tmp
|
||||
# TODO: should copy pezkuwi-execute-worker and pezkuwi-prepare-worker?
|
||||
# if yes then it overlaps with build-linux-stable - address this
|
||||
files-to-copy: |
|
||||
artifacts/malus
|
||||
destination-path: ${{ inputs.destination-path }}
|
||||
cleanup: "true"
|
||||
|
||||
- uses: ./.github/actions/download-artifact-extract
|
||||
with:
|
||||
artifact-name: build-templates-node-${{ inputs.ref-slug }}
|
||||
gh-token: ${{ inputs.gh-token }}
|
||||
run-id: ${{ inputs.build-id }}
|
||||
extract-path: ./tmp
|
||||
files-to-copy: |
|
||||
artifacts/minimal-template-node
|
||||
artifacts/teyrchain-template-node
|
||||
artifacts/solochain-template-node
|
||||
destination-path: ${{ inputs.destination-path }}
|
||||
cleanup: "true"
|
||||
@@ -1,107 +0,0 @@
|
||||
name: "Zombienet-sdk test"
|
||||
description: "Runs zombienet-sdk tests with archived artifacts"
|
||||
inputs:
|
||||
build-id:
|
||||
description: ""
|
||||
required: true
|
||||
ref-slug:
|
||||
description: "Ref slug (e.g branch-name-short)"
|
||||
required: true
|
||||
test-filter:
|
||||
description: "test filter to pass to nextest (e.g: functional::spam_statement_distribution_requests::spam_statement_distribution_requests_test)"
|
||||
required: true
|
||||
job-name:
|
||||
description: "Job name to use for artifact uploading"
|
||||
required: true
|
||||
prefix:
|
||||
description: "Archive prefix for tests files (e.g pezkuwi, pezcumulus or bizinikiwi)"
|
||||
required: true
|
||||
gh-token:
|
||||
description: "GITHUB_TOKEN to use for downloading artifacts"
|
||||
required: true
|
||||
|
||||
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: common_vars
|
||||
shell: bash
|
||||
env:
|
||||
TEST_FILTER: ${{ inputs.test-filter }}
|
||||
PREFIX: ${{ inputs.prefix }}
|
||||
run: |
|
||||
echo "::group::Test Configuration (SDK)"
|
||||
echo "Environment Variables:"
|
||||
echo " ZOMBIENET_INTEGRATION_TEST_IMAGE: $ZOMBIENET_INTEGRATION_TEST_IMAGE"
|
||||
echo " ZOMBIE_PROVIDER: $ZOMBIE_PROVIDER"
|
||||
echo " POLKADOT_IMAGE: $POLKADOT_IMAGE"
|
||||
echo " CUMULUS_IMAGE: $CUMULUS_IMAGE"
|
||||
echo " COL_IMAGE: $COL_IMAGE"
|
||||
echo " MALUS_IMAGE: $MALUS_IMAGE"
|
||||
echo ""
|
||||
echo "Test Parameters:"
|
||||
echo " Test Filter: $TEST_FILTER"
|
||||
echo " Prefix: $PREFIX"
|
||||
echo " Job Name: ${{ inputs.job-name }}"
|
||||
echo ""
|
||||
# Show flaky tests information if any are disabled
|
||||
if [[ -f .github/zombienet-flaky-tests ]]; then
|
||||
FLAKY_COUNT=$(grep -v '^#' .github/zombienet-flaky-tests | grep -v '^$' | wc -l | tr -d ' ')
|
||||
if [[ $FLAKY_COUNT -gt 0 ]]; then
|
||||
echo "⚠️ Flaky/Disabled Tests: $FLAKY_COUNT test(s) currently disabled"
|
||||
echo "📄 See: https://github.com/pezkuwichain/pezkuwi-sdk/blob/${{ github.sha }}/.github/zombienet-flaky-tests"
|
||||
echo "📖 Docs: https://github.com/pezkuwichain/pezkuwi-sdk/blob/${{ github.sha }}/.github/ZOMBIENET_FLAKY_TESTS.md"
|
||||
fi
|
||||
fi
|
||||
echo "::endgroup::"
|
||||
|
||||
- name: Download binaries for zombienet native tests
|
||||
if: env.ZOMBIE_PROVIDER == 'native'
|
||||
uses: ./.github/actions/download-binaries-for-zombienet-tests
|
||||
with:
|
||||
gh-token: ${{ inputs.gh-token }}
|
||||
ref-slug: ${{ inputs.ref-slug }}
|
||||
build-id: ${{ inputs.build-id }}
|
||||
destination-path: ./bin
|
||||
|
||||
- uses: ./.github/actions/download-artifact-extract
|
||||
with:
|
||||
artifact-name: prepare-${{ inputs.prefix }}-zombienet-artifacts-${{ inputs.ref-slug }}
|
||||
gh-token: ${{ inputs.gh-token }}
|
||||
run-id: ${{ inputs.build-id }}
|
||||
|
||||
- name: k8s_auth
|
||||
if: env.ZOMBIE_PROVIDER == 'k8s'
|
||||
shell: bash
|
||||
run: |
|
||||
. /home/nonroot/zombie-net/scripts/ci/run-test-local-env-manager.sh
|
||||
k8s_auth
|
||||
|
||||
- name: zombie_test
|
||||
shell: bash
|
||||
env:
|
||||
# don't retry sdk tests
|
||||
NEXTEST_RETRIES: 0
|
||||
TEST_FILTER: ${{ inputs.test-filter }}
|
||||
PREFIX: ${{ inputs.prefix }}
|
||||
run: |
|
||||
# RUN_IN_CI=1 shall be set only for k8s provider
|
||||
if [[ "$ZOMBIE_PROVIDER" == "native" ]]; then
|
||||
export RUN_IN_CI=0
|
||||
# set path to downloaded binaries
|
||||
export PATH=$(pwd)/bin:$PATH
|
||||
chmod +x $(pwd)/bin/*
|
||||
else
|
||||
export RUN_IN_CI=1
|
||||
# no need to check other runner variables. for k8s they shall store the same value
|
||||
if [[ $ZOMBIENET_SDK_DEFAULT_RUNNER == "pezkuwi-runner" ]]; then
|
||||
export ZOMBIE_K8S_CI_NAMESPACE=$(cat /data/namespace)
|
||||
fi
|
||||
fi
|
||||
|
||||
ls -ltr ./artifacts
|
||||
# We want to run tests sequentially, '--no-capture' ensures that.
|
||||
# If we want to get rid of '--no-capture' some day, please use '--test-threads 1' or NEXTEST_TEST_THREADS=1
|
||||
# Both options cannot coexist for cargo-nextest below v0.9.94
|
||||
cargo nextest run --archive-file ./artifacts/${PREFIX}-zombienet-tests.tar.zst --no-capture -- ${TEST_FILTER}
|
||||
@@ -1,104 +0,0 @@
|
||||
name: "Zombienet test v1"
|
||||
description: "Runs zombienet tests"
|
||||
inputs:
|
||||
test-definition:
|
||||
description: "test definition (zndsl file)"
|
||||
required: true
|
||||
job-name:
|
||||
description: "Job name to use for artifact uploading"
|
||||
required: true
|
||||
local-dir:
|
||||
description: "Path to the directory tha contains the test file (.zndsl)"
|
||||
required: true
|
||||
concurrency:
|
||||
description: "Concurrency to spawn nodes"
|
||||
default: 4
|
||||
required: false
|
||||
build-id:
|
||||
description: ""
|
||||
required: true
|
||||
ref-slug:
|
||||
description: "Ref slug (e.g branch-name-short)"
|
||||
required: true
|
||||
gh-token:
|
||||
description: "GITHUB_TOKEN to use for downloading artifacts"
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: common_vars
|
||||
shell: bash
|
||||
env:
|
||||
TEST_DEFINITION: ${{ inputs.test-definition }}
|
||||
LOCAL_PATH: ${{ inputs.local-dir }}
|
||||
CONCURRENCY: ${{ inputs.concurrency }}
|
||||
run: |
|
||||
echo "::group::Test Configuration"
|
||||
echo "══════════════════════════════════════════════════════════════════"
|
||||
echo "Environment Variables:"
|
||||
echo " ZOMBIENET_INTEGRATION_TEST_IMAGE: $ZOMBIENET_INTEGRATION_TEST_IMAGE"
|
||||
echo " ZOMBIENET_PROVIDER: $ZOMBIENET_PROVIDER"
|
||||
echo " COL_IMAGE: $COL_IMAGE"
|
||||
echo ""
|
||||
echo "Test Parameters:"
|
||||
echo " Test Definition: $TEST_DEFINITION"
|
||||
echo " Job Name: ${{ inputs.job-name }}"
|
||||
echo " Local Directory: $LOCAL_PATH"
|
||||
echo " Concurrency: $CONCURRENCY"
|
||||
echo ""
|
||||
# Show flaky tests information if any are disabled
|
||||
if [[ -f .github/zombienet-flaky-tests ]]; then
|
||||
FLAKY_COUNT=$(grep -v '^#' .github/zombienet-flaky-tests | grep -v '^$' | wc -l | tr -d ' ')
|
||||
if [[ $FLAKY_COUNT -gt 0 ]]; then
|
||||
echo "⚠️ Flaky/Disabled Tests: $FLAKY_COUNT test(s) currently disabled"
|
||||
echo "📄 See: https://github.com/pezkuwichain/pezkuwi-sdk/blob/${{ github.sha }}/.github/zombienet-flaky-tests"
|
||||
echo "📖 Docs: https://github.com/pezkuwichain/pezkuwi-sdk/blob/${{ github.sha }}/.github/ZOMBIENET_FLAKY_TESTS.md"
|
||||
fi
|
||||
fi
|
||||
echo "════════════════════════════════════════════════════════════════"
|
||||
echo "::endgroup::"
|
||||
|
||||
- name: Download binaries for zombienet native tests
|
||||
if: env.ZOMBIENET_PROVIDER == 'native'
|
||||
uses: ./.github/actions/download-binaries-for-zombienet-tests
|
||||
with:
|
||||
gh-token: ${{ inputs.gh-token }}
|
||||
ref-slug: ${{ inputs.ref-slug }}
|
||||
build-id: ${{ inputs.build-id }}
|
||||
destination-path: ./bin
|
||||
|
||||
- name: k8s_auth
|
||||
if: env.ZOMBIENET_PROVIDER == 'k8s'
|
||||
shell: bash
|
||||
run: |
|
||||
. /home/nonroot/zombie-net/scripts/ci/run-test-local-env-manager.sh
|
||||
k8s_auth
|
||||
|
||||
- name: zombie_test
|
||||
shell: bash
|
||||
env:
|
||||
TEST_DEFINITION: ${{ inputs.test-definition }}
|
||||
LOCAL_PATH: ${{ inputs.local-dir }}
|
||||
CONCURRENCY: ${{ inputs.concurrency }}
|
||||
run: |
|
||||
if [[ "$ZOMBIENET_PROVIDER" == "native" ]]; then
|
||||
# set path to downloaded binaries
|
||||
export PATH=$(pwd)/bin:$PATH
|
||||
chmod +x $(pwd)/bin/*
|
||||
|
||||
./.github/scripts/run-zombienet-test.sh \
|
||||
"$(pwd)/$LOCAL_PATH" \
|
||||
$CONCURRENCY \
|
||||
"$TEST_DEFINITION"
|
||||
else
|
||||
# no need to check other runner variables. for k8s they shall store the same value
|
||||
if [[ $ZOMBIENET_DEFAULT_RUNNER == "pezkuwi-runner" ]]; then
|
||||
export ZOMBIE_K8S_CI_NAMESPACE=$(cat /data/namespace)
|
||||
fi
|
||||
|
||||
/home/nonroot/zombie-net/scripts/ci/run-test-local-env-manager.sh \
|
||||
--local-dir="$(pwd)/$LOCAL_PATH" \
|
||||
--concurrency=$CONCURRENCY \
|
||||
--test="$TEST_DEFINITION"
|
||||
fi
|
||||
Reference in New Issue
Block a user