From c02418295171b8fc0026d5f757a18c0245035046 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Sun, 1 Nov 2026 19:05:03 +0900 Subject: [PATCH] =?UTF-8?q?test(system):=20exact-five=20CLI=EC=9D=98=20cur?= =?UTF-8?q?rent=20=EB=AA=A8=EB=93=9C=20PASS=20=EB=AC=B8=EA=B5=AC=EB=A5=BC?= =?UTF-8?q?=20=EA=B8=B0=EB=8C=80=ED=95=9C=EB=8B=A4=20(0929/11-01)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 문제: 13-04(839205c)가 `verify-exact-promotion-bundle.ts`에 `--archived` 모드를 넣으면서 성공 출력이 `Exact promotion bundle verification (): PASS`로 바뀌었다. "passes the downstream CLI for a real finalized exact-five" 테스트는 옛 문구 `Exact promotion bundle verification: PASS`를 기대해서 항상 실패하고, FE-GATE-013(`test:system`)이 코드와 무관하게 빨갛다. 고른 방법: 기대 문구를 `... (current): PASS` 전체로 바꿨다. 이 테스트는 `--archived` 없이 CLI를 부른다. `(current)`는 "기본 모드는 지금 시각 기준으로 freshness를 판정한다"는 주장의 일부다. repo에서 CLI의 기본 모드를 확인하는 테스트는 이것 하나다. 버린 대안: `/verification .*: PASS/`처럼 PASS만 본다. 문구 변경에는 강하지만 기본 모드가 `archived`(기록된 승격 시각 기준, 더 느슨한 판정)로 바뀌어도 통과한다. 출력 문구가 다시 바뀌면 이 테스트가 같이 바뀌어야 하는 편이 낫다고 판단했다. 위험·한계: 이 테스트는 base fixture가 `corepack pnpm build:release-candidate`를 부르므로 worktree에서 실행하지 않았다. 메인 checkout의 `test:system`에서 확인해야 한다. 검증: - RED: 게이트 로그 test_system.log(d99301b, 메인 checkout 실행)에서 `:1259:27` 실패. Expected `Exact promotion bundle verification: PASS`, Received `Exact promotion bundle verification (current): PASS`. d99301b..402e1db 사이 scripts·tests/system 변경 없음. - 새 기대 문구가 그 Received 줄과 글자 그대로 같다 (`grep -F` 1건 일치). - `npx tsc --project tsconfig.test.json --noEmit` 통과. `npx eslint tests/system/ci-runner/ci-artifact-contract.test.ts` 통과. Fixes: 839205c13402 ("feat(release): re-verify a promoted release in archived mode (13-04)") Refs: docs/reviews/2026-09-29-maturity-review/11-tests-browser-release-scale.md 11-01 --- tests/system/ci-runner/ci-artifact-contract.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/system/ci-runner/ci-artifact-contract.test.ts b/tests/system/ci-runner/ci-artifact-contract.test.ts index f74bf8b2..09611290 100644 --- a/tests/system/ci-runner/ci-artifact-contract.test.ts +++ b/tests/system/ci-runner/ci-artifact-contract.test.ts @@ -1260,7 +1260,9 @@ describe("verified promotion finalizer", () => { ); expect(result.error).toBeUndefined(); expect(result.status, result.stderr).toBe(0); - expect(result.stdout).toContain("Exact promotion bundle verification: PASS"); + // `(current)` is part of the claim: run without `--archived`, the CLI must + // judge freshness against now, not against the recorded promotion time. + expect(result.stdout).toContain("Exact promotion bundle verification (current): PASS"); await cleanupFinalizedPromotion(finalizedCleanup(fixture, finalized)); }, 30_000);