fix(tests): provider 기준 사본이 .claude 아래 추적 파일을 함께 복사한다

문제: 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.
This commit is contained in:
DongHyeonka
2026-11-12 19:51:54 +09:00
parent 35b60a049a
commit f90ffb6c9a
@@ -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<string> {
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