From 52ef3e2dedabf4e68f77dc60d3fe14b0d6f04dcc Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Thu, 30 Apr 2026 18:33:58 +0200 Subject: [PATCH] .github: set INFIX_RELEASE when running release tests Without INFIX_RELEASE, make test resolves INFIX_ARTIFACT to the unversioned infix-x86_64, but release builds produce versioned artifacts (infix-x86_64-v26.04.0-rc1.qcow2 etc.), causing the test environment to fail with "No such file or directory". [skip ci] Signed-off-by: Joachim Wiberg --- .github/workflows/release.yml | 3 ++- .github/workflows/test.yml | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6bc62e01..d047b9a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,11 +41,12 @@ jobs: use_cache: true test: - needs: build + needs: [build, set-version] uses: ./.github/workflows/test.yml with: target: x86_64 name: infix + release: ${{ needs.set-version.outputs.version }} release: name: Release Infix ${{ github.ref_name }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2c857cb9..b80dc535 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,6 +43,11 @@ on: type: string default: '' description: 'Optional script to run after checkout (for spin customization)' + release: + required: false + type: string + default: '' + description: 'Release version (e.g. v26.04.0), sets INFIX_RELEASE so make test finds versioned artifacts' secrets: CHECKOUT_TOKEN: required: false @@ -112,6 +117,8 @@ jobs: ln -s "${tarfile%.tar.gz}" images - name: Regression Test ${{ env.TARGET }} + env: + INFIX_RELEASE: ${{ inputs.release }} run: | if [ -n "$NINEPM_CONF" ]; then export NINEPM_PROJ_CONFIG="${GITHUB_WORKSPACE}/$NINEPM_CONF"