Repository navigation
test(interaction-harness): the held-end self-test runs its animations long enough for its holds to reach them - #9110
Conversation
… 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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report📚 Storybook Preview🧪 Sandbox PreviewNo new or modified components detected. Bundle Size SummaryNo component packages changed. Accessibility AuditStatus: The accessibility audit did not run on this pull request. It runs after merges to Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
There was a problem hiding this comment.
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]
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
finishedwhen 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,
holdAnimationsandcurveEndMs: none touches this test. #8535, merged, changed itsreverse()case's start, which this change keeps.Evidence
Scope
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 CPUspnpm exec playwright test --config playwright.interaction.config.ts --project chromium --repeat-each=40 --workers=16 …in ChromiumLocal 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.