From ad530e0497e931dd0a9ad464a2ca8e2e473e9971 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 13 Dec 2024 09:20:40 +0000 Subject: [PATCH] tests: Build with --incremental=strict Let's require cached images to be present before running the integration tests. This makes sure the tests only need to build the output that they're testing and it also opens up the road for running tests in parallel in the future. --- .github/workflows/ci.yml | 3 +++ tests/__init__.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f7f024ec9..1f45362df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -217,6 +217,9 @@ jobs: --include mkosi-tools \ $( [[ ${{ matrix.tools }} == opensuse ]] && echo --package=grub2) + - name: Build image + run: mkosi --distribution ${{ matrix.distro }} -f + - name: Run integration tests run: | sudo --preserve-env \ diff --git a/tests/__init__.py b/tests/__init__.py index 5840b4ad3..9e5780e94 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -102,7 +102,7 @@ class Image: "--release", self.config.release, *(f"--kernel-command-line={i}" for i in kcl), "--force", - "--incremental", + "--incremental=strict", "--output-directory", self.output_dir, *(["--debug-shell"] if self.config.debug_shell else []), *options, -- 2.47.2