Repository navigation
Give the clone, push, and pull tests room on the windows runner (windows-portability.md §7.2) - #220
Merged
Merged
Conversation
…ows-portability.md §7.2) Every test in clone.test.ts, push.test.ts, and pull.test.ts sets up a project, a commit, and a bare remote with one git or git-lfs process after another, and several then clone, push, or pull. On the windows runner one of those tests takes 3 to 7 s on a passing run, against vitest's 5 s test and 10 s hook defaults, so a process-start stall there times one out every few runs. #197 gave only clone.test.ts's hook 30 s. All three files now give their hook and every test 30 s, as release.test.ts gives its git-heavy tests.
ninjudd
commented
Oct 12, 2026
ninjudd
left a comment
Contributor
Author
There was a problem hiding this comment.
📽️ Projector review of 205b0ca · 0.7.10 · model gpt-6 · CLEAN · took 2m 13s
This change gives the clone, push, and pull integration tests enough time for real Git and Git LFS processes on a slow Windows runner. Their setup hooks and test bodies now share a 30-second budget, and the Windows portability inventory records the follow-up. Product code and suite-wide defaults are unchanged.
0 finding threads: 0 resolved, 0 open
Covered 4 of 4 changed files; 0 generated files skipped.
Windows execution was not available locally; the focused checks ran on macOS. The new budget addresses the documented stalls, but repeated Windows CI runs are needed to measure the reduction in intermittent failures.
Checked:
- The explicit setup timeout and inherited suite test timeout cover all 22 tests across the three files.
- The comments explain the platform constraint, and the plan accurately records the scoped change without changing readiness.
pnpm exec vitest run src/commands/clone.test.ts src/commands/push.test.ts src/commands/pull.test.ts: 3 files and 22 tests passed.pnpm typecheckandproject check: passed.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
windowsCI job still fails every few runs after #197, onmainand on branches alike, and every failure since is a vitest timeout insrc/commands/clone.test.ts,push.test.ts, orpull.test.ts. Each test in those files sets up a project, a commit, and a bare remote, one git or git-lfs process after another, and several then clone, push, or pull. Starting a process is slow on the Windows runner, so on a run that passes vitest reports 3 to 7 s for one of these tests, setup included, against its 5 s test default and 10 s hook default. A process-start stall then tips one over. #197 gaveclone.test.ts'sbeforeEach30 s for this reason, but left the test bodies and the other two files at the defaults.These are the six windows runs that timed out this way on 2026-10-11:
mainate791a11(run): clone's "accepts a full URL" and push's "pushes, then offers every entry beneath main", each at 5 s.beforeEachat 10 s, reported at 11.0 s.live/monitor(run): push's "pushes without a remote" at 5 s.projector-agents-v4(run): pull'sbeforeEachat 10 s.install/release-installer(run): push's "offers nothing for a working tree with uncommitted changes" at 5 s.These read as slow runs rather than hangs. Vitest can fire a timeout only when the event loop is free, and these tests spend long stretches in synchronous git calls. So a test reported well past its limit, such as the 14.2 s push on #219, was still making progress until the timer fired. On that run the whole push file took 33 s against 17.6 s on
main's passing run, so the runner was slow across the board.All three files now give their
beforeEachand every test in theirdescribe30 s, through oneGIT_HEAVY_MSconstant per file, asrelease.test.tsgives its git-heavy tests.clone.test.ts'sSETUP_TIMEOUT_MSbecomes that constant. 30 s is twice the slowest timed-out test, so a timeout there now means a stall twice as long as any seen, or a real hang. This differs from the "runner stalls" #197 left alone inproject.test.tsandlive-session.test.ts, whose hooks are cheap and stalled once or twice. These tests use most of their budget on runs where nothing stalls. Raising vitest'stestTimeoutfor the whole suite would also stop these failures, but it would hide real hangs everywhere else. The Windows plan records the item in §7.2 as done. The change touches tests and the plan, and no product code.Testing
From the root of a checkout of
windows/remote-test-timeouts, afterpnpm install --frozen-lockfile. These three files need no native build.pnpm typecheck pnpm exec vitest run src/commands/clone.test.ts src/commands/push.test.ts src/commands/pull.test.ts project checkYou should see
tsc --noEmitprint nothing, thenTest Files 3 passed (3)andTests 22 passed (22), then "Project plans are valid." On macOS these tests pass with or without this change, so this only shows nothing broke.To see that the budget reaches both the hooks and the tests, shrink it and watch the timeout messages name the new value:
The first run should report only
Hook timed out in 100ms, because every setup hook now fails first. The second should reportTest timed out in 100msandTests 9 failed | 13 passed (22), beside the tail of vitest'sFailed Tests 9banner: the nine tests that wait on a real clone, push, or pull time out, and the rest finish synchronously. A5000msor10000msin either run means a hook or test still runs on vitest's default, and the change is wrong. Thesed -i ''form is BSD sed, as on macOS. Eachgit checkout -- src/commandsputs the files back, and the tests remove their own temp projects, so nothing is left behind.The real check is this pull request's
windowsCI job, which cannot run by hand here. Itspnpm teststep should pass all three files. ATest timed out in 5000msorHook timed out in 10000msnamingclone.test.ts,push.test.ts, orpull.test.tsmeans the change is wrong. A30000mstimeout there would be a new finding: a stall longer than 30 s, or a hang. One green run proves little against a failure that came every few runs, so the evidence builds over the next runs onmain.📽️ Projector summary of 205b0ca: https://field.amnes.ac/reviews/220