Repository navigation
Description
Raised at maintainer review of PR #496 (#481), which reported the narrow instance for filing. Measuring it turned out to be much larger than one test module, so this is filed against the suite rather than against that file.
Measured, not estimated
The tests run on main @ f3232bd, run 33552387600, all 12 legs green:
| leg | result |
|---|---|
pytest (windows-latest, 3.11), job 100004731913 |
759 passed, 1201 skipped in 147s |
| local macOS/arm64, Python 3.13.15 (lane 481's full run, same commit's base) | 1924 passed, 43 skipped in 483s |
So the Windows legs execute roughly 40% of the tests the POSIX legs do, and report success either way. A Windows-specific regression in the other 60% cannot fail this matrix.
Counted in the tree at f3232bd:
- 101 test modules carry a module-level
pytestmark = pytest.mark.skipif(...). - 92 of those skip on
sys.platform == "win32". - 5 modules use
tests/_bash_runner.py'sresolve_bash(), the Git-Bash discovery route PR The hook-leak security tests skip on Windows although a working Git Bash runner already exists in the suite #432 introduced precisely to retire the blanket skip -- and Generalise the #344 top-level-wins extractor pin across source, cwd and session_id #493 has just added a sixth.
Why this is the project's own defect class
The repo's standing rule is that a check which did not run must not render like a check that found nothing. A blanket module skip does exactly that at matrix scale: the leg is collected, skipped, and reported success, and nothing anywhere counts how much of the suite that covers. #432 established the fix and #493's auditor caught one more file copying the old shape one hour ago -- the pattern is still being propagated into new files because nothing measures it.
Note what is not being claimed. Many of those 92 skips are almost certainly correct: tests/test_worktree_memory.py's own reason string ("bash subprocess + POSIX git worktree layout -- not portable to Windows runners") may well be true and unfixable. The defect is not that tests are skipped. It is that nobody can tell the correct skips from the stale ones, and the number is 1201.
What would settle it
Not a mass rewrite. Two smaller things, in order:
- Make the number visible. A CI step that fails, or at least annotates, when a leg's skip count crosses a recorded threshold. Then 1201 stops being invisible and any increase has to be argued for.
- Triage the 92 against
resolve_bash(). Six modules have shown the route works. The question for each of the rest is whether its skip reason survives Git-Bash discovery, and the answer is per-module. Landing this as one sweep would be unreviewable; a recorded list with a per-module verdict is the useful artifact.
tests/test_save_session_branch_override.py -- the file PR #496 touches, which now covers REMEMBER_BRANCH and the new REMEMBER_BRANCH_CMD and runs none of it on Windows -- is a reasonable first entry on that list, since its subject is one exec of a resolver command and the platform question is real rather than incidental.
Ranked
fails-to-preserve. Nothing is wrong in the product today as far as anyone knows; what is wrong is that the Windows evidence the matrix appears to provide is 40% of what it looks like, and no reader of a green board is told so.
Platform
The CI numbers are observed, read out of the job log of a completed run. The module counts are observed by grep over the tree at f3232bd on macOS/arm64 (Darwin 24.3.0) and are a property of the source, so they hold anywhere. Whether any given one of the 92 skips could be lifted is unmeasured for all but the six already converted.
Activity
fdaviddpt commentedon Sep 1, 2026
Evidence from the first attempt to convert a file off the blanket skip, an hour after filing this. It cost more than a one-line swap, and what it cost is itself an instance of this issue.
What happened
The #487/#488 lane (PR #499) landed two new test files carrying the blanket
skipif(win32)-- the count would have gone to 94 -- so I sent it back to useresolve_bash()instead, explicitly allowing "this file genuinely cannot run under Git Bash, here is the reason" as an answer.Both files converted cleanly. But unlike
test_hook_cwd_leak_417.pyandtest_transcript_path_leak_424.py, they have to reap a backgrounded flush subshell, and the shared helper for that istests/test_session_end_hook_345.py's_reap(), which probes liveness with:On POSIX that is the standard no-op existence probe. On Windows, CPython maps signal
0toGenerateConsoleCtrlEvent(0, pid)-- sending a console control event to a process group. A different operation, not a liveness check.tests/test_session_end_hook_345.py:35carries the blanketpytestmarkskip, so that line has never executed on the Windows legs. The lane worked around it with a local portable probe (os.killon POSIX,taskliston Windows) in each of the two new files rather than rewriting shared infra it was not briefed to touch, which was the right call for that diff and is why PR #499 is mergeable as it stands.Why it belongs on this issue
It is the mechanism, demonstrated. A helper that is wrong on Windows survived indefinitely because the only file calling it never ran there, and the leg stayed green throughout. Converting one file surfaced it in minutes -- which is the argument for the triage in step 2 above, and also the warning about its cost: some of the 92 will not be a skip-marker swap, they will be a piece of shared infrastructure that was never exercised.
Two things follow for whoever picks this up:
_reap()'s duplicated local replacements in the two new files are debt this issue owns, not After #483's fix, logs/autonomous/session-end-*.log is never reclaimed: the -empty sweep was that directory's only retention #487's. Fixing the shared helper properly should absorb them.tests/test_post_tool_cooldown.py::_reapis named in_reap's own docstring as "the same shape", so it is likely a second instance of the same defect. Unverified -- I have not read it.Count, updated
Still 92 modules blanket-skipping on
win32and 6 usingresolve_bash()at53bd09b. PR #499 takes it to 8 without adding to the 92, which is the direction, at two files an evening.fix: relocate #503 test off the blanket win32 skip; scrub stale find/…
ci: exclude checkout and runner temp dir from Windows Defender scanni…
fix: Windows CI red on PR #499 -- portable retention sweep, NDC/reten…
fdaviddpt commentedon Sep 4, 2026
Another instance of the same class, found by PR #520's (#500/#501) self-review:
tests/test_save_session_branch_override.pycarries a pre-existing (issue #88, unrelated to #500/#501) module-widepytestmark = pytest.mark.skipif(sys.platform == 'win32', ...). All 14 of its pre-existing tests, plus the 4 new #500/#501 cases and the CR-follow-up case that PR adds, never execute on the windows-latest CI leg, which still reports green regardless.Not fixed in PR #500/#501 -- migrating this file to
tests/_bash_runner.py'sresolve_bash()-narrowed skip (the patterntests/test_bash_runner_432.pyandtests/test_autonomous_log_retention_487.pyalready use) touches 14 unrelated pre-existing tests and needs verification against a real windows-latest runner, out of that bugfix's own blast radius.Move README reference sections to docs/ and stop the Windows badge ov…
Move README reference sections to docs/ and stop the Windows badge ov…
Triage the 95 Windows CI blanket win32-skip modules against resolve_b…
Triage tests/test_post_tool_save_log_swept_527.py in windows-skip-tri…
Fix #527: seed save-*.log before post-tool-hook.sh backgrounds the fl…
Triage tests/test_agy_hooks_563.py in the win32 skip table (#497, #563)
Port Remember capture to Antigravity CLI (agy): SessionStart, PreInvo…
docs: triage tests/test_agy_stop_hook_576_578_579.py in windows-skip-…
Harden agy-stop-hook.sh against argv flag injection and field-shift/C…
Add a Windows/Git-Bash benchmark for session-start-hook.sh (#669) (#671)
fix(#913): avoid nested default expansion and a credential-like name;…
fix(#913): cache SESSION_DIR in post-tool-hook.sh to stop re-forking …
Fix #1006 CI: add windows-skip-triage row for the new test module
Fix #1006: wire SessionStart's consolidation launch to the hidden Win…
Fix #920 CI: triage the new doctor.sh win32-blanket-skip module
Fix #920: close three gaps in #902's REMEMBER_DIR safety guard (#1064)