Skip to content

test(gestures): the release cross-check pins the stillness interval - #9939

Merged
cixzhang merged 1 commit into
meta:mainfrom
vjeux:gestures/cross-check-stillness
Nov 4, 2026
Merged

cixzhang merged 1 commit into
meta:mainfrom
vjeux:gestures/cross-check-stillness

Conversation

@vjeux

@vjeux vjeux commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Maintainer impact

The interaction harness copies Core's release filter, and a Core test compares the two on the same samples. Its cases lifted 8 to 16 ms or 88 ms after the last move, so a harness stillness interval anywhere from 16 to 87 ms passed. This pins the interval, as the automated review suggested on #9725 and #9694.

Evidence

  • Before: with the harness's TOUCH_STILLNESS_MS set to 39 or 41 ms, all 7 cases passed.
  • After: both of those, and a >= bound in the harness's rest check, fail one case each. The unchanged harness passes 10 of 10.
  • Product behavior unchanged: only one Core test changes.

Intended invariant

The harness reads a speed for a lift at the stillness interval, and none for a lift 1 ms later, as VelocityTracker does.

Change

  • Two gestures lift exactly at UIKIT_VELOCITY.stillness and 1 ms past it, so they follow Core's constant.
  • A check confirms that the tracker reads a speed at the first and none at the second, so the pair keeps straddling the reset.

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

Local gates at 5f63f9d, on main 62b3e17: Core typecheck, CI=true pnpm lint (no errors, and no warnings in the changed test), Prettier, changeset coverage (nothing ships), the harness's and Core's gesture unit tests (933), and the full unit suites (test:ui 19,788 passed; test:node 16,430 passed). The mutations under Evidence ran on local, uncommitted copies of touch.ts; they are not part of this change.

The Core cross-check of the harness's release filter lifted every throw
8 to 16 ms after the last move and every rest 88 ms after it, so a
harness stillness interval anywhere from 16 to 87 ms passed all seven
cases.

Two gestures now lift exactly at Core's stillness interval and 1 ms past
it, built from UIKIT_VELOCITY.stillness, and a check confirms that the
tracker reads a speed at the first and none at the second. A harness copy with
a 39 or 41 ms interval, or a `>=` bound, now fails one case; each passed
all seven before.
@vercel

vercel Bot commented Nov 4, 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 Nov 4, 2026 11:23am UTC

Request Review

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

astracat-bot Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 4, 2026, 11:30 AM UTC

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 5f63f9d

Storybook · Sandbox · built from this PR's head

Package size: no published package changed; no new dependencies.

API changes: none in this pull request

Committed API report behind this build: cli 8 rows, theme-butter 1 row, theme-chocolate 1 row, theme-gothic 1 row, theme-matcha 1 row, theme-neutral 1 row, theme-stone 1 row, theme-y2k 1 row; run pnpm api:report.

Not run on this PR: add ci:run-visual, ci:run-a11y or ci:run-rtl to run them.


Generated by PR Enrichment workflow | 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.

Approved pending CI: CI has not run on this head yet. This is a draft from a fork, so CI runs once it is marked ready for review and a maintainer adds the ci:run label.

The two boundary lifts, at the stillness interval and 1 ms past it, pin the harness's copy of the release filter to VelocityTracker. A harness interval of 39 or 41 ms, or a >= rest comparison, now fails one case each, where all seven earlier cases passed with them. There is no public API or product behavior change, and there are no blocking findings.

[Automated review]

@vjeux
vjeux marked this pull request as ready for review November 4, 2026 11:50
@cixzhang cixzhang added the ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) label Nov 4, 2026
@cixzhang
cixzhang marked this pull request as draft November 4, 2026 12:11
@cixzhang
cixzhang marked this pull request as ready for review November 4, 2026 12:11
@cixzhang
cixzhang merged commit e968a7b into meta:main Nov 4, 2026
154 of 160 checks passed
@vjeux
vjeux deleted the gestures/cross-check-stillness branch November 4, 2026 13:42

This branch was successfully deployed

1 active deployment
Preview — 5f63f9d9 Deployed Nov 4, 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