Skip to content

test(bench): opt the event-owners fixture into opaqueSignalHandles - #1912

Merged
trueadm merged 1 commit into
mainfrom
fix/event-owners-opaque-signal-handles
Oct 8, 2026
Merged

trueadm merged 1 commit into
mainfrom
fix/event-owners-opaque-signal-handles

Conversation

@trueadm

@trueadm trueadm commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Why

Changes

  • Compile the fixture with opaqueSignalHandles: true, so its event owners take the potential-signal-binding path again. The existing enableSignalBindings(1, true) check is unchanged.
  • After each mount, assert that every button carries signal authority. A zero mount_row_weak_writes therefore cannot come from rows that skipped the signal path. With this control alone (regex check removed and the opt-in off), the script fails with mounted handlers record signal authority.
  • No budget, ceiling, or *-budget target is added. The only emitted target is event-owner-rows.

Validation

  • node benchmarks/scoped-signals/event-owners.mjs exits 0 and emits event-owner-rows (mount_row_weak_writes 0, insert_row_weak_writes 0; semantic, dispatch and survivor-identity controls pass)
  • node benchmarks/bench.mjs signal-dom-bindings --quick exits 0, and the merged suite result contains event-owner-rows
  • Negative control: with the opt-in removed, the new authority assertion fails
  • pnpm format:files:check benchmarks/scoped-signals/event-owners.mjs
  • pnpm 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

  • Benchmark-only change, so no changeset.
  • The new control reads the runtime's private $$signalOwner host property, which stable-event-authority.mjs already observes. If the authority storage moves again, both harnesses need the same update.

Provenance

  • An agent produced this diff (agent-authored)

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with 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 existing enableSignalBindings(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 zero mount_row_weak_writes cannot 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.

#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
trueadm marked this pull request as ready for review October 8, 2026 16:37
@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent test PR: tests only labels Oct 8, 2026
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Benchmark report

🟢 No byte growth, no added work, and no timing changes beyond ±3%.

Compares 7c780b036, the merge commit's first parent with af3402928 on the same runner. Any increase in a js-framework work counter fails this check; byte changes are a report. Wall time is a report: base and head samples alternate in one browser, and an operation is called slower or faster only when the 95% confidence interval of its ratio excludes ±3%. Workflow run

js-framework: 1k/10k row operations

target operation base ms head ms head/base 95% CI
octane-jsx select_lots 1.415 1.345 −4.7% −5.6% … −3.6% 🟢 faster
All 20 timed operations (19 without a verdict)
target operation base ms head ms head/base 95% CI
octane-tsrx run 2.400 2.367 −1.8% −3.9% … +0.0% ⚪ within noise
octane-tsrx replace 5.283 5.283 −1.7% −4.3% … +3.8% ⚪ within noise
octane-tsrx add 2.233 2.258 +0.0% −0.0% … +4.4% ⚪ within noise
octane-tsrx update 0.121 0.125 +1.9% +1.4% … +3.4% ⚪ within noise
octane-tsrx select 0.005 0.005 +0.3% −0.6% … +2.1% ⚪ within noise
octane-tsrx swap 0.028 0.029 +2.0% +1.7% … +2.3% ⚪ within noise
octane-tsrx remove 0.013 0.013 −1.0% −2.9% … +1.5% ⚪ within noise
octane-tsrx runlots 22.900 22.642 +0.6% −2.8% … +4.2% ⚪ within noise
octane-tsrx select_lots 0.006 0.006 −1.6% −2.8% … −0.6% ⚪ within noise
octane-tsrx clear 40.408 39.992 −0.4% −1.7% … +1.2% ⚪ within noise
octane-jsx run 3.175 3.233 ±0.0% −1.4% … +1.6% ⚪ within noise
octane-jsx replace 6.017 5.808 −3.1% −5.0% … +0.0% ⚪ within noise
octane-jsx add 2.983 3.017 ±0.0% −1.6% … +3.4% ⚪ within noise
octane-jsx update 0.230 0.229 −0.3% −0.7% … ±0.0% ⚪ within noise
octane-jsx select 0.124 0.121 +0.5% −0.5% … +1.3% ⚪ within noise
octane-jsx swap 0.205 0.213 +3.3% +2.5% … +4.2% ⚪ within noise
octane-jsx remove 0.157 0.159 +0.6% ±0.0% … +3.1% ⚪ within noise
octane-jsx runlots 26.942 26.508 −2.0% −3.7% … +0.9% ⚪ within noise
octane-jsx select_lots 1.415 1.345 −4.7% −5.6% … −3.6% 🟢 faster
octane-jsx clear 43.775 44.450 +0.6% −0.4% … +2.2% ⚪ within noise

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.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

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

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

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

@trueadm
trueadm merged commit e29a12b into main Oct 8, 2026
52 of 55 checks passed
@trueadm
trueadm deleted the fix/event-owners-opaque-signal-handles branch October 8, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent test PR: tests only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant