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

keeper-stuck, keeper-rebase-loop and keeper-lull are green on main once the duty roster is built on first ask #17299

opened this

Merged 35h 27m ago, live in production

mason/forge:mason/17270-keeper-stuck-keeper-rebase-loop-and-keep → main 0 commits fork

  • Merged. mason/17270-keeper-stuck-keeper-rebase-loop-and-keep was merged into main as 73af9d7.

Review

Sign in to review this change.
1 file changed +6 −3
test/helpers/keeper-seed.ts +6 −3
@@ -4,6 +4,7 @@ import { mkdtemp } from "node:fs/promises";
44 import { tmpdir } from "node:os";
55 import { join } from "node:path";
66 import { createApp, type App } from "../../src/app.ts";
7 import { flowKeeper, type Deps } from "../../src/maintain/duties/flow_keeper.ts";
78
89 export const ago = (now: Date, minutes: number): string => new Date(now.getTime() - minutes * 60_000).toISOString();
910
@@ -78,9 +79,11 @@ export async function seed(names: string[] = ["ada", "bo"]): Promise<Seed> {
7879 };
7980 }
8081
81 /** One keeper run over the seed. */
82 export async function runKeeper(s: Seed, now: Date, deps: import("../../src/maintain/duties/flow_keeper.ts").Deps & { withApp?: boolean } = {}) {
83 const { flowKeeper } = await import("../../src/maintain/duties/flow_keeper.ts");
82 /**
83 * One keeper run over the seed. The keeper is imported at the top, so the duty graph loads with the
84 * file and not inside the first test's timeout (#17270).
85 */
86 export async function runKeeper(s: Seed, now: Date, deps: Deps & { withApp?: boolean } = {}) {
8487 const { withApp, ...rest } = deps;
8588 return flowKeeper({ builders: () => undefined, ...(rest.vantages === undefined && !withApp ? { vantages: () => [] } : {}), ...rest }).run({ db: s.db, bus: s.app.bus, now, ...(withApp ? { app: s.app } : {}) });
8689 }

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs