Skip to content

test(interaction-harness): the held-end self-test runs its animations long enough for its holds to reach them - #9110

Merged
cixzhang merged 1 commit into
meta:mainfrom
vjeux:harness/cubic-hold-runs
Oct 31, 2026
Merged

cixzhang merged 1 commit into
meta:mainfrom
vjeux:harness/cubic-hold-runs

Conversation

@vjeux

@vjeux vjeux commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Maintainer impact

The harness self-test "a held end is solved through a cubic-bezier effect easing, a reversed one reads to the full end, and a rotate about x composes on its axis" fails on a loaded runner: in WebKit with the container capped at 3 CPUs at 16 workers it fails 34 of 40 runs, its holds finding nothing.

Intended invariant

The self-test proves that a held run reports where its curve ends (HeldAnimation.curveEndMs), through an effect easing, a reversed direction, a negative playback rate and implicit end frames, and that a rotate about x composes on its axis. It needs each run still running when the hold reads the page.

Change

Only the self-test changes. On such a runner the hold read the page as late as 2.4 s after the run was made, past the end of the test's 1 s runs (and its 300 ms rotate run), which had finished. Measured: in 25 of 40 runs of the first case the run was finished when the hold read the page, 1.2 to 2.4 s after it was made. Each run now lasts 10 s, and the curve ends the test expects scale with it.

Prior art: open pull requests searched for this test's title, holdAnimations and curveEndMs: none touches this test. #8535, merged, changed its reverse() case's start, which this change keeps.

Evidence

  • Failure before the change: under the 3-CPU cap at 16 workers, 34 of 40 runs fail with this test as on main (the first hold finds nothing, or the rotate sample has no held run).
  • Success after the change: 40 of 40 under the same cap, 40 of 40 uncapped in WebKit, 40 of 40 in Chromium, and 24 of 24 in Chromium pinned to two cores.
  • Product/runtime behavior verified unchanged: no product or harness code changes.

Scope

  • No intended public API, product behavior, visual direction, or policy change.
  • Product changes discovered during the work were removed or split.
  • Public text and artifacts contain no internal Meta context.

Testing

  • node internal/interaction-harness/scripts/webkit-container.mjs --repeat-each=40 --workers=16 internal/interaction-harness/src/harness.interaction.browser.spec.ts --grep "a held end is solved" with the container capped at 3 CPUs
  • the same uncapped, and pnpm exec playwright test --config playwright.interaction.config.ts --project chromium --repeat-each=40 --workers=16 … in Chromium

Local gates at a0feb08: Prettier, ESLint and the harness typecheck pass on the changed file; the root build passes; the core UI suite passes; the node project passes except two process-timing cases in packages/cli/foundation/release/cache.test.mjs, which pass when that file runs alone (34 of 34); the harness browser spec passes in Chromium and WebKit; the test passes 20 of 20 under the WebKit cap and 24 of 24 in Chromium pinned to two cores.

… long enough for its holds to reach them

"A held end is solved through a cubic-bezier effect easing, a reversed one
reads to the full end, and a rotate about x composes on its axis" fails most
runs in WebKit with the container capped at 3 CPUs at 16 workers: its holds
find nothing. On such a runner a hold read the page as late as 2.4 s after
the run was made, past the end of the test's 1 s runs (and its 300 ms rotate
run), which had finished. Each run now lasts 10 s, and the curve ends it
expects scale with it. Under the same cap it passes 40 of 40, where it failed
34 of 40; it passes 40 of 40 uncapped and in Chromium.
@vercel

vercel Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 31, 2026 5:46am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 31, 2026
@astracat-bot

astracat-bot Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Oct 31, 2026, 5:52 AM UTC

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR

🧪 Sandbox Preview

View Sandbox for this PR

No new or modified components detected.

Bundle Size Summary

No component packages changed.

Accessibility Audit

Status: The accessibility audit did not run on this pull request. It runs after merges to main and before each release; pull requests that touch components run it with the ci:heavy-lanes label.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Recommended for approval: running the held-end self-test's animations for 10 s removes its dependence on how quickly a loaded runner answers, and every scaled expectation still holds within its tolerance. No changes are needed; CI was skipped while the pull request is a draft, so its jobs will run once it is marked ready for review.

[Automated review]

@cixzhang cixzhang added the ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) label Oct 31, 2026
@cixzhang
cixzhang marked this pull request as ready for review October 31, 2026 06:04
@cixzhang
cixzhang merged commit f2a818b into meta:main Oct 31, 2026
93 checks passed
@vjeux
vjeux deleted the harness/cubic-hold-runs branch October 31, 2026 07:33

This branch was successfully deployed

1 active deployment
Preview — a0feb08a Deployed Oct 31, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants