Skip to content

fix(test): extend timeout for ripgrep tests that download the rg binary (LAC-2693)#35

Open
lacymorrow wants to merge 1 commit into
LAC-2385/blacksmith-to-github-runnersfrom
LAC-2693/fix-windows-ripgrep-test-timeouts
Open

fix(test): extend timeout for ripgrep tests that download the rg binary (LAC-2693)#35
lacymorrow wants to merge 1 commit into
LAC-2385/blacksmith-to-github-runnersfrom
LAC-2693/fix-windows-ripgrep-test-timeouts

Conversation

@lacymorrow

Copy link
Copy Markdown
Owner

Summary

Fixes the last 4 unit (windows) failures (+2 suite errors) blocking #28's runner switch. Re-opened from #34, which was auto-closed when its stacked base (#33's branch) merged and was deleted.

Paperclip issue: LAC-2693

Problem

Of the 112 windows failures in the original report, 108 were already fixed by #33's LAC-2386 fixture/InstanceRef fixes. The remaining 4 failures + 2 errors are all in the Ripgrep test suites: the first Ripgrep.Service use on Windows downloads the rg zip and extracts it via PowerShell Expand-Archive, which blows bun's 5s default test timeout. The SIGTERM'd extraction never populates the cache, so every Ripgrep test repeats the slow path and fails the same way.

Fix

Give the Ripgrep-dependent tests a 120s timeout: the first test pays the one-time download/extract cost and caches rg.exe; subsequent tests short-circuit on the cache and run in milliseconds.

Testing

  • Verified locally on Windows semantics: 4 pass / 0 fail in 481ms once cached.
  • unit (windows) on this branch's previous run (pre-rebase, same diff): watching CI on this PR for the definitive green.

Acceptance criteria (LAC-2693)

  • unit (windows) job reaches success ✅ (pending this PR's CI)
  • No skipped-en-masse tests — this is a real timeout fix, no skips ✅

…ry (LAC-2693)

On Windows CI runners the first Ripgrep.Service use downloads the rg
release zip and extracts it via PowerShell Expand-Archive, which exceeds
bun's default 5s per-test timeout. The test SIGTERMs the extraction
mid-flight, nothing is cached, and all four ripgrep tests repeat the
slow path and fail. Give those tests a 120s timeout so the one-time
download completes; later tests find the cached binary and stay fast.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request increases the test timeout to 120 seconds for Ripgrep-related tests in both search.test.ts and ripgrep.test.ts. This adjustment prevents test failures on Windows CI runners where downloading and extracting the rg binary can exceed the default 5-second timeout. No review comments were provided, so there is no additional feedback to address.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

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