diff --git a/config/repository-layout.json b/config/repository-layout.json index b55a7431..7c55b5fe 100644 --- a/config/repository-layout.json +++ b/config/repository-layout.json @@ -18,7 +18,7 @@ "vite-build": "vite build가 읽는 입력(scripts/lib/vite-build-inputs.ts)", "typescript-only": "JS 파일을 두면 안 되는 곳(scripts/check-architecture.ts)", "checkout-copy-skip": "저장소 전체를 임시 폴더로 복사하는 시험이 건너뛰는 항목(tests/e2e/support/fixture-builds.ts, tests/e2e/support/service-worker-builds.ts, tests/unit/run-output-root-build.test.ts)", - "provider-fixture-skip": "provider 업로드 시험의 기준 fixture가 복사하지 않는 항목(tests/system/ci-runner/ci-artifact-contract.test.ts)", + "provider-fixture-skip": "provider 업로드 시험의 기준 fixture가 복사하지 않는 항목과 경로. .claude는 다른 worktree만 건너뛴다(tests/system/ci-runner/ci-artifact-contract.test.ts)", "supply-chain-fixture-skip": "공급망 provider fixture가 복사하지 않는 항목. artifacts는 따로 복사한다(scripts/check-supply-chain-provider-fixtures.ts, tests/integration/security-followup-archive.test.ts)", "fixture-code": "사본을 만들고 node_modules를 잇는 코드가 있는 곳. linkFixtureNodeModules 규칙을 보는 범위(scripts/check-adapter-inventory.ts, tests/unit/fixture-node-modules.test.ts)", "package-manifest": "pnpm 설치를 정하는 매니페스트(tests/unit/fixture-node-modules.test.ts)", @@ -36,7 +36,10 @@ "kind": "tool-convention", "role": "Claude Code 설정·규칙·스킬·서브에이전트", "readBy": "Claude Code", - "sets": ["checkout-copy-skip", "provider-fixture-skip", "agent-harness"] + "sets": ["checkout-copy-skip", "agent-harness"], + "setPaths": { + "provider-fixture-skip": [".claude/worktrees"] + } }, { "path": ".dependency-cruiser.json", diff --git a/tests/system/ci-runner/ci-artifact-contract.test.ts b/tests/system/ci-runner/ci-artifact-contract.test.ts index c7f91a52..3d400a38 100644 --- a/tests/system/ci-runner/ci-artifact-contract.test.ts +++ b/tests/system/ci-runner/ci-artifact-contract.test.ts @@ -2231,7 +2231,10 @@ async function createProviderFixture() { * removal-drill fixtures, each with its own node_modules; copying them filled * every /tmp/ci-provider-upload-* root with those trees, and the suite failed * 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. + * so the candidate's tracked-file inventory does not miss them. The rest of + * `.claude/` is tracked and copied: the fixture keeps `.git`, and supply-chain + * generation lstat()s every tracked file, so skipping all of `.claude` failed + * every finalizer test with ENOENT once `.claude/` had tracked files. */ const PROVIDER_BASE_FIXTURE_UNCOPIED_ENTRIES: readonly string[] = selectRepositoryPaths("provider-fixture-skip"); @@ -2244,8 +2247,10 @@ async function ensureProviderBaseFixture(): Promise { filter: (source) => { const relative = path.relative(sourceRoot, source); if (!relative) return true; - const first = relative.split(path.sep)[0]; - return !PROVIDER_BASE_FIXTURE_UNCOPIED_ENTRIES.includes(first ?? ""); + const entry = relative.split(path.sep).join("/"); + return !PROVIDER_BASE_FIXTURE_UNCOPIED_ENTRIES.some( + (skipped) => entry === skipped || entry.startsWith(`${skipped}/`), + ); }, }); // The release evidence, minus the trace and Storybook trees. Copying the