Repository navigation
Description
A new test carrying a blanket skipif(win32) needs its docs/windows-skip-triage.md entry added in the same commit -- caught twice tonight only by Windows CI, twenty-plus minutes into a run, rather than at authoring time.
Two instances, same session
- Harden agy-stop-hook.sh against argv flag injection and field-shift/CR bugs (#576, #578, #579) #585 (merged as
a07f08e): the first red leg on that PR's own CI run was this exactdocs/windows-skip-triage.mdomission for a new blanket-win32-skip test. - Add cross-plugin promo via systemMessage at SessionStart #588 (merged as
be92024, closing Cross-promote supertool and jit-context to the human via systemMessage, with a config bool to disable #574): identical failure on all three Windows legs (pytest windows-latest3.10/3.11/3.12) -- confirmed by reading all three job logs directly, not assumed from one -- for the exact same reason:tests/test_plugin_promo_574.pyblanket-skips win32 but wasn't listed in the triage doc. Fixed in a follow-up commit (7fbd1ca) once CI caught it.
Two lanes in one session hitting an identical gap is a trap this loop should stop paying for by re-discovering it in CI. The fact belongs in the developer brief (agents/developer.md or the dispatch brief for any lane adding a win32-skipping test) or a jit-context rule that fires when a new/edited test file adds a skipif(win32) marker, not twenty minutes into a CI run.
The more interesting half: a test that could not fail
test_scripts_use_jq_var_not_hardcoded in tests/test_path_resolution.py is the second, independent defect the same PR (#588) surfaced, while fixing the CI failure above. Its own docstring already promised an exclusion:
"Match raw 'jq' but not '$JQ' or 'JQ=' or 'command -v jq'"
but the implementation never actually applied that exclusion for the command -v jq case -- it just checked " jq " in line, which matches the substring inside command -v jq >/dev/null (the v jq > span) regardless of the comment's stated intent. This test passed for as long as none of the four scanned scripts (save-session.sh, run-consolidation.sh, post-tool-hook.sh, session-start-hook.sh) happened to contain a command -v jq availability guard. The moment #574's own CI-follow-up round fixed the exclusion to match its documented intent, the corrected test immediately caught 8 real hardcoded jq calls newly added to session-start-hook.sh in the same PR -- calls the broken exclusion had been silently obscuring because the guard's presence short-circuited nothing; the test simply never looked hard enough to notice a real violation sitting right next to a false one.
A test whose own comment describes a case its code cannot detect is this repo's own defect class -- an absence rendered as a clean result -- landing on the test suite's own instrumentation rather than on a shell script. It happened to get caught here only because a legitimate new guard collided with the untested exclusion; it could as easily have sat silent indefinitely.
What would settle it
- A developer-brief note or jit-context rule: adding/editing a test module that gains a blanket
skipif(win32)mark requires the same commit to add/update itsdocs/windows-skip-triage.mdentry, checked before pushing rather than left to a Windows CI leg. - Separately (or as part of the same fix, maintainer's call): audit
tests/test_path_resolution.py's other docstring-promised-but-unverified exclusions, if any, for the same "comment says X, code does not implement X, and nothing ever tested the boundary" shape -- this specific instance is already fixed (commita29e3f0on the now-merged Cross-promote supertool and jit-context to the human via systemMessage, with a config bool to disable #574/Add cross-plugin promo via systemMessage at SessionStart #588), but the general pattern (a scanner exclusion with no positive-control test proving it fires) is exactly what let this one go undetected for as long as it did.
[AI-generated]
Activity
Add authoring-time reminder for a new blanket win32-skip test (#589) (#…
Fix stale prose totals in docs/windows-skip-triage.md (#595) (#605)
fix(#834): add windows-skip-triage row for test_extract_max_bytes_mal…
fix(#834): guard thresholds.consolidate_max_bytes and extract_max_byt…
docs(#870): triage the new blanket win32 skip in test_doctor_summariz…
fix(#870): doctor reads summarizer failures instead of trusting the s…
Fix #1006 CI: add windows-skip-triage row for the new test module
Fix #1006: wire SessionStart's consolidation launch to the hidden Win…