feat: Add rebrand CI/CD workflows to main branch
- Add 72 rebrand workflow files (polkadot→pezkuwi, substrate→bizinikiwi, cumulus→pezcumulus) - Add GitHub actions, issue templates, and configs - Removed unnecessary workflows (fork-sync, gitspiegel, upstream-tracker, sync-templates, backport) - Renamed zombienet test files to match new naming convention
This commit is contained in:
@@ -0,0 +1,133 @@
|
||||
name: Zombienet Pezcumulus
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
build_run_id:
|
||||
type: string
|
||||
description: "Build run ID from the build workflow."
|
||||
required: true
|
||||
ref_slug:
|
||||
type: string
|
||||
description: "Source ref slug from the build workflow."
|
||||
required: false
|
||||
test_pattern:
|
||||
type: string
|
||||
description: "Run tests which names match this pattern (also flaky)"
|
||||
default: ""
|
||||
required: false
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
test_pattern:
|
||||
type: string
|
||||
description: "Run tests which names match this pattern (also flaky)"
|
||||
default: ""
|
||||
required: false
|
||||
|
||||
concurrency:
|
||||
group: pezcumulus-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
env:
|
||||
FF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR: 1
|
||||
LOCAL_DIR: "./pezcumulus/zombienet/tests"
|
||||
GHA_CLUSTER_SERVER_ADDR: "https://kubernetes.default:443"
|
||||
# use spot by default
|
||||
X_INFRA_INSTANCE: "spot"
|
||||
# don't retry sdk tests
|
||||
NEXTEST_RETRIES: 0
|
||||
KUBECONFIG: "/data/config"
|
||||
ZOMBIE_CLEANER_DISABLED: 1
|
||||
|
||||
# only run if we have changes in [bizinikiwi, pezcumulus, pezkuwi] directories or this workflow.
|
||||
jobs:
|
||||
isdraft:
|
||||
uses: ./.github/workflows/reusable-isdraft.yml
|
||||
preflight:
|
||||
needs: isdraft
|
||||
uses: ./.github/workflows/zombienet-reusable-preflight.yml
|
||||
with:
|
||||
tests_yaml: .github/zombienet-tests/zombienet_pezcumulus_tests.yml
|
||||
test_pattern: ${{ inputs.test_pattern }}
|
||||
build_run_id: ${{ inputs.build_run_id }}
|
||||
ref_slug: ${{ inputs.ref_slug }}
|
||||
|
||||
|
||||
zombienet-pezcumulus-tests:
|
||||
name: ${{ matrix.test.job-name }}
|
||||
runs-on: ${{ matrix.test.runner-type == 'large' && needs.preflight.outputs.ZOMBIENET_SDK_LARGE_RUNNER || needs.preflight.outputs.ZOMBIENET_SDK_DEFAULT_RUNNER }}
|
||||
timeout-minutes: 70 # 60 for test + 10 for send logs
|
||||
needs: [preflight]
|
||||
# Run if: called from build workflow OR merge_group OR (changes detected)
|
||||
if: ${{ github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || github.event_name == 'merge_group' || (needs.preflight.outputs.changes_bizinikiwi == 'true' || needs.preflight.outputs.changes_pezcumulus == 'true' || needs.preflight.outputs.changes_pezkuwi == 'true' || needs.preflight.outputs.changes_zombienet == 'true') }}
|
||||
container:
|
||||
image: ${{ needs.preflight.outputs.ZOMBIENET_SDK_IMAGE }}
|
||||
options: -v /tmp/zombienet:/tmp/zombienet
|
||||
env:
|
||||
PEZKUWI_IMAGE: "${{ needs.preflight.outputs.TEMP_IMAGES_BASE }}/pezkuwi-debug:${{ needs.preflight.outputs.DOCKER_IMAGES_VERSION }}"
|
||||
CUMULUS_IMAGE: "${{ needs.preflight.outputs.TEMP_IMAGES_BASE }}/${{ matrix.test.pezcumulus-image }}:${{ needs.preflight.outputs.DOCKER_IMAGES_VERSION }}"
|
||||
RUST_LOG: ${{ needs.preflight.outputs.RUST_LOG }}
|
||||
ZOMBIE_PROVIDER: ${{ needs.preflight.outputs.ZOMBIE_PROVIDER }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
test: ${{ fromJson(needs.preflight.outputs.TEST_MATRIX) }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||
|
||||
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
if: ${{ matrix.test.needs-wasm-binary }}
|
||||
with:
|
||||
name: build-test-teyrchain-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
run-id: ${{ needs.preflight.outputs.BUILD_RUN_ID }}
|
||||
|
||||
- name: provide_wasm_binary
|
||||
if: ${{ matrix.test.needs-wasm-binary }}
|
||||
run: |
|
||||
tar -xvf artifacts.tar
|
||||
ls -ltr artifacts/*
|
||||
cp ./artifacts/zombienet/wasm_binary_spec_version_incremented.rs.compact.compressed.wasm /tmp/
|
||||
cp ./artifacts/zombienet/wasm_binary_elastic_scaling.rs.compact.compressed.wasm /tmp/
|
||||
cp ./artifacts/zombienet/wasm_binary_elastic_scaling_12s_slot.rs.compact.compressed.wasm /tmp/
|
||||
ls -ltr /tmp
|
||||
rm -rf artifacts
|
||||
|
||||
- name: zombienet_test
|
||||
timeout-minutes: 60
|
||||
uses: ./.github/actions/zombienet-sdk
|
||||
with:
|
||||
test-filter: ${{ matrix.test.test-filter }}
|
||||
job-name: ${{ matrix.test.job-name }}
|
||||
prefix: "pezcumulus"
|
||||
gh-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
build-id: ${{ needs.preflight.outputs.BUILD_RUN_ID }}
|
||||
ref-slug: ${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
|
||||
|
||||
- name: process_logs
|
||||
if: ${{ always() }}
|
||||
shell: bash
|
||||
run: |
|
||||
echo "Processing log files"
|
||||
echo "::group::Logs"
|
||||
# do not fail the whole run if this step fails
|
||||
if ! ./.github/scripts/process-logs-zombienet.sh ; then
|
||||
echo "::endgroup::"
|
||||
echo "::warning ::WARNING: Failed to process logs"
|
||||
else
|
||||
echo "::endgroup::"
|
||||
fi
|
||||
|
||||
|
||||
- name: upload_logs
|
||||
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: zombienet-logs-${{ matrix.test.job-name }}-${{ github.sha }}
|
||||
path: |
|
||||
/tmp/zombie*/logs/*
|
||||
Reference in New Issue
Block a user