diff --git a/config/ci/gates.json b/config/ci/gates.json index 233bc9d9..63e1cfdb 100644 --- a/config/ci/gates.json +++ b/config/ci/gates.json @@ -995,6 +995,12 @@ "schemaId": "markdown", "production": "source-controlled" }, + { + "id": "artifact-docs-accessibility-route-reviews-EXAMPLES-PLATFORM-md", + "path": "docs/accessibility/route-reviews/EXAMPLES_PLATFORM.md", + "schemaId": "markdown", + "production": "source-controlled" + }, { "id": "artifact-docs-accessibility-route-reviews-NOT-FOUND-md", "path": "docs/accessibility/route-reviews/NOT_FOUND.md", @@ -1990,6 +1996,7 @@ "logArtifactId": "artifact-artifacts-quality-gates-FE-GATE-028-txt", "evidenceArtifactIds": [ "artifact-docs-accessibility-route-reviews-APP-HOME-md", + "artifact-docs-accessibility-route-reviews-EXAMPLES-PLATFORM-md", "artifact-docs-accessibility-route-reviews-NOT-FOUND-md", "artifact-artifacts-tests-a11y-manual-report-json" ], diff --git a/tests/unit/ci-workflow-generation.test.ts b/tests/unit/ci-workflow-generation.test.ts index 3f97be55..6374d95b 100644 --- a/tests/unit/ci-workflow-generation.test.ts +++ b/tests/unit/ci-workflow-generation.test.ts @@ -29,6 +29,7 @@ import { validatePackageScriptGraph, } from "../../scripts/lib/package-script-graph.ts"; import { VISUAL_TEST_FONT_PACKAGES } from "../../scripts/lib/visual-test-fonts.ts"; +import { PLATFORM_ROUTE_REGISTRY } from "../../src/contracts/routes.ts"; import { childProcessTimeout } from "../helpers/child-process-timeout.ts"; const temporaryRoots: string[] = []; @@ -240,6 +241,24 @@ describe("CI gate contract", () => { expect(stageOf("FE-GATE-028")).toBe("release"); }); + it("keeps every platform route's signed review record as FE-GATE-028 evidence (1112/05-18)", async () => { + // The evidence list is written by hand. EXAMPLES_PLATFORM's record was + // missing from it while the review covers every registered route. A + // feature's routes come from create:feature, which does not edit this + // contract, so the check holds the platform routes. + const contract = await loadCiGateContract(process.cwd()); + const index = indexCiGateContract(contract); + const recorded = (index.gates.get("FE-GATE-028")?.evidenceArtifactIds ?? []) + .map((id) => index.artifacts.get(id)?.path ?? "") + .filter((evidencePath) => evidencePath.startsWith("docs/accessibility/route-reviews/")) + .sort(); + expect(recorded).toEqual( + Object.keys(PLATFORM_ROUTE_REGISTRY) + .map((routeId) => `docs/accessibility/route-reviews/${routeId}.md`) + .sort(), + ); + }); + it("runs the CPU-independent scale PR tier in a merge gate (11-03)", async () => { const contract = await loadCiGateContract(process.cwd()); const index = indexCiGateContract(contract);