Repository navigation
test(octane): give the behavior-root DOM attach matrix a 60 s timeout - #2286
Merged
Merged
Conversation
"attaches to existing DOM without replacing nodes or mutating protected attributes" compiles 582 fixture modules across its dev/prod matrix. On a busy machine the compiles take about 9 s of a 12 s run, and a quiet one still takes 5.5–9 s. Its 15 s limit dates from #1069, when the test was about a third of its current length. CI timed it out on 2026-10-14 and 2026-10-28, and the abandoned body then threw from a later test's shared hydratedRoot. Use the 60 s budget other compile-heavy tests use. Co-Authored-By: Claude Opus 5.5 <[email protected]>
jonkwheeler
marked this pull request as ready for review
October 29, 2026 11:07
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
octane-website | 4bfdfbf | Commit Preview URL Branch Preview URL |
Oct 29 2026, 11:10 AM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
octane-website-mcp | 4bfdfbf | Commit Preview URL Branch Preview URL |
Oct 29 2026, 11:08 AM |
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
Fixes a flaky test:
behavior-root.test.ts› "attaches to existing DOM without replacing nodes or mutating protected attributes". The test runs too close to its 15 s limit, so a slow runner times it out. This PR raises the limit to 60 s, which other compile-heavy tests already use.Why
CI timed this test out (
Error: Test timed out in 15000ms.) on two unrelated branches:perf/hydration-settlement-2028fix/skip-hidden-module-retriesIn the 2026-10-28 run, the abandoned test body kept running after the timeout. It then threw
TypeError: Cannot read properties of undefined (reading 'render')from a later test, athydratedRoot!.render(...)insidestartTransition, because that test had already reset the sharedhydratedRoot.The test is slow because it compiles hundreds of fixtures, not because the runtime got slower. I timed
loadCompiledFixtureSourceduring one run inoctane-prod: 582 compiles took 9.24 s of the test's 11.97 s, and evaluating the compiled fixtures took 0.19 s. On the same machine the whole test took 12.4 s (dev) and 13.2 s (prod) at a load average of 30–60, and 5.5 s and 8.9 s at a load average of 13. The 15 s limit came with #1069 (2026-09-16), when the test ended at about line 1,927. It now ends at line 5,038.Changes
packages/octane/tests/behavior-root.test.ts: the test's timeout goes from15_000to60_000, and the existing comment says why.Validation
pnpm format:check(not run;pnpm format:files:checkon the changed file is clean)pnpm typecheck(not run; the change is a numeric literal and a comment)pnpm test(not run; the local machine is too loaded for the full suite)vitest run --project octane --project octane-prod packages/octane/tests/behavior-root.test.tspasses (774 tests).pnpm syncleaves the tree clean.Risk / follow-ups
_server-fixture.ts, would cut its run time. Both change shared test structure, so they're left for the maintainers.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 change; no production or runtime behavior is affected.
Overview
Raises the Vitest timeout for "attaches to existing DOM without replacing nodes or mutating protected attributes" from 15 s to 60 s in
behavior-root.test.ts.The test’s dev/prod matrix compiles hundreds of fixtures (~582 compiles can take ~9 s alone), so busy CI runners were hitting the old limit and failing flaky timeouts; the comment now documents that timing rationale. Aligns with other compile-heavy Octane tests that already use 60 s.
Reviewed by Cursor Bugbot for commit 4bfdfbf. Bugbot is set up for automated code reviews on this repo. Configure here.