Repository navigation
fix(bench): point stale weekly gates at current compiler and runtime output - #1586
Merged
Merged
Conversation
…output
Three gates that the weekly bench job and local Node 22 runs depend on had
drifted from the code they observe.
tsrx-component-graph counted warm plans with a regex for the
`Object.assign(fn, { __warm: ... })` shape. #943 (44d50db) switched the
compiler to `markWarm(fn, plan)`, so every graph counted zero and the
opaque-cycle control failed. The harness now reads `markWarm` calls against
the runtime import from the parsed output, and a ci:workflow:test case runs
the cycle and chain controls against the current compiler on every PR.
hook-store-composition's work gate required nonzero `appendSlotKey` calls on
the nested lane. #1076 (1e12db7) moved composed hook paths into the cached
`resolveHookPath`, leaving `appendSlotKey` only on the use() description path.
The probe now counts `resolveHookPath`, the direct lane must compose nothing,
and a ci:workflow:test case keeps the probe on the helper `resolveSlot` calls.
behavior-root's destructured-props test pinned one read per getter. V8 12
(Node 22, including the 22.22.2 engines floor) also runs excluded keys'
getters while copying an object rest, with no Octane code involved. The test
now derives its oracle from one native evaluation of the authored pattern, so
an extra snapshot read by Octane still fails on every engine.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
marked this pull request as ready for review
October 2, 2026 18:01
Contributor
Benchmark report
Compares js-framework: 1k/10k row operations (ms, lower is better)
All 20 timed operations (19 within noise)
Application bundle size (bytes)No changes across 45 measured values. Public-import reachability bundles (bytes)No changes across 105 measured values. |
# Conflicts: # package.json
5 of 7 tasks
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
Three gates had drifted away from the code they observe. Each one is bisected to its first bad commit and fixed in the harness or test that owns it. None of them is a framework defect.
node benchmarks/tsrx-component-graph/run.mjs:opaque cycle lost warm reachabilityObject.assign(fn, { __warm: … })tomarkWarm(fn, plan). The harness counted warm plans with a regex for the old shape, so every graph counted zero.markWarmcalls against the runtime import in the parsed output (output.mjs). The 2,400-component reachability checks hidden behind the cycle control now run and pass too.hook-store-compositionwork gate:callback-nested/parent_rerenders: no composed-slot coverageappendSlotKeyinto the cachedresolveHookPath, so the old probe now counts zero.appendSlotKeyremains only on theuse()description path.resolveHookPath. Add a negative control: the direct lane must not compose a path.behavior-root.test.ts"preserves destructured props through getter reentry…" fails on Node 22label, kind, label, kind, extraon 22.22.0 and on the 22.22.2 engines floor. Node 24 readslabel, kind, extra. CI only runs tests on Node 24, so nothing caught it.label, kind, extra.Bisect evidence:
44d50dbc0a^passes the current harness viaOCTANE_GRAPH_ROOT, and44d50dbc0afails it.OCTANE_HOOKS_ROOT,1e12db7d6d^passes and countsappendSlotKey7680 on the nested lane.1e12db7d6dfails it.Regression coverage (runs on every PR via
ci:workflow:test)benchmarks/tsrx-component-graph/output.test.mjsruns the sync-cycle and opaque-cycle controls, plus a 3-component opaque chain and a live chain, against the current compiler. With the old regex counter, both tests fail.benchmarks/hook-store-composition/work-metrics.test.mjsasserts that the client runtime'sresolveSlotcalls the composed-slot helper the work gate counts, and that every work metric names a client runtime function. With the probe set back toappendSlotKey, it fails.dom-binding-program.tspatched to evaluatepreparePropstwice, the test fails on both Node 22.22.2 and Node 24.18.0.Validation
pnpm format:check: not run repo-wide.pnpm format:files:checkpasses on the changed files.pnpm typecheck: not run. Scopedpnpm typecheck:filesreports only errors that predate this change: behavior-root lines 3479/3711 and a fixture.pnpm test: not run.node benchmarks/bench.mjs --quick --ratios tsrx-component-graph hook-store-composition: all targets PASS,[ratios] PASS — no ratio guards breached, exit 0.node benchmarks/tsrx-component-graph/run.mjs 1: exit 0, 6/6 PASS.node benchmarks/hook-store-composition/work.mjswith the locked Playwright 1.61.1 Chromium 1228 (149.0.7827.55): PASS. The nested lane makes 2560resolveHookPathcalls, the direct lane 0.vitest run packages/octane/tests/behavior-root.test.ts --project octane --project octane-prod -t "getter reentry": 4/4 pass on Node 22.22.0, 22.22.2 and 24.18.0. Before the change it failed on both Node 22 versions in both projects.node --teston the two new tests,compare.test.mjsandscripts/ci-workflow.test.mjs: 76/76 pass.Risk / follow-ups
bench.ymljob still stops before the bench step. The latest run (2026-09-28) fails at "Test Lynx diagnostic fixture contracts":compiles and executes a main-thread component scope through the real TSRX pipeline→Build failed with 1 error. These three gates were hidden behind that step. Older runs also showedripple/prepend100/insertmid100identity gates andoctane-tsrx: search typing did not produce native input events, none of which this PR re-checks. A full weekly run is still needed after this merges.Provenance
agent-authored)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Changes are benchmark harnesses, regression tests, and a test oracle adjustment; no production runtime or compiler behavior is modified.
Overview
Realigns three weekly/CI gates that had drifted from the compiler and runtime they observe—harness fixes only, not framework bugs.
TSrX component graph: Warm-plan checks no longer regex-match the old
__warm:shape. Sharedoutput.mjsparses compiled JS and countsmarkWarmimports/calls, so cycle controls and 2,400-component reachability validation work again after the compiler switch tomarkWarm(fn, plan).Hook-store composition work bench: Composed-slot coverage now counts
resolveHookPathinstead ofappendSlotKey, with metrics centralized inwork-metrics.mjs, a TypeScript test thatresolveSlotstill calls that helper, and a direct-lane negative control (no path composition without custom hooks).Behavior test: The destructured-props “exact read” oracle is taken from one native run of the authored object-rest parameter pattern, so the test passes on Node 22 (V8’s extra excluded-key getters) while still failing if Octane double-reads on Node 24.
Both new benchmark test modules are wired into
ci:workflow:test.Reviewed by Cursor Bugbot for commit 93170db. Bugbot is set up for automated code reviews on this repo. Configure here.