From 3bb2923e5d142b1d42062a2be2fecbe0400efef7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Tue, 26 Sep 2023 14:21:20 +0200 Subject: [PATCH] ci: Add placeholder for tracing tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The tracing tests are currently running as part of the Jenkins CI with the following setups: * Container Engines: containerd * VMMs: QEMU | Cloud Hypervisor * Snapshotters: overlayfs | devmapper We'll be restricting those tests to be running on LTS version of containerd, without devmapper. As it's known due to our GHA limitation, this is just a placeholder and the tests will actually be added in the next interations. Signed-off-by: Fabiano FidĂȘncio --- .github/workflows/ci.yaml | 8 ++++ .github/workflows/run-tracing-tests.yaml | 52 ++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 .github/workflows/run-tracing-tests.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 35317c528f..0a049019a0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -232,3 +232,11 @@ jobs: tarball-suffix: -${{ inputs.tag }} commit-hash: ${{ inputs.commit-hash }} target-branch: ${{ inputs.target-branch }} + + run-tracing-tests: + needs: build-kata-static-tarball-amd64 + uses: ./.github/workflows/run-tracing-tests.yaml + with: + tarball-suffix: -${{ inputs.tag }} + commit-hash: ${{ inputs.commit-hash }} + target-branch: ${{ inputs.target-branch }} diff --git a/.github/workflows/run-tracing-tests.yaml b/.github/workflows/run-tracing-tests.yaml new file mode 100644 index 0000000000..ede15aca11 --- /dev/null +++ b/.github/workflows/run-tracing-tests.yaml @@ -0,0 +1,52 @@ +name: CI | Run tracing tests +on: + workflow_call: + inputs: + tarball-suffix: + required: false + type: string + commit-hash: + required: false + type: string + target-branch: + required: false + type: string + default: "" + +jobs: + run-tracing: + strategy: + fail-fast: false + matrix: + vmm: + - clh # cloud-hypervisor + - qemu + runs-on: garm-ubuntu-2204-smaller + env: + KATA_HYPERVISOR: ${{ matrix.vmm }} + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ inputs.commit-hash }} + fetch-depth: 0 + + - name: Rebase atop of the latest target branch + run: | + ./tests/git-helper.sh "rebase-atop-of-the-latest-target-branch" + env: + TARGET_BRANCH: ${{ inputs.target-branch }} + + - name: Install dependencies + run: bash tests/functional/tracing/gha-run.sh install-dependencies + + - name: get-kata-tarball + uses: actions/download-artifact@v3 + with: + name: kata-static-tarball-amd64${{ inputs.tarball-suffix }} + path: kata-artifacts + + - name: Install kata + run: bash tests/functional/tracing/gha-run.sh install-kata kata-artifacts + + - name: Run tracing tests + run: bash tests/functional/tracing/gha-run.sh run