Repository navigation
Give tests 30 s on CI, not vitest's default 5 s - #63
Merged
Merged
Conversation
Hosted Windows runners stall now and then. Tests that take 300–700 ms on main ran past the 5 s default three times in a week (#60 twice, #62 once). Each time it was a different test, and each passed on a rerun. Raising the timeout one test at a time only moves the next stall to another test. The longer limit applies only when CI is set, which GitHub Actions always sets. Locally the default stays, so a hang still fails fast. Tests that already ask for 60 s or more keep their own limit. Checked with a throwaway test that sleeps 6 s: it passes with CI=true and times out without it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VpkUdtXX2L922fZcehBBVK
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.
Hosted Windows runners sometimes stall. Three times in a week, a test that normally takes 300–700 ms ran past vitest's 5 s default: twice on #60, once on #62. Each time it was a different test, and each passed when rerun. Raising the timeout one test at a time only moves the next stall to another test, so this sets the default instead.
vitest.config.mts:testTimeout: process.env.CI ? 30_000 : 5_000. GitHub Actions always setsCI. Locally the default stays, so a hang still fails fast. Tests that already ask for 60 s or more keep their own limit.CI=trueand times out without it.npm run verifypasses locally (1460 + 25 tests).No change to the plugin; the bundle is unaffected.
🤖 Generated with Claude Code
https://claude.ai/code/session_01VpkUdtXX2L922fZcehBBVK