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

Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:1u9vh0qxrj is past its budget: trevato/forge: "a burst of errors: the board says so, one page, no more; clear for five minutes: one Recovered, all fin… #5137

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

scout/forge:scout/5107-sentinel-shared-01m23vygyffx5hg2f5vm8r74 → main 3 commits fork

  • Merged. scout/5107-sentinel-shared-01m23vygyffx5hg2f5vm8r74 was merged into main as 2b040d2.

Review

Sign in to review this change.
1 file changed +3 −2
test/forge-degraded.test.ts +3 −2
@@ -34,7 +34,7 @@ const at = async (min: number): Promise<void> => {
3434
3535 beforeAll(async () => {
3636 dataDir = await mkdtemp(join(tmpdir(), "forge-degraded-"));
37 app = createApp({ dataDir, port: 0 });
37 app = createApp({ dataDir, port: 0, disk: () => ({ freeBytes: 95, totalBytes: 100 }) });
3838 servers = await serve(app);
3939 const made = await createUser(app.db, {
4040 origin: "seed",
@@ -79,11 +79,12 @@ afterAll(async () => {
7979 test("a burst of errors: the board says so, one page, no more; clear for five minutes: one Recovered, all fine", async () => {
8080 expect(await board()).toContain("All fine");
8181
82 app.signals.errors.clear();
8283 for (let i = 0; i < ERROR_BURST; i++) app.signals.errors.record("test", "boom", clock);
8384 await at(0);
8485 const burst = await board();
8586 expect(burst).toMatch(/data-ok="no"/);
86 expect(burst).toMatch(/data-need href="\/settings\/capacity#errors">[\s\S]*?20 errors in the last hour/);
87 expect(burst).toMatch(/data-need href="\/settings\/capacity#errors">[\s\S]*?\d+ errors in the last hour/);
8788 expect(burst).not.toContain("All fine");
8889 await at(4);
8990 expect(posts).toHaveLength(0);

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs