Repository navigation
test(interaction-harness): a lift stall comes before a pacing error - #10530
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
210fd9b to
8cb4505
Compare
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet.
This branch also carries #10501's commit, so landing it lands that change too. Next: because the branch lives in a fork, a maintainer adds the ci:run label so CI runs, then mark the pull request ready for review, which starts the run.
Non-blocking suggestion:
- The
TouchLiftStallErrorJSDoc ("carry the gap past that interval by itself") and the README ("onEventalone carries the scripted gap past the stillness interval") overstateonEvent's share, becauseonEventruns inside the scripted wait: a 30 msonEventbefore a 16 ms lift leaves about a 32 ms gap on an idle runner, so stating the rule as coded (the scripted gap plusonEvent's run passes the stillness interval) would be accurate.
[Automated review]
| * for that excess: page work there holds the next event back by a round trip. | ||
| * On a page that stamps touches on arrival (WebKit), the page then reads a | ||
| * resting finger and releases at 0. | ||
| * long enough to carry the gap past that interval by itself. Page work there |
There was a problem hiding this comment.
Non-blocking: onEvent runs inside the scripted wait (the next send is timed from the answer taken before onEvent starts, lines 874-878), so it does not carry the gap past the interval by itself: a 30 ms onEvent before a 16 ms lift leaves about 32 ms on an idle runner, and this error fires only once a runner adds the rest. Suggest stating the rule as coded, for example: "The scripted gap plus onEvent's run passes the stillness interval, so the play's own work explains the rest, however much a loaded runner added." The README sentence at line 532 says the same.
A play's lift stall needed onEvent to account for the whole of the lift gap's excess. On a loaded runner, which stretched the gap further, the same play failed as the runner's TouchPacingError instead. The lift stall is the more specific cause: it is now named when the scripted gap plus onEvent's own run passes the stillness interval, however much more the runner added. touchPlayError holds the order: the lift stall, then the page's stall, then the runner's. The lift-stall self-test's page logs each move where Core's gesture host reads it, at its pointer event.
8cb4505 to
9bea902
Compare
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet.
The branch now carries only this change, and the new WebKit self-test fails on the old check and passes here. Next: because the branch lives in a fork, a maintainer adds the ci:run label so CI runs, then the pull request is marked ready for review, which starts the run.
Non-blocking suggestion, still open from the earlier review:
- The
TouchLiftStallErrorJSDoc and the README sayonEventalone carried the gap past the stillness interval, butonEventruns inside the scripted wait, so stating the rule as coded (the scripted gap plusonEvent's run passes the interval) would be accurate.
[Automated review]
|
/approve-spec 9bea902 |
|
/approve-spec b2b30b0 |
There was a problem hiding this comment.
Approved pending CI: CI has not finished on this head yet. Its one failure so far, test-node (1/4) in packages/cli/api/build/tree.test.mjs (the single sign-on login form's block picks), fails the same way on main and does not come from this change.
The merge from main leaves this change's own patch as it was, and the new WebKit self-test still fails on the old check and passes here.
Non-blocking suggestions:
- Regression: since #10583 reached
main, Core's gesture host reads a pointer-fed finger's lift at itspointerup, so the newliftStallPagecomment ("the lift at its touch event, where Core's gesture host reads them") should say the touchend is where the harness's probe reads the lift. - Still open from the earlier review: the
TouchLiftStallErrorJSDoc and the README sayonEventalone carries the gap past the stillness interval, butonEventruns inside the scripted wait, so stating the rule as coded (the scripted gap plusonEvent's run passes the interval) would be accurate.
[Automated review]
| * move. The page logs each move at its pointer event and the lift at its | ||
| * touch event, where Core's gesture host reads them. |
There was a problem hiding this comment.
Non-blocking (regression from the merge of main): since #10583, GestureHost reads a pointer-fed finger's lift at its pointerup's place and time (packages/core/src/gestures/GestureHost.ts:3831-3840), so the touchend is where the harness's probe reads the lift, not Core. Suggest: "The page logs each move at its pointer event, where Core's gesture host reads it, and the lift at its touch event, where the harness's probe reads it."
|
/approve-spec b0e2163 |
There was a problem hiding this comment.
Approved. CI passes on this head, and the merge from main leaves this change's own patch as it was: the new WebKit self-test still fails on the old check and passes here.
Non-blocking suggestions, still open from the earlier reviews:
- The new
liftStallPagecomment says Core's gesture host reads the lift at its touch event, but since #10583 Core takes a pointer-fed finger's lift from itspointerup; the touchend is where the harness's probe reads the lift. - The
TouchLiftStallErrorJSDoc and the README sayonEventalone carries the gap past the stillness interval, butonEventruns inside the scripted wait, so stating the rule as coded (the scripted gap plusonEvent's run passes the interval) would be accurate.
[Automated review]
Maintainer impact
A play whose own
onEventholds its lift back past the 40 ms stillness interval fails by name withTouchLiftStallError. The check neededonEventto account for the whole of the gap's excess. On a loaded runner, which stretched the same gap further, it fell through toTouchPacingError, which blames the runner for the play's own work. Its harness self-test fails that way in CI's WebKit shards at times, costing a re-run. It is not a break: on main it passes at one worker, alone and after the tests before it.Intended invariant
When the scripted gap plus
onEvent's own run passes the stillness interval, the lift stall is named before any pacing error, however much the page or the runner added. A quickonEventleaves it to the pacing errors.Change
liftStallError: the lift stall when the scripted gap plusonEvent's run passesTOUCH_STILLNESS_MS. Every gap the old check named still qualifies, since the page read a rest.touchPlayErrorholds the order the play throws in: the lift stall, then the page's stall, then the runner's. Both are exported for unit cases.Evidence
onEventnamesTouchPacingError, a listener that held the liftTouchPageStallError, and 70 ms ofonEventTouchLiftStallError, held or not. 24 ms (16 + 24 = 40) is not a lift stall; 25 ms is.onEventwaits 60 ms on the runner's timer. Main names itTouchPacingError5 of 5; this change names the lift stall. A quickonEventnames the page's stall.TouchPacingError); this change 20 of 20 in two rounds.Scope
Testing
pnpm review:pre: 0 findings, merge into main clean.