Skip to content

Triage the 95 Windows CI blanket win32-skip modules against resolve_bash() (#497) - #523

Merged
fdaviddpt merged 3 commits into
mainfrom
fix/497
Sep 4, 2026
Merged

fdaviddpt merged 3 commits into
mainfrom
fix/497

Conversation

@fdaviddpt

Copy link
Copy Markdown
Contributor

Closes #497

What this is

Item 1 of #497 (make the skip ratio visible in CI) already shipped in #507/#521. This is item 2: "a recorded list with a per-module verdict" against tests/_bash_runner.py's resolve_bash() route -- not a mass conversion. No test file is converted here.

docs/windows-skip-triage.md lists every module that still carries a module-level pytestmark = pytest.mark.skipif(sys.platform == "win32", ...) -- a bare call, or one arm of a list of marks -- its own skip reason, and a verdict: convertible, not-convertible, or unclear.

The count: 95, not 107 (and not the issue's original 92)

Same overcount story as before (grep catches 2 docstring-only mentions and 11 already-resolve_bash() files) but the AST-based figure itself moved during review: scripts/windows_skip_triage_497.py's first pass only matched a bare pytestmark = pytest.mark.skipif(...) call and missed the list-of-marks form (pytestmark = [pytest.mark.skipif(...), pytest.mark.skipif(...)]), silently dropping tests/test_slug_vectors_294.py from both the count and the doc. Two independently spawned reviewers (Explore, oss:auditor) caught this in the same review pass; the scanner now walks both forms, the doc gained the missing row (verdict convertible, same reason string as the neighboring test_slug_parity.py), and the count is 95.

Notably the drift-detection test could not have caught this on its own: it recomputes its "live" baseline from the same scanner function the doc's generation used, so a module class the scanner never looked for is invisible to both sides of the comparison at once. Documented directly in the doc now, as a warning about the list's own accuracy bound.

Verdict breakdown

  • convertible: 8
  • not-convertible: 12
  • unclear: 75

Second finding: Windows-console print crash

The auditor also flagged scripts/windows_skip_triage_497.py's __main__ block: !r on a reason string containing an em dash (routine in this tree's skip reasons) can raise UnicodeEncodeError on a default Windows console codepage (e.g. cp1252), crashing the process mid-report after the scan work already completed -- and nothing in CI exercises this __main__ path. Switched to !a (ascii()) so the print output is always pure ASCII. Reasoned, not observed -- no Windows console available in this environment.

Review

The developer agent's own session had no Agent/Task tool, so it could not spawn its own reviewers and did a self-review instead (documented in the first-pass report). The orchestrating conversation then spawned Explore and oss:auditor directly against the committed diff to cover that gap. Both findings above came from that pass and are fixed in this commit.

Tests

python3 -m pytest tests/test_windows_skip_triage_497.py tests/test_slug_vectors_294.py -q --no-cov -- 76 passed. Ruff clean on both changed Python files. Full suite not run locally, per this repo's CLAUDE.md -- CI is the gate across 3 OSes and 4 interpreters.

Also noticed, not fixed

scripts/report_windows_skip_floor.py's own module docstring (#507) still cites the old grep-based 107-by-grep figure, now doubly stale (94 was already wrong, 95 is the corrected number). Not fixed here -- it is prose backing a DEFAULT_FLOOR pick, out of this lane's declared scope.

…vs-#487 attribution (#497)

Co-Authored-By: Max <noreply>
…#497)

Two independent reviewers (Explore, oss:auditor) spawned against the first
pass both caught the same real bug: scripts/windows_skip_triage_497.py's
AST scanner only matched a bare `pytestmark = pytest.mark.skipif(...)`
call, silently dropping the list-of-marks form
(`pytestmark = [pytest.mark.skipif(...), pytest.mark.skipif(...)]`).
tests/test_slug_vectors_294.py uses exactly that shape and was missing
from docs/windows-skip-triage.md as a result -- undetected by the doc's own
drift-detection test, since that test recomputes its baseline from the same
buggy scanner. The scanner now walks both a bare call and a list/tuple of
marks; the doc gains the missing row (verdict: convertible, same reason
string as the neighboring test_slug_parity.py) and its count moves from
94 to 95, with a note on the blind spot itself.

The auditor also flagged the script's __main__ block: !r on a reason
string containing an em dash can raise UnicodeEncodeError on a default
Windows console codepage, killing the process mid-report after the scan
work already ran. Switched to !a (ascii()) so the print output is
always pure ASCII, on any platform. Reasoned, not observed on an actual
Windows console -- no such console available in this environment.

Co-Authored-By: Max <noreply>
@fdaviddpt
fdaviddpt merged commit eabc00e into main Sep 4, 2026
13 checks passed
@fdaviddpt
fdaviddpt deleted the fix/497 branch September 4, 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

1 participant