Skip to content

test(browser): count a touch-burst boundary's received reports once their receipts arrive - #4173

Closed
devswha wants to merge 1 commit into
mainfrom
fix/touch-burst-boundary-receipts
Closed

devswha wants to merge 1 commit into
mainfrom
fix/touch-burst-boundary-receipts

Conversation

@devswha

@devswha devswha commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Summary

terminal-touch-burst-history-regression (out of quarantine since #4150) flaked in CI on #4162's run
(44370618553): scripts/terminal-touch-burst-run.ts:714: lease-release: the application receives only what went out before the boundary. The browser had sent six wheel reports before the lease release, but the fixture had logged one:
the lease-release action detached before the application received the batch, so the count was read short.

Every boundary case now waits, before triggering its boundary, for the fixture's loopback TCP receipts (added in
#4150) to match the reports the browser actually sent in the first frame. Later frames stay held during the wait, the
15 s deadline is unchanged, and both the exact-count and the stale-send assertions stay. Test-only.

Validation

  • CI runner image (herdr-ci-runner:local, BROWSER_RETRY=0), 10 passes: 10/10.
  • bun run check fast: green.
  • Not run: the other browser scripts (CI runs them on this PR).

…heir receipts arrive

PR #4162's browser job recorded six wheel reports sent before the
lease-release detach, no stale sends, and only one report in the app's
input log at the assertion (2026-11-18 18:35 UTC). The test detached after
the browser sent the first frame, before the app acknowledged it; the
marker on the reattached pane does not prove delivery on the old attach.
https://github.com/devswha/ovis/actions/runs/44370618553/job/135036338537

Keep later frames held for every boundary until the fixture's TCP
receipts cover the first frame's actual sends. Use the same 15-second
deadline and retain both the exact log count and the stale-send check.
@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 24 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 8 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 9e2945e and 5e2a830.

Files selected for processing: 1

  • scripts/terminal-touch-burst-run.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@devswha

devswha commented Nov 18, 2026

Copy link
Copy Markdown
Owner Author

Closing: the review is right that this would hide the failure rather than fix it. The log is read only after mark() round-trips through the same input stream, so the missing reports did not arrive late: 5 of the 6 reports sent before the lease release never reached the application. Waiting for receipts before each boundary stops testing input in transit at a boundary, which is the case under test. The likely cause is on the server side (input queued when a lease release or detach is processed is dropped); it is being investigated, and the fix goes in its own PR.

@devswha devswha closed this Nov 18, 2026
devswha added a commit that referenced this pull request Nov 18, 2026
… at a detach is lost (#4174) (#4175)

## Summary

`terminal-touch-burst-history-regression` goes back into the browser
quarantine until 2026-12-18, citing #4174. It flaked in CI (#4162's run
44370618553): of 6 wheel reports sent before a voluntary detach, the
application received 1. That is a server bug, not a test race: input the
server already accepted is lost when the last viewer detaches, and typed
keys are lost the same way (#4174). A test-side wait (#4173, closed)
would have hidden it. The server fix comes in its own PR and removes
this entry again once verified.

## Validation

- `bun test scripts/ci-browser-parallel.test.ts -t quarantine`: 4/4.
- `bun run check fast`: green.
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.

1 participant