From 262f44d2b6431f5a312b1346a1a7e5e1e79a45cf Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Sat, 31 Oct 2026 11:10:14 -0700 Subject: [PATCH] perf(nix): keep the VM library's unit tests out of the suites' source komorebiVm (the python package every KDE VM suite imports) took all of lib/, including lib/tests. The VM never runs those tests and setuptools does not package them, but editing one changed komorebiVm and so rebuilt every suite (34 of 34, about 50 min of the fast tier). It now takes lib/ minus lib/tests. libCheck (vm-lib) keeps its own source, so the unit tests still run. Verified (nix eval of drvPath in a throwaway git copy): an edit of lib/tests/test_keys.py leaves kfde-vm.stacks and kfde-vm.commands unchanged (before: both changed). Not verified by a build. --- komorebi-for-kde/nix/tests/vm/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/komorebi-for-kde/nix/tests/vm/default.nix b/komorebi-for-kde/nix/tests/vm/default.nix index 0f50c371..79a8b274 100644 --- a/komorebi-for-kde/nix/tests/vm/default.nix +++ b/komorebi-for-kde/nix/tests/vm/default.nix @@ -40,7 +40,9 @@ let pyproject = true; src = lib.fileset.toSource { root = ./lib; - fileset = ./lib; + # not the unit tests: the VM never runs them (setuptools does not package them), so + # editing one must not rebuild every suite; `libCheck` keeps them + fileset = lib.fileset.difference ./lib ./lib/tests; }; build-system = [ ps.setuptools ]; dependencies = [ ps.pillow ];