diff --git a/.github/workflows/run-kata-coco-tests.yaml b/.github/workflows/run-kata-coco-tests.yaml index 4fdf1cd909..3d730520b2 100644 --- a/.github/workflows/run-kata-coco-tests.yaml +++ b/.github/workflows/run-kata-coco-tests.yaml @@ -57,6 +57,8 @@ jobs: include: - runner: tdx vmm: qemu-tdx + - runner: tdx + vmm: qemu-tdx-runtime-rs - runner: sev-snp vmm: qemu-snp - runner: sev-snp @@ -81,58 +83,71 @@ jobs: AUTHENTICATED_IMAGE_PASSWORD: ${{ secrets.AUTHENTICATED_IMAGE_PASSWORD }} AUTO_GENERATE_POLICY: "yes" steps: + - name: Skip non-nightly TDX runtime-rs + if: ${{ matrix.vmm == 'qemu-tdx-runtime-rs' && inputs.pr-number != 'nightly' }} + run: echo "SKIP_JOB=true" >> "${GITHUB_ENV}" + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + if: ${{ env.SKIP_JOB != 'true' }} with: ref: ${{ inputs.commit-hash }} fetch-depth: 0 persist-credentials: false - name: Rebase atop of the latest target branch + if: ${{ env.SKIP_JOB != 'true' }} run: | ./tests/git-helper.sh "rebase-atop-of-the-latest-target-branch" env: TARGET_BRANCH: ${{ inputs.target-branch }} - name: get-kata-tools-tarball + if: ${{ env.SKIP_JOB != 'true' }} uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 with: name: kata-tools-static-tarball-amd64${{ inputs.tarball-suffix }} path: kata-tools-artifacts - name: Install kata-tools + if: ${{ env.SKIP_JOB != 'true' }} run: bash tests/integration/kubernetes/gha-run.sh install-kata-tools kata-tools-artifacts - name: Deploy Kata + if: ${{ env.SKIP_JOB != 'true' }} timeout-minutes: 20 run: bash tests/integration/kubernetes/gha-run.sh deploy-kata - name: Uninstall previous `kbs-client` + if: ${{ env.SKIP_JOB != 'true' }} timeout-minutes: 10 run: bash tests/integration/kubernetes/gha-run.sh uninstall-kbs-client - name: Deploy CoCo KBS + if: ${{ env.SKIP_JOB != 'true' }} timeout-minutes: 10 run: bash tests/integration/kubernetes/gha-run.sh deploy-coco-kbs - name: Install `kbs-client` + if: ${{ env.SKIP_JOB != 'true' }} timeout-minutes: 10 run: bash tests/integration/kubernetes/gha-run.sh install-kbs-client - name: Run tests + if: ${{ env.SKIP_JOB != 'true' }} timeout-minutes: 100 run: bash tests/integration/kubernetes/gha-run.sh run-tests - name: Report tests - if: always() + if: ${{ always() && env.SKIP_JOB != 'true' }} run: bash tests/integration/kubernetes/gha-run.sh report-tests - name: Delete kata-deploy - if: always() + if: ${{ always() && env.SKIP_JOB != 'true' }} timeout-minutes: 15 run: bash tests/integration/kubernetes/gha-run.sh cleanup - name: Delete CoCo KBS - if: always() + if: ${{ always() && env.SKIP_JOB != 'true' }} timeout-minutes: 10 run: bash tests/integration/kubernetes/gha-run.sh delete-coco-kbs