From c0980f1f0b4af2ac6e3cc0a6256217b991d8e6ec Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Sun, 1 Nov 2026 09:31:59 -0800 Subject: [PATCH] fix(nix): the check windows-nextest ran no test and is gone The Windows crates are built with doCheck = false (individualCrateArgs of nix/windows/build.nix) and the tests of a Windows program cannot run on a Linux builder, so crane's cargoNextest derivation only ran `cargo nextest --version`: a check named nextest that ran nothing. It is removed from the checks (22 names left on x86_64-linux) and the windows-test set has the e2e Python tests only. windows-clippy (--all-targets) still compiles the tests; the Windows CI runs them (`cargo test`, .github/workflows/windows.yaml). The name is dropped from docs/dev/flake.md and build-and-test.md, with a comment where it was. macos-nextest has the same shape (doCheck = false in nix/macos/build.nix): it is left as it is, since the Intel/Apple names stay stable until the Mac run decides. --- docs/dev/build-and-test.md | 2 +- docs/dev/flake.md | 6 +++--- nix/checks.nix | 7 +++---- nix/windows/flake-module.nix | 5 ++++- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/docs/dev/build-and-test.md b/docs/dev/build-and-test.md index cc3594eb..4ea54af0 100644 --- a/docs/dev/build-and-test.md +++ b/docs/dev/build-and-test.md @@ -58,7 +58,7 @@ shared by all of them): ```sh nix build -L --no-link .#checks.x86_64-linux.windows-clippy -nix build -L --no-link .#checks.x86_64-linux.windows-nextest +# (there is no windows-nextest: the Windows crates' tests run on Windows, `cargo test` of .github/workflows/windows.yaml) nix build -L --no-link .#checks.x86_64-linux.windows-fmt .#checks.x86_64-linux.windows-toml-fmt .#checks.x86_64-linux.windows-deny nix build -L --no-link .#checks.x86_64-linux.windows-e2e-tests # the Python of the e2e (pytest), no guest needed ``` diff --git a/docs/dev/flake.md b/docs/dev/flake.md index 6359693f..306d7667 100644 --- a/docs/dev/flake.md +++ b/docs/dev/flake.md @@ -55,7 +55,7 @@ prefixes `kfde-` and `kfm-`) and of the nested flakes themselves. | Old | New | |---|---| -| `komorebi-workspace-clippy`, `-fmt`, `-toml-fmt`, `-deny`, `-nextest` (Windows) | `windows-clippy`, `windows-fmt`, `windows-toml-fmt`, `windows-deny`, `windows-nextest` | +| `komorebi-workspace-clippy`, `-fmt`, `-toml-fmt`, `-deny`, `-nextest` (Windows) | `windows-clippy`, `windows-fmt`, `windows-toml-fmt`, `windows-deny` (`-nextest` ran no test and is gone, see flake-checks.md) | | `e2e-tests` | `windows-e2e-tests` | | `kfde-komorebi-workspace-clippy`, `-doc`, `-fmt`, `-toml-fmt`, `-deny`, `-nextest` | `linux-clippy`, `linux-doc`, `linux-fmt`, `linux-toml-fmt`, `linux-deny`, `linux-nextest` | | `kfde-komorebi-bridge-js` | `linux-bridge-js` | @@ -126,7 +126,7 @@ Every platform's checks run on its own source, so a change in one platform's dir others' derivations. A change in a crate under `crates/` (or in `komorebic`, `komorebi-client`, `komorebi-daemon`), in `Cargo.toml`, `Cargo.lock`, `rust-toolchain.toml` or `deny.toml` rebuilds those that read it. -- `windows-clippy`, `windows-nextest`, `windows-fmt`, `windows-toml-fmt`, `windows-deny`, `windows-e2e-tests` +- `windows-clippy`, `windows-fmt`, `windows-toml-fmt`, `windows-deny`, `windows-e2e-tests` - `linux-clippy`, `linux-doc`, `linux-nextest`, `linux-fmt`, `linux-toml-fmt`, `linux-deny`, `linux-bridge-js`, `linux-schema-fresh`, `linux-nix-options-validation`, `linux-keybindings-fixtures`, `linux-nixos-module-eval`, `linux-plasma-guests-eval`, `linux-wsl2-probe`, `linux-wsl2-probe-dry-run`, `linux-run-kde*`, @@ -155,7 +155,7 @@ commands on the Linux or macOS packages use `nix develop .#native` (the same too ## Updating the flake: what to run - the evaluation: `nix flake check --no-build --all-systems` -- the Windows group: `windows-clippy`, `windows-nextest`, `windows-fmt`, `windows-toml-fmt`, `windows-deny`, +- the Windows group: `windows-clippy`, `windows-fmt`, `windows-toml-fmt`, `windows-deny`, `windows-e2e-tests`, the `windows-*` packages - the Linux group: the `linux-*` checks and packages, one VM suite (`vm-lib`, then a cheap suite) - on a Mac: `nix build -L .#checks.aarch64-darwin.macos-{clippy,nextest,fmt,toml-fmt,deny,nix-options-validation,darwin-module-validation}` diff --git a/nix/checks.nix b/nix/checks.nix index 11e017a0..47136561 100644 --- a/nix/checks.nix +++ b/nix/checks.nix @@ -31,10 +31,9 @@ let "macos-deny" ]; windows-lint = [ "windows-clippy" ]; - windows-test = [ - "windows-nextest" - "windows-e2e-tests" - ]; + # the Python of the Windows e2e that needs no guest; the Rust tests of the Windows crates cannot run + # on a Linux builder (see nix/windows/flake-module.nix) + windows-test = [ "windows-e2e-tests" ]; linux-lint = [ "linux-clippy" "linux-doc" diff --git a/nix/windows/flake-module.nix b/nix/windows/flake-module.nix index 35253dc7..ee0ce247 100644 --- a/nix/windows/flake-module.nix +++ b/nix/windows/flake-module.nix @@ -112,7 +112,10 @@ in } ); - windows-nextest = build.craneLib.cargoNextest build.individualCrateArgs; + # There is no `windows-nextest`: it ran no test. The tests of the Windows crates are Windows + # programs, which a Linux builder cannot run, and `individualCrateArgs` has `doCheck = false`, so + # crane's nextest derivation only ran `cargo nextest --version`. `windows-clippy` (--all-targets) + # compiles them; `cargo test` of the Windows CI runs them (docs/dev/flake-checks.md). } // { # the Python of the Windows e2e guest that needs no guest: the