Repository navigation
test(bench): opt the event-owners fixture into opaqueSignalHandles - #1912
Merged
Merged
Conversation
#1762 stopped treating opaque holes as potential signal handles in modules without an `octane/signals` import, so the fixture compiled without `enableSignalBindings(1, true)` and the script failed at its potential-signal-bindings check. #1762 opted the other scoped-signals harnesses into `opaqueSignalHandles` and missed this one, which runs only in the weekly bench. The fixture opts in the same way stable-event-authority.mjs does. A runtime control now checks that every mounted handler recorded its signal authority, so a zero weak-write count cannot come from rows that skipped the signal path. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
marked this pull request as ready for review
October 8, 2026 16:37
Contributor
Benchmark report🟢 No byte growth, no added work, and no timing changes beyond ±3%. Compares js-framework: 1k/10k row operations
All 20 timed operations (19 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. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
octane-website-mcp | 62a4a30 | Commit Preview URL Branch Preview URL |
Oct 08 2026, 05:41 PM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
octane-website | 62a4a30 | Commit Preview URL Branch Preview URL |
Oct 08 2026, 05:39 PM |
Merged
7 of 9 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
benchmarks/scoped-signals/event-owners.mjs(theevent-ownersrun of thesignal-dom-bindingssuite) has failed on main since perf(octane): stop shipping the signal binding runtime in apps without signals #1762. It stopped at itspotential signal bindingscheck because the compiled fixture no longer containsenableSignalBindings(1, true).opaqueSignalHandles, the same opt-in perf(octane): stop shipping the signal binding runtime in apps without signals #1762 gavestable-event-authority.mjs. A new runtime control checks that every mounted handler really recorded signal authority.Why
git bisect runover the script's compile check, from perf(octane): record event signal authority on the host instead of weak maps #1655 (good, where the benchmark was added) to21f911d51d^(bad), points to e233e4a (perf(octane): stop shipping the signal binding runtime in apps without signals #1762, "stop shipping the signal binding runtime in apps without signals"). That change is deliberate. Opaque holes such as{row.label as string}now bind handles only in modules that import fromoctane/signals, that use DOM bindings, or that setopaqueSignalHandles. The fixture module does none of these, so it correctly compiles without signal bindings. This is not a compiler regression.opaqueSignalHandlesbut missed this one. The script runs only in the weekly bench (bench.yml), not on PRs, so nothing flagged it.$$signalOwner(0/128 and 0/256 rows). With the opt-in, all 128/256 rows record authority and still make 0 weak-map writes per row, which is the property perf(octane): record event signal authority on the host instead of weak maps #1655 established.Changes
opaqueSignalHandles: true, so its event owners take the potential-signal-binding path again. The existingenableSignalBindings(1, true)check is unchanged.mount_row_weak_writestherefore cannot come from rows that skipped the signal path. With this control alone (regex check removed and the opt-in off), the script fails withmounted handlers record signal authority.*-budgettarget is added. The only emitted target isevent-owner-rows.Validation
node benchmarks/scoped-signals/event-owners.mjsexits 0 and emitsevent-owner-rows(mount_row_weak_writes0,insert_row_weak_writes0; semantic, dispatch and survivor-identity controls pass)node benchmarks/bench.mjs signal-dom-bindings --quickexits 0, and the merged suite result containsevent-owner-rowspnpm format:files:check benchmarks/scoped-signals/event-owners.mjspnpm sync(no generated changes)pnpm format:check,pnpm typecheck,pnpm test: not run locally. The change is one benchmark script that no Vitest project or typecheck program includes.perf-review: not applicable (benchmark harness only; no runtime, compiler, or binding change)Risk / follow-ups
$$signalOwnerhost property, whichstable-event-authority.mjsalready observes. If the authority storage moves again, both harnesses need the same update.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 harness only; no compiler, runtime, or product behavior changes.
Overview
Fixes the failing event-owners scoped-signals benchmark by aligning it with post-#1762 compile behavior: modules without a signals import no longer emit signal-binding runtime unless they opt in.
The fixture compile call now sets
opaqueSignalHandles: true(same pattern as other scoped-signals harnesses), so the existingenableSignalBindings(1, true)check and weak-write measurements still exercise the handle-capable event path. After mount, the script asserts every row button has$$signalOwner, so a reported zeromount_row_weak_writescannot come from handlers that skipped authority recording.Reviewed by Cursor Bugbot for commit 62a4a30. Bugbot is set up for automated code reviews on this repo. Configure here.