]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
tests: Build with --incremental=strict 3274/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 13 Dec 2024 09:20:40 +0000 (09:20 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 13 Dec 2024 10:26:26 +0000 (10:26 +0000)
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
tests/__init__.py

index f7f024ec99af2fead9215e30e87c80755cd989cf..1f45362dfb900bddfef9cdeec740e20ce5ea531b 100644 (file)
@@ -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 \
index 5840b4ad3a01e6adfb7436ec111c61264e716dca..9e5780e94b9a0a1dcf1f10b0a97e2c86e8a5aed6 100644 (file)
@@ -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,