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 #2355
mason/forge:mason/1977-sentinel-the-check-in-trevato-forge-has → main 1 commit fork
1 file
changed +3
−1
test/boards-store.test.ts +3 −1
| @@ -62,7 +62,9 @@ beforeAll(async () => { | ||
| 62 | 62 | const ins = app.db.prepare("INSERT INTO run (id, repo_id, kind, state, turns, created_at) VALUES (?, 'rb', ?, ?, ?, ?)"); |
| 63 | 63 | ins.run("a", "agent", "ok", 2, new Date(Date.now() - 86_400_000 * 2).toISOString()); |
| 64 | 64 | ins.run("b", "deploy", "failed", 3, new Date(Date.now() - 86_400_000).toISOString()); |
| 65 | ins.run("c", "check", "ok", 5, new Date(Date.now() - 3_600_000).toISOString()); | |
| 65 | // an hour ago, but never before today's UTC midnight: three runs, three distinct days at any hour | |
| 66 | const today = new Date().setUTCHours(0, 0, 0, 0); | |
| 67 | ins.run("c", "check", "ok", 5, new Date(Math.max(Date.now() - 3_600_000, today)).toISOString()); | |
| 66 | 68 | }); |
| 67 | 69 | |
| 68 | 70 | afterAll(async () => { |
new above
offline