Skip to content

test(core): give the two git-spawn-heavy ProjectV2.resolve tests a 30s budget - #510

Merged
agenteinstinct1-max merged 1 commit into
dev-vibecodedfrom
fix/485-projectv2-timeouts
Oct 22, 2026
Merged

agenteinstinct1-max merged 1 commit into
dev-vibecodedfrom
fix/485-projectv2-timeouts

Conversation

@agenteinstinct1-max

Copy link
Copy Markdown
Collaborator

Issue for this PR

Refs #485

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Fixes the ProjectV2.resolve windows flake class (resolves from nested directories to repo root and linked worktree returns opened worktree directory and previous from common dir dying 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. initRepo runs 6-7 git spawns, resolve adds 2-3 more, and the worktree case adds git worktree add on top; on the windows runner (CreateProcess + AV) that chain blows past 5s. The suite-level --timeout 15000 in 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?

  • Timeout-option passthrough verified in the shared testEffect wrapper (live(name, body, opts) forwards opts to bun's test). 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

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

…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
@github-actions

Copy link
Copy Markdown

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@kilo-code-bot

kilo-code-bot Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 file)
  • packages/core/test/project.test.ts

Reviewed by free · Input: 38.5K · Output: 2.5K · Cached: 165.7K

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.

1 participant