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.
This commit is contained in:
LGUG2Z committed 2026-11-05 15:03:27 -08:00
1 parent f3581bad91
commit c0980f1f0b
4 files changed
+11 -9

No files matched your search

+1 -1
View File
@@ -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
```
+3 -3
View File
@@ -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}`
+3 -4
View File
@@ -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"
+4 -1
View File
@@ -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