diff --git a/pkgs/github-ci/worker/src/policy.ts b/pkgs/github-ci/worker/src/policy.ts index a5f13f607e..77df036379 100644 --- a/pkgs/github-ci/worker/src/policy.ts +++ b/pkgs/github-ci/worker/src/policy.ts @@ -4,10 +4,17 @@ * #5693 dual-run diff period. */ export const FLEET_REPOS = new Set([ + // The Edge Function's set (v8), kept verbatim for parity: "developing-today/code", "developing-today/opencode", "developing-today/openchamber", "dezren39/nix", + // The slugs fleet-fetch actually snapshots (the EF set names the + // pre-fork / pre-rename slugs, so its push handling never fired + // for these; the union makes the snapshot advance real, #5693): + "developing-today-forks/opencode", + "developing-today-forks/openchamber", + "dezren39/darwin-nix", ]); export interface RunRow { diff --git a/pkgs/github-ci/worker/test/policy.test.ts b/pkgs/github-ci/worker/test/policy.test.ts index 3a1af721b6..49e8e940eb 100644 --- a/pkgs/github-ci/worker/test/policy.test.ts +++ b/pkgs/github-ci/worker/test/policy.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from "vitest"; -import { buildRunRow, dedupeKey, skipReason } from "../src/policy"; +import { FLEET_REPOS, buildRunRow, dedupeKey, skipReason } from "../src/policy"; const failurePayload = { action: "completed", @@ -20,6 +20,13 @@ const failurePayload = { repository: { full_name: "developing-today/code" }, }; +describe("fleet repos", () => { + it("covers the EF set and the fleet-fetch snapshot slugs", () => { + for (const r of ["developing-today/code", "developing-today/opencode", "developing-today/openchamber", "dezren39/nix", "developing-today-forks/opencode", "developing-today-forks/openchamber", "dezren39/darwin-nix"]) expect(FLEET_REPOS.has(r)).toBe(true); + expect(FLEET_REPOS.has("developing-today/other")).toBe(false); + }); +}); + describe("v4 ingest policy", () => { it("stores completed non-skipped runs only", () => { expect(skipReason("completed", "success")).toBeNull();