Skip to content

test: fix statix dev-shell parity check (--help, no top-level --version) (#792) - #793

Merged
c-vigo merged 1 commit into
devfrom
chore/792-statix-version-flag
Jul 1, 2026
Merged

c-vigo merged 1 commit into
devfrom
chore/792-statix-version-flag

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

#777 added statix to the devTools SSoT, but statix has no top-level version
flag (--version exits 2 with "unexpected argument"; no -V) — it is a
subcommand CLI. So tests/test_flake_devshell.py::test_each_tool_runs_in_devshell
(which invokes each tool with a version flag) fails on statix.

Fix: add a VERSION_FLAG_OVERRIDES entry statix: ["--help"] (exits 0), matching
the existing expect/tmux overrides. The check only asserts the binary is
runnable in the dev-shell.

Not previously CI-gated — project-checks runs this file only with a -k filter
that excludes test_each_tool_runs_in_devshell, so the regression was latent.

Verified: nix develop -c statix --help exits 0.

Refs: #792

statix has no top-level version flag (`--version` exits 2, no `-V`); it is a
subcommand CLI. #777 added statix to devTools, so test_each_tool_runs_in_devshell
failed invoking `statix --version`. Override to `--help` (exits 0), matching the
existing expect/tmux overrides — the check only asserts the binary is runnable.

Refs: #792
@c-vigo
c-vigo enabled auto-merge July 1, 2026 07:52
@c-vigo
c-vigo merged commit d163d2d into dev Jul 1, 2026
13 checks passed
@c-vigo
c-vigo deleted the chore/792-statix-version-flag branch July 1, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant