Skip to content

chore(tooling): the Windows job runs every unit test file (#1712) - #1758

Merged
V3RON merged 4 commits into
task/1710from
task/1712
Nov 24, 2026
Merged

V3RON merged 4 commits into
task/1710from
task/1712

Conversation

@V3RON

@V3RON V3RON commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1712

Status

Implement: done (build + audit + 1 fix + ADR 0087 flip; stack synced with main 215147f and the Windows PC fix loop on 2026-11-24) Review: round 1 + fix-check + loop fix-check at 272a725, 1 fixed, 0 open Hardware: n/a Gate: running
Next: merge-pr.sh 1758; then the same run on main on DesktopWindows, posted on #1693

Assumptions

none

Done when

  • pnpm test:changed passes on the branch. — CI Unit tests (the whole unit suite) passes at 272a725, run 45403116231; on this Mac under a load of 25 the same agent-device and warm-target daemon tests time out at this head and on main 9986137 alike
  • The PR's Unit tests (Windows) job passes with no file left out. — run 45403116231 green at 272a725; the skip list is deleted
  • A person runs pnpm test:unit from Git Bash on DesktopWindows (Windows 11, with Python 3 installed and the Store alias left on) at the PR's head, and the PR lists the summary lines it printed. — run on 2026-11-24 at 272a725 (below)

Run on DesktopWindows from Git Bash at 272a725, after pnpm install --frozen-lockfile, with Python 3.13 and jq 1.8.2 installed and the user's MSYS_NO_PATHCONV=1 set:

 Test Files  705 passed (705)
      Tests  9679 passed | 30 skipped (9709)
   Start at  14:38:05
   Duration  197.31s (tests 79%, import 17%, environment 1%, setup 1%, transform 1%)

What the loop fixed (each on the branch that owns the area): main's new tests that spelled joined paths with / (#1722 lists index-rename until #1726, #1727 seeds-copies, #1726 index-seed-record, index-seed-swap, registry); EBUSY on temp-folder cleanup while Defender scans %TEMP% (#1728: removeDirectory retries about 10 s, hook timeout 20 s); the shell's MSYS_NO_PATHCONV=1 breaking the Git Bash scripts the tooling tests start (#1736: a unit-project setup file drops it) and jq for the fake gh (#1736: toolchain.md); two tests slow on the PC's timers and git (#1729 startup-read cap, #1736 pr-body-check, 60 s). The PC also needed its %TEMP% cleared of earlier runs' leftovers: the tooling tests leave folders behind on every run (28 GB had built up), which made the lease-files upload tests answer 422 for want of space.

Review

Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 1 blocking, 1 fixed, 0 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Rounds: 1. Tokens: 7.8M.
Runs: 9. Cost USD: 1.6218. Agent seconds: 1666.

Loop fix-check at 272a725 (reviewer, 2026-11-24): 0 blocking, 0 notes over the sync's conflict resolutions and the 14 loop commits.

Assessment: complete

Completion conditions

  • On a pull request, the checks list shows Unit tests (Windows), and the Quality check fails when it fails. — every PR of the stack shows the job; on ci: the unit tests run on Windows, with a list of files still failing there #1722 run 44395973356 the Windows job failed and Quality failed with it
  • On main, pnpm test:unit run from Git Bash on a Windows 11 host with Python 3 passes with no test file left out. — ticked from the green run at this PR's head 272a725 on DesktopWindows (maintainer's call, 2026-11-24); the run on main after the merge is posted on CI: run the tests on Windows #1693
  • No list of files left out on Windows remains in the repository. — src/test-support/windows-skipped.ts is deleted here, and src/test-lanes.repo.test.ts asserts it stays gone

Written by an agent.

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 14 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: 4f7109e4-659f-4b59-b266-8ad73230b706
Commits

Reviewing files that changed from the base of the PR and between 536111d and 272a725.

Files selected for processing: 7

  • docs/internal/adr/0087-the-unit-tests-run-on-windows-in-ci-and-a-list-of-files-still-failing-there-only-shrinks.md
  • docs/internal/adr/README.md
  • docs/internal/agent-rules/testing.md
  • src/test-lanes.repo.test.ts
  • src/test-support/AGENTS.md
  • src/test-support/windows-skipped.ts
  • vitest.config.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@V3RON
V3RON added this pull request to stack #1724 November 19, 2026 11:15
@V3RON

V3RON commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Review ledger

Round 1: 862578c
Round fix-check: 812c596
Round fix-check: 272a725

Runs: 9. Cost USD: 1.6218. Agent seconds: 1666.
Tokens input 153, output 28948, cache read 2468699, cache write 354037.
- build implementer: claude-sonnet-5-5 1076 s $0.4164
- audit implementer: claude-sonnet-5-5 155 s $0.1295
- review 1 reviewer: claude-sonnet-5-5 196 s $0.1791
- review 1 spec: claude-sonnet-5-5 24 s $0.1269
- review 1 code behaviour: claude-opus-5-5 94 s $0.3999
- review 1 claims: claude-sonnet-5-5 23 s $0.1066
- fix 1 implementer: claude-sonnet-5-5 40 s $0.0981
- review fix-check reviewer: claude-sonnet-5-5 29 s $0.0894
- fix implementer: claude-sonnet-5-5 29 s $0.0759
Finding outcomes: {"fixed":1}. Classes: {"testing 10":1}.
{"findings":[{"id":"R1","role":"code","class":"testing 10","outcome":"fixed","path":"src/test-lanes.repo.test.ts","round":"1","fix":"623d1ba2c"}]}

Written by an agent.

@V3RON
V3RON marked this pull request as ready for review November 19, 2026 13:59
@V3RON

V3RON commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

Windows PC run of pnpm test:unit (#1712 Done when line 3): fails

Run on DesktopWindows (Windows 11 23H2) on 2026-11-19 from Git Bash, at 0f5d973, after pnpm install --frozen-lockfile, with Python 3.13 installed. Worktree D:\dev\wgate, full log D:\dev\wgate-test.log.

Test Files  9 failed | 689 passed (698)
     Tests  74 failed | 9545 passed | 30 skipped (9649)

Failing files (failing tests):

  • src/merge-pr.test.ts (31) and src/review-inputs.test.ts (9): Error: Cannot find module '<tmp>\gh'. Node is asked to run the fake gh as a module, so the fake is not runnable on Windows.
  • src/daemon/relay-worker.e2e.test.ts (19), src/daemon/session-path.e2e.test.ts (3), src/daemon/relay-gateway-files.e2e.test.ts (2): EBUSY: resource busy or locked, rmdir '%TEMP%\simlock-e2e-…' at cleanup.
  • src/refactor-check.test.ts (5), src/stale-refs.test.ts (3), src/daemon/main-state-db.test.ts (1), src/cli/index-auto-launch-handshake.test.ts (1, daemon start's wait for health to leave starting ends past the daemon's startup-read cap, timed out at 20 s).

The GitHub Unit tests (Windows) job passes on the same head, so these differ between the runner and a developer's Windows PC: temp directory on C: under the user profile, and the fake gh lookup. Line 3 stays unticked.

Written by an agent.

@V3RON
V3RON force-pushed the task/1712 branch 2 times, most recently from 6ff636e to a1e516d Compare November 24, 2026 13:11
@V3RON
V3RON merged commit 191d496 into main Nov 24, 2026
79 of 82 checks passed
@V3RON
V3RON deleted the task/1712 branch November 24, 2026 14:57
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.

The Windows job's list of left-out test files is deleted

1 participant