From f90ffb6c9a03e369f0a12f3f8bf8ea9462727597 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Thu, 12 Nov 2026 19:51:54 +0900 Subject: [PATCH] =?UTF-8?q?fix(tests):=20provider=20=EA=B8=B0=EC=A4=80=20?= =?UTF-8?q?=EC=82=AC=EB=B3=B8=EC=9D=B4=20.claude=20=EC=95=84=EB=9E=98=20?= =?UTF-8?q?=EC=B6=94=EC=A0=81=20=ED=8C=8C=EC=9D=BC=EC=9D=84=20=ED=95=A8?= =?UTF-8?q?=EA=BB=98=20=EB=B3=B5=EC=82=AC=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 문제: tests/system의 provider 기준 사본은 `.git`을 함께 복사하면서 `.claude` 폴더를 통째로 뺀다(노트북 checkout의 `.claude/worktrees/`를 피하려고). 2026-11-08 하네스가 `.claude/` 아래에 agents·rules·skills를 추적 파일로 더한 뒤로, 사본의 `git ls-files`가 그 파일을 말하는데 디스크에 없어 공급망 생성이 `ENOENT ... .claude/agents/arch-reviewer.md`로 멈춘다. FE-GATE-013이 어디서도 끝까지 돈 적이 없어(runner는 사전 점검, desktop은 userns에서 멈춤) 드러나지 않았다. 시스템 컨테이너에서 처음 끝까지 돌자 provider 시험 18개가 이것으로 실패했다. 고른 방법: 빼는 것을 저장소 루트 기준 경로로 바꾸고 `.claude` 대신 `.claude/worktrees`만 뺀다. `.git`을 복사하지 않는 다른 빌드 사본 (e2e fixture-builds·service-worker-builds, run-output-root-build)은 그대로 둔다. 위험·한계: 다른 checkout을 품는 새 폴더가 생기면 이 목록에 더해야 한다. 검증: desktop 묶음(w2fe-p4)에서 scripts/verify.sh gate FE-GATE-013. --- .../system/ci-runner/ci-artifact-contract.test.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/system/ci-runner/ci-artifact-contract.test.ts b/tests/system/ci-runner/ci-artifact-contract.test.ts index 3aa99b33..4bdff407 100644 --- a/tests/system/ci-runner/ci-artifact-contract.test.ts +++ b/tests/system/ci-runner/ci-artifact-contract.test.ts @@ -2232,12 +2232,16 @@ async function createProviderFixture() { * with timeouts and ENOTEMPTY clean-ups (1103/11-04). None of them is tracked, * so the candidate's tracked-file inventory does not miss them. */ -const PROVIDER_BASE_FIXTURE_UNCOPIED_ENTRIES: readonly string[] = Object.freeze([ +// Paths from the repository root. The copy keeps `.git`, so a tracked file +// left out of it is a file `git ls-files` names and the supply-chain +// inventory cannot open: `.claude/` holds tracked agents, rules and skills +// since the harness (2026-11-08), and only its nested worktrees stay behind. +const PROVIDER_BASE_FIXTURE_UNCOPIED_PATHS: readonly string[] = Object.freeze([ ".release", "artifacts", "dist", "node_modules", - ".claude", + ".claude/worktrees", ".worktrees", ".tmp", "graphify-out", @@ -2250,10 +2254,11 @@ async function ensureProviderBaseFixture(): Promise { await cp(sourceRoot, root, { recursive: true, filter: (source) => { - const relative = path.relative(sourceRoot, source); + const relative = path.relative(sourceRoot, source).split(path.sep).join("/"); if (!relative) return true; - const first = relative.split(path.sep)[0]; - return !PROVIDER_BASE_FIXTURE_UNCOPIED_ENTRIES.includes(first ?? ""); + return !PROVIDER_BASE_FIXTURE_UNCOPIED_PATHS.some( + (uncopied) => relative === uncopied || relative.startsWith(`${uncopied}/`), + ); }, }); // The release evidence, minus the trace and Storybook trees. Copying the