tests: run kata-monitor functional tests against the dedicated image

Exercise the published kata-monitor container image (the one built by
publish-kata-monitor-payload-amd64) rather than the on-disk binary, so
integration regressions like the recent glibc/musl mismatch surface at
PR time. The kata-monitor-tests.sh script keeps the binary fallback for
ad-hoc local runs.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
Assisted-by: OpenAI Codex <codex@openai.com>
This commit is contained in:
Fabiano Fidêncio
2026-06-03 13:03:37 +02:00
committed by Fabiano Fidêncio
parent d5bc1177c0
commit 63fec205fe
3 changed files with 77 additions and 11 deletions

View File

@@ -297,12 +297,13 @@ jobs:
run-kata-monitor-tests:
if: ${{ inputs.skip-test != 'yes' }}
needs: build-kata-static-tarball-amd64
needs: [build-kata-static-tarball-amd64, publish-kata-monitor-image-amd64]
uses: ./.github/workflows/run-kata-monitor-tests.yaml
with:
tarball-suffix: -${{ inputs.tag }}
commit-hash: ${{ inputs.commit-hash }}
target-branch: ${{ inputs.target-branch }}
kata-monitor-image: ghcr.io/${{ github.repository_owner }}/kata-monitor-ci:${{ inputs.tag }}-amd64
run-k8s-tests-on-aks:
if: ${{ inputs.skip-test != 'yes' }}

View File

@@ -12,6 +12,14 @@ on:
required: false
type: string
default: ""
kata-monitor-image:
description: >-
Container image reference for kata-monitor to be exercised by
the tests. When unset the tests fall back to running the
kata-monitor binary installed from the kata-static tarball.
required: false
type: string
default: ""
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-kata-monitor
@@ -39,6 +47,7 @@ jobs:
CONTAINER_ENGINE: ${{ matrix.container_engine }}
CONTAINERD_VERSION: ${{ matrix.containerd_version }}
KATA_HYPERVISOR: ${{ matrix.vmm }}
KATA_MONITOR_IMAGE: ${{ inputs.kata-monitor-image }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
@@ -66,5 +75,9 @@ jobs:
- name: Install kata
run: bash tests/functional/kata-monitor/gha-run.sh install-kata kata-artifacts
- name: Pre-pull kata-monitor image
if: ${{ inputs.kata-monitor-image != '' }}
run: sudo docker pull "${KATA_MONITOR_IMAGE}"
- name: Run kata-monitor tests
run: bash tests/functional/kata-monitor/gha-run.sh run