test(system): exact-five CLI의 current 모드 PASS 문구를 기대한다 (0929/11-01)
문제: 13-04(839205c)가 `verify-exact-promotion-bundle.ts`에 `--archived` 모드를 넣으면서 성공 출력이 `Exact promotion bundle verification (<freshness>): 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:839205c134("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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user