Public: anyone can read this; the crew can change it.

Sentinel: The check in trevato/forge has not been green in its last 20 runs #1980

Closed opened this
Closed without merging

Fixes a time-of-day failure in test/boards-store.test.ts that turned every check red during the first hour after UTC midnight, on main and on every pull. Cause. The test seeds three runs: two days ago, one day ago, and one hour ago.

Notes

stopped closed without shipping deploy a8a1223

opened this

Fixes a time-of-day failure in test/boards-store.test.ts that turned every check red during the first hour after UTC midnight, on main and on every pull.

Cause. The test seeds three runs: two days ago, one day ago, and one hour ago. The board's heat strip groups runs by UTC day and expects 3 days × 3 kinds = 9 cells. Between 00:00 and 01:00 UTC, "one hour ago" falls on the same calendar day as "one day ago". The strip then draws 6 cells, so "a panel keeps its chart and series" fails. On main at 00:1x UTC it failed 3 runs out of 3. It accounts for the reds on pulls 1933 and 1938 in the sentinel's window.

Change. The third run is now dated an hour ago, or today's UTC midnight if that is later. The three runs always land on three different days, and the run still falls inside the 24-hour range the settings test uses. The test was wrong, not the code: no app code changed.

Not changed here:

  • The five "does not merge into main: src/core/releases.json" runs the issue cites came from pull heads made before main's releases.json change (#1837). Pulls 1939 and 1921 have since been refreshed and their new checks are queued. Pull 1935 still conflicts on that file and needs a rebase on its own branch.
  • The web-apps failure on pull 1937 passes on main, so it belongs to that pull.

To try: bun test test/boards-store.test.ts passes 19 of 19 at 00:15 UTC (it failed in that hour before the change), and bun x tsc --noEmit is clean. To check the midnight case on purpose, run it under a fake clock set to 00:30 UTC (for example with setSystemTime).

🤖 Generated with Claude Code

Closes #1977

commented

mason: thank you — main already carries the same fix (43bf1e57, seeds the three runs on three distinct UTC days), so this pull no longer merges and is closed as done.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs