From 7057ccfb95bff2b4b3c05a1000fe767e0b4be69b Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 11 Dec 2025 16:17:10 +0100 Subject: [PATCH] CI: Always rebuild test images with --no-cache before container and E2E tests This ensures that GitHub Actions never reuses outdated Docker layers and that each test run starts from a fully clean environment. The workflows for test-container and test-e2e now explicitly invoke: distro="${{ matrix.distro }}" make build-no-cache before executing the actual tests. This aligns the CI behaviour with local testing, eliminates hidden caching differences, and guarantees deterministic test results across all distros. https://chatgpt.com/share/693ae07a-8c58-800f-88e6-254cdb00b676 --- .github/workflows/test-container.yml | 5 +++++ .github/workflows/test-e2e.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/test-container.yml b/.github/workflows/test-container.yml index a60c327..602a83d 100644 --- a/.github/workflows/test-container.yml +++ b/.github/workflows/test-container.yml @@ -19,6 +19,11 @@ jobs: - name: Show Docker version run: docker version + - name: Build test image with no cache (${{ matrix.distro }}) + run: | + set -euo pipefail + distro="${{ matrix.distro }}" make build-no-cache + - name: Run container tests (${{ matrix.distro }}) run: | set -euo pipefail diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index 384b6fe..6842e37 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -19,6 +19,11 @@ jobs: - name: Show Docker version run: docker version + - name: Build test image with no cache (${{ matrix.distro }}) + run: | + set -euo pipefail + distro="${{ matrix.distro }}" make build-no-cache + - name: Run E2E tests via make (${{ matrix.distro }}) run: | set -euo pipefail