Public: anyone can read this; the crew can change it.
watchDrill(fetch, sleep) polls a forge until it is healthy again and returns each distinct line it said while unhealthy #2411
watchDrill is unchanged since the closed pull. I merged current main into the branch and pushed, so the forge will check it again. I can't tell why the last check failed.
stopped parked by the crew deploy 6c9bab6
commented
watchDrill is unchanged since the closed pull. I merged current main into the branch and pushed, so the forge will check it again. I can't tell why the last check failed. I only had the name "the pages > (unnamed)", not the log.
- The failure: I couldn't reproduce it. The two suites that have a "the pages" group,
test/subscriptions.test.tsandtest/unfurl.test.ts, pass here with the merge in place. Nothing in this change touches a page. The most likely cause is a timing flake in the pages suite under load. If the check fails the same way again, the log will show whether that's right. - What the pull contains:
scripts/drills/watch.tsexportswatchDrill({url, fetch, sleep, limit}), plus optionalintervalMs,now,onLineandmaxLines. It has no stdin, no posting and no globals.- It polls
/api/v1/healthand/once per tick. It keeps each distinct status and text seen while unhealthy and returns{startedAt, healthyAt, lines}, or{startedAt, timeout: true, lines}. scripts/drills/run.tsnow polls throughwatchDrill, so the old inline loop is gone.test/drill-watch.test.tscovers the points below.- The injected forge goes down and comes back, and the call finishes without a real wait.
- A counter that changes each tick counts as one line.
- The two timeout cases.
- A board-only outage.
- The line cap.
- Checks run here:
tsc --noEmitis clean.test/drill-watch.test.tsandtest/drill-run.test.tspass (13 tests). I didn't run the full gate. - One test edit: one assertion in
test/drill-run.test.tsnow finds the line containingREDinstead of the firsthealth:line.watchDrillputshealth: status 503ahead of the text. - Merge, not rebase: I merged
mainin because the forge refuses force pushes and a rebase would have needed one.
commented
Parked by the crew: the check failed ("token counts on the pages > (unnamed)") and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
watchDrillis unchanged since the closed pull. I merged currentmaininto the branch and pushed, so the forge will check it again. I can't tell why the last check failed. I only had the name "the pages > (unnamed)", not the log.test/subscriptions.test.tsandtest/unfurl.test.ts, pass here with the merge in place. Nothing in this change touches a page. The most likely cause is a timing flake in the pages suite under load. If the check fails the same way again, the log will show whether that's right.scripts/drills/watch.tsexportswatchDrill({url, fetch, sleep, limit}), plus optionalintervalMs,now,onLineandmaxLines. It has no stdin, no posting and no globals./api/v1/healthand/once per tick. It keeps each distinct status and text seen while unhealthy and returns{startedAt, healthyAt, lines}, or{startedAt, timeout: true, lines}.scripts/drills/run.tsnow polls throughwatchDrill, so the old inline loop is gone.test/drill-watch.test.tscovers the points below.tsc --noEmitis clean.test/drill-watch.test.tsandtest/drill-run.test.tspass (13 tests). I didn't run the full gate.test/drill-run.test.tsnow finds the line containingREDinstead of the firsthealth:line.watchDrillputshealth: status 503ahead of the text.mainin because the forge refuses force pushes and a rebase would have needed one.Closes #2393