Repository navigation
ci: drop the ViewTransition effect-cleanup work ceiling and restore the trace-retention guard - #1916
Merged
Merged
Conversation
…he trace-retention guard #1907 removed every committed budget gate but missed one. The chromium browser lane runs view-transitions/effect-cleanup.mjs on every PR, and it failed when total or idle-extra function calls exceeded effect-cleanup-budget.json (measured + 32 calls). Delete that file and both ceiling checks. The run still requires zero stageTeardown entries, the shared lifecycle snapshots, completed native primers and unchanged provenance hashes, and it still reports total_calls and idle_extra_calls. #1907 also deleted the scoped-signals-trace guard (wrapped-max-budget over unfilled-max-budget, trace_event, 1.5x) only because its reference name ends in -budget. That name refers to the 10,000-event trace retention limit; the guard compares two configurations timed in the same run. Restore it verbatim. run-trace.mjs has not produced numbers since #1851, because it built ScopeImpl with the old (key, options) constructor and #1851 installs trace recording and inspect() only through createScope. Build scopes through createScope so the suite runs and the restored guard is evaluated again. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
marked this pull request as ready for review
October 8, 2026 18:54
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 60 measured values. Public-import reachability bundles (bytes)No changes across 111 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
scoped-signals-traceratio guard. ci: remove every byte and work-count budget gate #1907 deleted it only because its reference name ends in-budget.run-trace.mjs, which has produced no numbers since perf(signals): install the public Scope surface only from createScope #1851, so the restored guard is evaluated again.Why
.github/workflows/ci.ymlstep "Check ordinary effect cleanup work after ViewTransition" (browser lane, chromium) runsbenchmarks/view-transitions/effect-cleanup.mjson every PR. That run failed when any operation'stotal_calls, or any idle case'sidle_extra_calls, exceededeffect-cleanup-budget.json, which holds measured counts plus 32 calls. That is a fixed committed ceiling. Dominic confirmed it should go. The js-framework work step and the pr-report base-vs-head comparison are unchanged.scoped-signals-traceguard (wrapped-max-budget/unfilled-max-budget, optrace_event,maxRatio1.5) is not a budget. "budget" in those names is the scope's 10,000-event trace retention limit (debug.traceLimit). The guard times two configurations in the same run, the same kind of same-run ratio as the 835 guards ci: remove every byte and work-count budget gate #1907 kept. Restoring it is the right choice, so the README prose that describes it stays and now says what "budget" means.Changes
Effect-cleanup ceiling removed
benchmarks/view-transitions/effect-cleanup-budget.json, itsharnessFilesentry,caseBudget(), theTotal function calls exceed budgetassert, and theidle extra calls exceed budgetfailure.stageTeardownentries in every case, plus exactly one installedstageTeardowncoverage range in idle mode;effectGateErrors);total_callsandidle_extra_callsare still emitted as targets. Thelimitationsmetadata andview-transitions/README.mdnow say they are reported, not gated.scripts/ci-workflow.test.mjsexpectations are unchanged. The step still runs the semantic gates and uploads its JSON.vt-effect-cleanup-modelratio guards (opstage_teardown_calls,maxRatio0) still resolve. Every target they name,vt-effect-cleanup-{tsrx,jsx}-{cold,idle}-{clear,remount,remove_100_scattered}, and thevt-effect-cleanup-modelreference are still emitted with that op.Trace guard restored
benchmarks/baselines/ratios.jsongets the guard back verbatim fromcbc1e8e651(pre-ci: remove every byte and work-count budget gate #1907), at its original position afterlynx-handle-retirement.benchmarks/scoped-signals/run-trace.mjsbuilt scopes withnew ScopeImpl(key, options). perf(signals): install the public Scope surface only from createScope #1851 changed that constructor to(key, seedable, seedEntries, traceLimit)and moved trace recording andinspect()behindcreateScope. The harness then threwTypeError: … is not a functioninScopeImpl.trace, and the suite reported "no targets produced numbers". It now builds scopes throughcreateScope, which applies the sametraceLimitvalidation the old constructor did. The timed loop is stillscope.trace('write').No new budget or ceiling is added.
Validation
pnpm ci:workflow:test: 377 pass, 0 failnode benchmarks/bench.mjs --quick --ratios scoped-signals-trace:pnpm sync: no generated driftpnpm format:files:checkon the changed files: cleannode --check benchmarks/view-transitions/effect-cleanup.mjseffect-cleanup.mjswas not run locally (browser bench; parallel-session load rule). This PR's chromium browser lane runs it.pnpm format:check/pnpm typecheck/pnpm test: not run locally. No package source or typed files changed.perf-review: not applicable (benchmark harness, CI-gate data, and docs only)Risk / follow-ups
view-transitions-effect-cleanup.jsonartifact and in the weekly bench.benchmarks/js-framework/run.mjsstill has a fixed mount-call ceiling (35,000 for octane-tsrx, 50,000 for others), run by the kept ci.yml js-framework step. ci: remove every byte and work-count budget gate #1907 left that gate in place on purpose.benchmarks/scoped-signals/event-owners.mjsenableSignalBindings(1, true)failure was fixed separately by test(bench): opt the event-owners fixture into opaqueSignalHandles #1912, which is now merged into this branch.Provenance
agent-authored)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Benchmark and CI-gating harness changes only; no production package source. Effect-cleanup work growth will no longer block PRs but remains visible in artifacts.
Overview
Removes the committed work ceiling on ViewTransition effect-cleanup benchmarks:
effect-cleanup-budget.jsonis deleted andeffect-cleanup.mjsno longer fails whentotal_callsoridle_extra_callsexceed calibrated limits. Those metrics are still collected and uploaded; semantic gates (zerostageTeardownduring ordinary cleanup, lifecycle snapshots, primers, provenance) are unchanged.Restores the
scoped-signals-tracesame-run timing ratio guard (wrapped-max-budgetvsunfilled-max-budget, 1.5× ceiling) inratios.json, and fixesrun-trace.mjsto build scopes viacreateScopeinstead of the obsoleteScopeImplconstructor so the suite produces numbers again. Scoped-signals README text now clarifies that “budget” meansdebug.traceLimit, not a CI cap.Reviewed by Cursor Bugbot for commit 626d68b. Bugbot is set up for automated code reviews on this repo. Configure here.