From f14ff71c9b8c570947abe28c29c2d260ab6bdaa0 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Thu, 12 Nov 2026 12:50:28 +0900 Subject: [PATCH] =?UTF-8?q?fix(test):=20=EB=82=A1=EC=9D=80=20=EA=B2=80?= =?UTF-8?q?=EC=82=AC=20=EB=91=98=EC=9D=84=20=EC=A7=80=EA=B8=88=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=EC=97=90=20=EB=A7=9E=EC=B6=98=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 앞 단계 시험이 실패해 가려져 있던 실패 둘이다. 둘 다 main에서도 같다. - request-fanout(아키텍처 시험)이 collect-catalog.ts의 반복 안 gateway.getCatalog()를 행마다 요청하는 N+1로 잡는다. 이것은 다음 요청이 앞 응답의 nextCursor에 기대는 커서 페이지 넘기기라 묶을 수 없다. 검사기가 정한 방식대로 그 줄에 `// fanout-reviewed: <이유>`를 단다. - release-manifest 시험이 TechLog Studio 계약 버전을 3.0.0으로 기대한다. 계약(contracts/studio/canonical-source.json)은 3.1.0이다. 시험은 일부러 값을 글자 그대로 두는 설계라 그 값을 3.1.0으로 맞춘다. 검증: 두 시험 파일이 통과한다(고치기 전 각 1건 실패, main에서도 같음). --- src/features/tech-log/application/collect-catalog.ts | 2 +- tests/runtime-schema/release-manifest.test.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/features/tech-log/application/collect-catalog.ts b/src/features/tech-log/application/collect-catalog.ts index d284639..0a71f24 100644 --- a/src/features/tech-log/application/collect-catalog.ts +++ b/src/features/tech-log/application/collect-catalog.ts @@ -27,7 +27,7 @@ export async function collectCatalog( const items: CatalogPage["items"][number][] = []; let cursor: string | undefined; for (let page = 0; page < MAX_PAGES; page += 1) { - const result: CatalogPage = await gateway.getCatalog( + const result: CatalogPage = await gateway.getCatalog( // fanout-reviewed: cursor pagination; each page needs the previous page's nextCursor, so the calls cannot be batched { ...query, limit: PAGE_SIZE, ...(cursor === undefined ? {} : { cursor }) }, options, ); diff --git a/tests/runtime-schema/release-manifest.test.ts b/tests/runtime-schema/release-manifest.test.ts index ff2a1c1..0b13768 100644 --- a/tests/runtime-schema/release-manifest.test.ts +++ b/tests/runtime-schema/release-manifest.test.ts @@ -114,7 +114,9 @@ describe("expected contract set composition", () => { (entry) => entry.packageId === "@tech-log/studio-contract", ); expect(techLog).toBeTruthy(); - expect(techLog?.version).toBe("3.0.0"); + // src/features/tech-log/contracts/studio/canonical-source.json (3.1.0 since + // the Studio contract gained project publication and home ordering). + expect(techLog?.version).toBe("3.1.0"); }); });