Repository navigation
test(core): budget windows process-spawn latency in the heavy suites #498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,8 +12,8 @@ import { testEffect } from "./lib/effect" | |
|
|
||
| const it = testEffect(LayerNode.compile(Git.node)) | ||
|
|
||
| // Real Git clone/push against a local origin; Windows runners intermittently exceed the 5s default (#278). | ||
| setDefaultTimeout(30_000) | ||
| // Real Git clone/push against a local origin; Windows runners intermittently exceed the 5s default (#278), and a loaded runner can spend 9s+ on fixture setup alone with single git spawns at 2-9s, so the suite gets 45s. | ||
| setDefaultTimeout(45_000) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. WARNING: Suite default raised to 45s, but the worktree test still pins 30s
|
||
|
|
||
| describe("Git", () => { | ||
| it.live( | ||
|
|
@@ -35,11 +35,6 @@ describe("Git", () => { | |
| expect(yield* read(path.join(target, "README.md"))).toBe("one\n") | ||
| }), | ||
| ), | ||
| // Windows CI spends seconds spawning git for the fixture, remote, and | ||
| // clone; this test had no explicit budget, so it inherited Bun's 5s | ||
| // default and failed there. Same assertion, more generous budget — the | ||
| // sibling test below already does this. | ||
| 15_000, | ||
| ) | ||
|
|
||
| it.live( | ||
|
|
@@ -64,10 +59,6 @@ describe("Git", () => { | |
| expect(yield* read(path.join(target, "README.md"))).toBe("feature\n") | ||
| }), | ||
| ), | ||
| // A fresh clone plus remote fetch/reset can exceed Bun's 5s default on | ||
| // Windows CI. Give the test a more generous budget without changing what | ||
| // it asserts. | ||
| 15_000, | ||
| ) | ||
| }) | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SUGGESTION: 45s may still be under budget for the spawn-heavy sibling test
The 45s figure is derived from one observed fixture setup (9.3s) plus single git spawns of 2-9s. The sibling test
Git > fetches, checks out, and resets remote changesintest/git.test.tsruns about a dozen git operations (setup, clone, commit, fetch, reset, branch, fetch-branch, checkout, reset), so the worst case implied by those same numbers on a loaded runner lands well past 45s and the flake class this PR targets would survive the fix. Re-derive the budget from the worst-case total rather than the per-spawn figure, and keep a per-test override for that one test if 45s cannot cover it.