Repository navigation
test(ci): the prompt dock check waits for its own card, and the SSH test survives a pull limit - #1016
Merged
Merged
Conversation
…one is rate limited The ssh job failed on public.ecr.aws answering toomanyrequests to the shared runner's address. The image is asked of mirror.gcr.io and Docker Hub next, and of all three once more after a pause; any other refusal still fails at once.
… card Once the second asking is answered the page reads the demo's own approval. A 2 s prompt poll that lands before the answer returns puts that card in place at once, so `.prompt-card` never detaches and the wait runs out after 30 s. Reproduced by holding the answer back 2.5 s.
|
Warning Review limit reachedYou'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 50 minutes. View limit details
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. Comment |
devswha
added a commit
that referenced
this pull request
Oct 14, 2026
…not after input-ready (#1019) ## Change `terminal-input-regression.ts` fails with "input regression timed out" more than any other browser check: 14 failures and 1 second-run pass in the last 30 hours of CI. #1001 made it wait for the connection before it asks for a liveness probe, and that was not the cause: on `main` with #1001 the check still needed a second run in 2 of 6 runs of the lane. A CI run with diagnostics printed on the timeout shows the order of frames on the runner: ``` +259 <- role-ack interact +260 <- pty-data, input-ready, pane-geometry +340 dispatched online +348 <- snapshot features=…|ping +10358 -> ping (the idle path, after the check had given up) ``` The snapshot is what tells the client the bridge answers pings. A wake before it probes nothing (`probe()` returns while `pingKnown` is false), and nothing asks again. On a development machine the snapshot arrives first (+114 ms against +213 ms here), so the check never failed locally and #1001's reproduction found another way to time out, not this one. The page was visible and connected, and a second `online` after the timeout did send the ping. The check now notes when the snapshot was forwarded to the page and waits for that before it dispatches `online`. No app code changes: a wake in the first few milliseconds of a connection has nothing stale to find. This commit was meant for #1016 and was pushed seconds after it merged. ## Validation - Reproduced by holding only the snapshot frame back 1.5 s: 2 of 2 fail with CI's message at that wait on `main`'s code. With the change: 3 of 3 pass under the same hold, 3 of 3 without it. - `bun run check run --build bun scripts/ui-regression.ts`: 65 PASS, exit 0 (macOS arm64, Bun 1.4.0). `bun run typecheck`, `scripts/conventions.test.ts`, `changelog-fold.test.ts`: pass. - On CI: `scripts/ui-regression.ts` run six times on this change, one script per job (run 38497470872, a throwaway branch): 6 of 6 passed on the first run. On `main` before it the check needed a second run in 2 of 6 jobs of the same shape (run 38495833732) and in 2 of 6 jobs of the whole lane, which runs two scripts side by side (run 38494284688). Six clean runs fit the cause above; they do not prove the check can never time out again. - Not run locally: the integration lane and the other browser scripts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Two CI failures that are not a change's fault, each reproduced before it was changed.
prompt-dock-demo-regression.ts: "waiting for locator('.prompt-card') to be detached", 30 s, 8 times in the last 30 hours. After the second asking of a question is answered, the check waited for any.prompt-cardto go. The demo has an approval of its own, and the page reads it as soon as the asked question is answered: when the 2 s prompt poll lands before the answer returns, that card takes the place at once and no moment without a card is ever seen. The call log shows it: the card busy, then 60-odd polls of a card that is not. The check now waits for the card of the question it answered, as its neighbours already do.Reproduced by holding the answer back 2.5 s (past one poll): exit 1 with CI's timeout and call log. With the fix it passes under the same delay and without it.
The
sshjob:docker run failed … toomanyrequests.scripts/ssh-password-docker.tsstarts its disposable PC frompublic.ecr.aws/docker/library/debian:bookworm-slim, and the registry refuses a shared runner's address once it is over its anonymous pull limit. That failed the job on two unrelated PRs yesterday. The script now pulls the image first: when a registry answers with a rate limit it asksmirror.gcr.ioand then Docker Hub, and all three once more after 20 s, before it fails. Any other refusal still fails at once.Shown with a
dockerstand-in on PATH: two limited pulls then a good one go on todocker runwith the third image; a pull that says "manifest unknown" fails at once; pulls limited every time fail after six tries and 20 s with docker's message.The fix for
terminal-input-regression.tsdescribed here earlier was pushed seconds after this PR merged; it is #1019.Not reproduced, left as it is:
terminal-copy-regression.ts:274(two attempts).Validation
bun run typecheck: pass.scripts/conventions.test.ts(fixed-sleep counts unchanged),changelog-fold.test.ts: pass.bun scripts/prompt-dock-demo-regression.ts: exit 0, 24 PASS, with the answer held back 2.5 s and without; exit 1 with the timeout before the change under the same delay.scripts/ssh-password-docker.tswith thedockerstand-in: the three cases above. The real script against Docker was not run here (no Docker on this Mac); CI'ssshjob runs it.