Skip to content

test(ci): the prompt dock check waits for its own card, and the SSH test survives a pull limit - #1016

Merged
devswha merged 2 commits into
mainfrom
fix/ci-health
Oct 14, 2026
Merged

devswha merged 2 commits into
mainfrom
fix/ci-health

Conversation

@devswha

@devswha devswha commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

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-card to 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 ssh job: docker run failed … toomanyrequests. scripts/ssh-password-docker.ts starts its disposable PC from public.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 asks mirror.gcr.io and then Docker Hub, and all three once more after 20 s, before it fails. Any other refusal still fails at once.
Shown with a docker stand-in on PATH: two limited pulls then a good one go on to docker run with 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.ts described 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

  • macOS arm64, Bun 1.4.0. 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.ts with the docker stand-in: the three cases above. The real script against Docker was not run here (no Docker on this Mac); CI's ssh job runs it.
  • Not run locally: the integration lane and the other browser scripts.

…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.
@coderabbitai

coderabbitai Bot commented Oct 14, 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 50 minutes.

Check out review usage here.

View limit details

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

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4d0a76b2-0338-4dbb-b7e6-cc0ff72a706e
📥 Commits

Reviewing files that changed from the base of the PR and between b83c7c5 and 69498a6.

📒 Files selected for processing: 3
  • changelog.d/ci-health-after-the-retry.md
  • scripts/prompt-dock-demo-regression.ts
  • scripts/ssh-password-docker.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

Comment @coderabbitai help to get the list of available commands.

@devswha
devswha merged commit 3381f66 into main Oct 14, 2026
17 checks passed
@devswha devswha changed the title test(ci): the prompt dock check waits for its own card, and the SSH test survives a pull limit test(ci): three checks that failed for reasons that are not the change's Oct 14, 2026
@devswha devswha changed the title test(ci): three checks that failed for reasons that are not the change's test(ci): the prompt dock check waits for its own card, and the SSH test survives a pull limit Oct 14, 2026
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.
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