Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
19 changes: 13 additions & 6 deletions .github/actions/zombienet-sdk/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ runs:
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: 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
Expand All @@ -98,6 +98,13 @@ runs:
if [[ $ZOMBIENET_SDK_DEFAULT_RUNNER == "parity-zombienet" ]]; then
export ZOMBIE_K8S_CI_NAMESPACE=$(cat /data/namespace)
fi

if [[ -v GHA_CLUSTER_SERVER_ADDR ]]; then
kubectl config set-cluster parity-zombienet --server="${GHA_CLUSTER_SERVER_ADDR}" --certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt
kubectl config set-credentials pod-token --token="$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)"
kubectl config set-context pod-context --cluster=parity-zombienet --user=pod-token
kubectl config use-context pod-context
fi
fi

ls -ltr ./artifacts
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/zombienet_cumulus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ jobs:
zombienet-cumulus-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 }}
container:
image: ${{ matrix.test.use-provider == 'k8s' && 'docker.io/paritytech/zombienet:v1.3.136' || null }}
timeout-minutes: 70 # 60 for test + 10 for send logs
needs: [preflight]
# Run if: called from build workflow OR merge_group OR (changes detected)
Expand All @@ -69,7 +71,7 @@ jobs:
POLKADOT_IMAGE: "${{ needs.preflight.outputs.TEMP_IMAGES_BASE }}/polkadot-debug:${{ needs.preflight.outputs.DOCKER_IMAGES_VERSION }}"
CUMULUS_IMAGE: "${{ needs.preflight.outputs.TEMP_IMAGES_BASE }}/${{ matrix.test.cumulus-image }}:${{ needs.preflight.outputs.DOCKER_IMAGES_VERSION }}"
RUST_LOG: ${{ needs.preflight.outputs.RUST_LOG }}
ZOMBIE_PROVIDER: ${{ needs.preflight.outputs.ZOMBIE_PROVIDER }}
ZOMBIE_PROVIDER: ${{ matrix.test.use-provider && matrix.test.use-provider || needs.preflight.outputs.ZOMBIE_PROVIDER }}

strategy:
fail-fast: false
Expand All @@ -80,6 +82,12 @@ jobs:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Set additional environment variables
if: ${{ matrix.test.additional-env }}
shell: bash
run: |
echo '${{ toJson(matrix.test.additional-env) }}' | jq -r 'to_entries[] | "\(.key)=\(.value)"' >> $GITHUB_ENV

- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
if: ${{ matrix.test.needs-wasm-binary }}
with:
Expand Down
10 changes: 10 additions & 0 deletions .github/zombienet-tests/zombienet_cumulus_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,13 @@
cumulus-image: "test-parachain"
use-zombienet-sdk: true
needs-wasm-binary: true

- job-name: "zombienet-cumulus-statement_store_latency_bench"
test-filter: "zombie_ci::statement_store_bench::statement_store_latency_bench"
runner-type: "default"
cumulus-image: "test-parachain"
use-zombienet-sdk: true
use-provider: "k8s"
additional-env:
ZOMBIE_K8S_REQUEST_CPU: "2"
ZOMBIE_K8S_REQUEST_MEM: "16G"
Loading
Loading