From b1d053b3588ab4bc6ff37665d571b8d00beff065 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Wed, 28 Oct 2026 19:33:26 -0700 Subject: [PATCH] perf(nix): build the test window with the constant stamp too komorebi-testwin-e2e is the e2e build's test window, so a change to it rebuilds the crate and not its dependencies (86 s instead of minutes); build-ref.sh uses it. --- e2e/platforms/qemu_windows/build-ref.sh | 2 +- flake.nix | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/e2e/platforms/qemu_windows/build-ref.sh b/e2e/platforms/qemu_windows/build-ref.sh index 03ffe79f..e13ed5c6 100755 --- a/e2e/platforms/qemu_windows/build-ref.sh +++ b/e2e/platforms/qemu_windows/build-ref.sh @@ -34,7 +34,7 @@ for package in komorebi komorebic; do path=$(nix build "$tree#$package" --no-link --print-out-paths) cp "$path/bin/$package.exe" "$out/" done -path=$(nix build "$root#komorebi-testwin" --no-link --print-out-paths) +path=$(nix build "$root#komorebi-testwin-e2e" --no-link --print-out-paths) cp "$path/bin/komorebi-testwin.exe" "$out/" chmod u+w "$out"/*.exe echo "$commit" > "$out/commit" diff --git a/flake.nix b/flake.nix index 6a41279c..ea512ea2 100644 --- a/flake.nix +++ b/flake.nix @@ -431,6 +431,9 @@ komorebi-e2e-agent ; inherit windowsSdk; + # the test window of the Windows e2e guest, built with the constant + # stamp: a new commit does not rebuild what it depends on + komorebi-testwin-e2e = e2eBuild.komorebi-testwin; komorebi-full = build.fullBuild; default = build.fullBuild; };