Repository navigation
test(codemod): give the Hacker News project test a 30 s timeout - #2275
Merged
Merged
Conversation
The test runs the codemod over the whole Hacker News app twice, compiling every module each time. It takes about 1.3 s locally but passed Vitest's default 5 s under CI load on #2268's test shard 2. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
marked this pull request as ready for review
October 28, 2026 23:45
Contributor
Benchmark report🟢 No byte growth, no added work, and no timing changes beyond ±3%. Compares js-framework: 1k/10k row operationsAll 20 timed operations (20 without a verdict)
All 64 work counters are unchanged. Application bundle size (bytes)No changes across 111 measured values. Public-import reachability bundles (bytes)No changes across 141 measured values. |
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.
Summary
Why
--strong, compiling every module each time. It takes about 1.3 s locally, but under CI load it passed Vitest's default 5 s on octanejs/octane#2268's test shard 2, failing an unrelated PR. It landed with feat(codemod): add @octanejs/codemod, a React to Octane/TSRX migration CLI #2264, so any PR could hit it.Changes
packages/codemod/tests/project.test.js: a30_000timeout argument on that one test, with a comment on why. 30 s matches the per-test timeouts other heavy tests in the repo use.Validation
pnpm format:check: not run repo-wide;pnpm format:fileson the changed filepnpm typecheck: not run; no source changepnpm test: not run in fullvitest run --project codemod packages/codemod/tests/project.test.js, 8 passedpnpm sync: no changesperf-review: not applicable; test-onlyconcise-code: one argument and one comment line; no source, new files, or exports; bytes not applicableRisk / follow-ups
Provenance
agent-authored)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.Note
Low Risk
Test-only timeout and comment; no runtime or codemod logic changes.
Overview
The codemod Hacker News end-to-end test now uses Vitest’s per-test 30 s timeout (via the third argument to
it) instead of the default 5 s, with a short comment that the case runs the codemod over the whole example twice and can exceed 5 s under CI load.No production or codemod behavior changes—only test stability.
Reviewed by Cursor Bugbot for commit 28e3da4. Bugbot is set up for automated code reviews on this repo. Configure here.