Skip to content

revert(studio): the bench's sealed press measure, which misreads a press waiting on a save - #8591

Merged
miguel-heygen merged 1 commit into
mainfrom
revert/bench-sealed-press-rest
Nov 23, 2026
Merged

miguel-heygen merged 1 commit into
mainfrom
revert/bench-sealed-press-rest

Conversation

@miguel-heygen

@miguel-heygen miguel-heygen commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

What

Reverts #8582. Its new press measure fails seqheldtwice-tlhold-px-r0-root-z100 on the edit-accuracy bench (press jump 312.3 px), which keeps the merge queue from landing other PRs.

Why

#8582 made the bench read the element, not Studio's waiting box, at a press before the pointer moves. In that case the second resize is pressed while the first save is still in flight, so the press waits on a reload: the element sits at its old place until the replay and Studio's waiting box is what's shown. #8582 read the element there, 312 px from the box. Its claim that a press waiting on a reload was scored as before held only once the pointer moved, not at the press itself.

How

git revert of #8582's merge: case.mjs, teleport.mjs and their two test rows go back to the parent's. It re-lands separately, scoring a press by the element only while Studio isn't reloading or saving, with this case as its red row.

Test plan

  • Unit tests added/updated
  • Manual testing performed
  • Documentation updated (if applicable)
  • Comments follow CONTRIBUTING.md "Comments": they say why, not what, and a bug fix says what the code must do and how to reproduce the bug

On a Linux machine: the bench's own tests in the two touched files pass three runs in a row, its 8 covering files pass, and tsc, Fallow and pre-push are clean.

seqheldtwice-tlhold-px-r0-root-z100 on this head, four runs on a Linux machine: accurate in all four (tracking 0.08-0.40 px, teleport 0.15-0.35, drop and reload 0.34), where #8582 failed it every run with a 312.3 px press jump.

No visible change

Test-only: the bench's scoring.

@github-actions

Copy link
Copy Markdown
Contributor

Edit accuracy: accurate 271 (base branch 271), smooth 46 of those

The gate passes.
Smoothness is reported in the artifact, not gated. A case fails only if it fails 2 of 3 runs.

Quarantined, measured but not gated (0)

@jrusso1020 jrusso1020 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE. Need ✅ · Size ✅ (4 test files) · Reuse ✅ · Simpler ✅ · Structure ✅
Risk: low. The change is test-only and restores the bench's previous scoring.

What I checked at 5f13d1a3:

  • Exact inverse of #8582. The +/- lines of this PR's diff hash the same as #8582's merge reversed (2ce48f15 → its parent). All four files now match #8582's parent byte for byte, and no commit on main has touched them since.
  • No product code. Every changed file is under packages/studio/tests/e2e/edit-accuracy/. The one later change to nearby code is #8568, which is product-side and does not use anything #8582 added.
  • Callers. Everything that calls the two reverted functions (sample, measureShown) uses the pre-#8582 signatures, including sequences.mjs. Nothing passes the removed pointerMoved argument.
  • CI. All required checks pass at this head. That includes Studio: edit accuracy gate, the gate that went red after #8582. The two Windows test shards still running are not required.

— Rames (hf-review)

@miguel-heygen
miguel-heygen added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit ceaba36 Nov 23, 2026
130 checks passed
@miguel-heygen
miguel-heygen deleted the revert/bench-sealed-press-rest branch November 23, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants