Repository navigation
test(core): give the two git-spawn-heavy ProjectV2.resolve tests a 30s budget - #510
Merged
Merged
Conversation
…s budget Both tests died at bun's 5s default timeout on the windows runner: the nested-directories case runs ~9 sequential git spawns between the initRepo fixture and resolve, and the linked-worktree case adds git worktree add on top. The suite-level --timeout 15000 covers them on current heads, but pin the budget on the tests themselves so the class cannot return on heads or scripts without the flag. Refs #485
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (1 file)
Reviewed by free · Input: 38.5K · Output: 2.5K · Cached: 165.7K |
This was referenced Oct 22, 2026
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.
Issue for this PR
Refs #485
Type of change
What does this PR do?
Fixes the
ProjectV2.resolvewindows flake class (resolves from nested directories to repo rootandlinked worktree returns opened worktree directory and previous from common dirdying at bun's 5s default timeout). This class matters beyond the two tests: on windows CI the core package runs before the opencode package, and a core failure aborts the turbo pipeline before the opencode suite starts, hiding its signal entirely.Root cause: test budget vs windows spawn cost, not a product bug.
initReporuns 6-7 git spawns,resolveadds 2-3 more, and the worktree case addsgit worktree addon top; on the windows runner (CreateProcess + AV) that chain blows past 5s. The suite-level--timeout 15000in the core test script (from #498) already covers them on current heads, but the flag lives in the script, not the tests - heads without it fall back to the 5s default.Fix: pin an explicit 30s budget on the two spawn-heavy tests so the class cannot return regardless of script flags.
How did you verify your code works?
live(name, body, opts)forwards opts to bun'stest). The change is two numeric timeout args; CI's windows leg on this PR is the on-runner proof.Screenshots / recordings
If this is a UI change, please include a screenshot or recording.
N/A - test-only change.
Checklist