From 4917222049cd211e73225c94c01ea89afd0ed9cf Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Sun, 8 Nov 2026 14:37:41 +0900 Subject: [PATCH] =?UTF-8?q?test(removal):=20=EC=A0=9C=EA=B1=B0=20=EC=82=AC?= =?UTF-8?q?=EB=B3=B8=EC=97=90=EC=84=9C=EB=8F=84=20=EB=82=A8=EB=8A=94=20?= =?UTF-8?q?=EB=AA=85=EB=A0=B9=EC=9C=BC=EB=A1=9C=20CI=20=EA=B3=84=EC=95=BD?= =?UTF-8?q?=20=EC=A0=95=EB=A6=AC=EB=A5=BC=20=EC=8B=9C=ED=97=98=ED=95=9C?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit removal-fixture.test.ts는 선택 recipe 제거 사본 안에서도 돈다. 정리 대상으로 고른 test:recipes가 그 사본에는 이미 없어 FE-GATE-020이 실패했다. 어느 제거 사본에도 남는 test:integration과 그 산출물로 바꿨다. --- tests/unit/removal-fixture.test.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/unit/removal-fixture.test.ts b/tests/unit/removal-fixture.test.ts index dbed9016..d9c54fce 100644 --- a/tests/unit/removal-fixture.test.ts +++ b/tests/unit/removal-fixture.test.ts @@ -75,19 +75,21 @@ async function copyCiContract(prefix: string): Promise { it("prunes removed command and evidence references and re-baselines the contract", async () => { const root = await copyCiContract("removal-fixture-contract-"); - // A command with evidence of its own, as a removed sample's tests had. + // A command with evidence of its own, as a removed sample's tests had. Not + // one a removal drill deletes: this test also runs inside those copies + // (test:recipes is gone in the optional-recipe removal copy). await pruneRemovalFixtureCiContract({ root, - removedScripts: new Set(["test:recipes"]), - removedEvidencePathFragments: ["optional-recipes.xml"], + removedScripts: new Set(["test:integration"]), + removedEvidencePathFragments: ["integration.xml"], }); const contract = await loadCiGateContract(root); - expect(contract.commands.some(({ script }) => script === "test:recipes")).toBe(false); - expect(contract.artifacts.some(({ path }) => path.includes("optional-recipes.xml"))).toBe(false); - expect(contract.gates.some(({ commandIds }) => commandIds.includes("test-recipes"))).toBe(false); + expect(contract.commands.some(({ script }) => script === "test:integration")).toBe(false); + expect(contract.artifacts.some(({ path }) => path.includes("integration.xml"))).toBe(false); + expect(contract.gates.some(({ commandIds }) => commandIds.includes("test-integration"))).toBe(false); expect(contract.gates.some(({ evidenceArtifactIds }) => - evidenceArtifactIds.includes("artifact-artifacts-tests-optional-recipes-xml") + evidenceArtifactIds.includes("artifact-artifacts-tests-integration-xml") )).toBe(false); const baseline = JSON.parse( await readFile(path.join(root, "config/ci/contract-baseline.json"), "utf8"),