fix(ci): gating 검사가 Vitest 경로의 *.spec 파일을 게이트 안으로 세지 않는다 #35

Closed
donghyeon.kang wants to merge 0 commits from donghyeon.kang/fix/ungated-vitest-spec AGit into main
Owner

무엇을, 왜

check:ci:gating(FE-GATE-029)이 *.test.*와 *.spec.*를 모두 모은 뒤 게이트 명령이 닿는 경로 접두어만 본다. tests/unit/x.spec.ts는 「게이트 안」으로 세지만 vitest.config.ts는 *.test.{ts,tsx}만 모아 아무 게이트도 그 파일을 돌리지 않는다(round9 이월 0929/12-06).

고른 방법과 버린 대안

  • 경로마다 runner를 함께 적는다(gatedTestTargets). Vitest 경로는 *.test.*만, Playwright testDir는 기본 testMatch처럼 *.spec.*와 *.test.*를 게이트 안으로 본다.
  • gatedTestPaths(경로만)는 다른 호출자를 위해 그대로 둔다. 판정 함수는 문자열을 받으면 Vitest 경로로 본다.
  • 버린 대안: 모든 경로에서 *.spec.*를 빼기. Playwright testDir의 spec이 「게이트 밖」이 된다.

위험과 영향

  • 지금 저장소에는 해당 파일이 없다(main 단계 check:ci:gating PASS 그대로).
  • Playwright 설정이 testMatch를 좁혀도 그 testDir의 두 꼴을 모두 게이트 안으로 본다(예전과 같다).

검증

  • 새 시험: 판정 규칙을 빼는 변이에서 실패(RED), 고친 뒤 통과.
  • desktop: ungated-tests·ungated-scripts·test-all-paths·removal-drill-test-paths 29개 통과, 실제 check:ci:gating PASS, tests/unit/probe.spec.ts를 두면 그 파일 이름으로 rc=1(완료 기준), eslint·check:types rc=0. 로그 /tmp/claude-gates/w2fe2-ung3/.

리뷰어가 볼 곳

  • scripts/lib/ungated-tests.ts의 gatedTestTargets와 ungatedTestFailures.

관련

  • round9 리뷰(PR #23) 이월 0929/12-06.
## 무엇을, 왜 `check:ci:gating`(FE-GATE-029)이 `*.test.*`와 `*.spec.*`를 모두 모은 뒤 게이트 명령이 닿는 경로 접두어만 본다. `tests/unit/x.spec.ts`는 「게이트 안」으로 세지만 vitest.config.ts는 `*.test.{ts,tsx}`만 모아 아무 게이트도 그 파일을 돌리지 않는다(round9 이월 0929/12-06). ## 고른 방법과 버린 대안 - 경로마다 runner를 함께 적는다(`gatedTestTargets`). Vitest 경로는 `*.test.*`만, Playwright `testDir`는 기본 testMatch처럼 `*.spec.*`와 `*.test.*`를 게이트 안으로 본다. - `gatedTestPaths`(경로만)는 다른 호출자를 위해 그대로 둔다. 판정 함수는 문자열을 받으면 Vitest 경로로 본다. - 버린 대안: 모든 경로에서 `*.spec.*`를 빼기. Playwright testDir의 spec이 「게이트 밖」이 된다. ## 위험과 영향 - 지금 저장소에는 해당 파일이 없다(main 단계 `check:ci:gating` PASS 그대로). - Playwright 설정이 testMatch를 좁혀도 그 testDir의 두 꼴을 모두 게이트 안으로 본다(예전과 같다). ## 검증 - 새 시험: 판정 규칙을 빼는 변이에서 실패(RED), 고친 뒤 통과. - desktop: `ungated-tests`·`ungated-scripts`·`test-all-paths`·`removal-drill-test-paths` 29개 통과, 실제 `check:ci:gating` PASS, `tests/unit/probe.spec.ts`를 두면 그 파일 이름으로 rc=1(완료 기준), eslint·`check:types` rc=0. 로그 `/tmp/claude-gates/w2fe2-ung3/`. ## 리뷰어가 볼 곳 - `scripts/lib/ungated-tests.ts`의 `gatedTestTargets`와 `ungatedTestFailures`. ## 관련 - round9 리뷰(PR #23) 이월 0929/12-06.
donghyeon.kang added 1 commit 2026-11-12 19:59:47 +00:00
fix(ci): gating 검사가 Vitest 경로의 *.spec 파일을 게이트 안으로 세지 않는다
frontend-quality-gates / merge / static checks (pull_request) Canceled after 0s
frontend-quality-gates / merge / tests (pull_request) Canceled after 0s
frontend-quality-gates / merge / browser tests (pull_request) Canceled after 0s
frontend-quality-gates / FE-GATE-014 / config-compatibility (pull_request) Canceled after 0s
frontend-quality-gates / FE-GATE-026 / lab-performance (pull_request) Canceled after 0s
frontend-quality-gates / FE-GATE-028 / manual-accessibility-review (pull_request) Canceled after 0s
frontend-quality-gates / FE-GATE-015 / immutable-release-candidate (pull_request) Canceled after 0s
frontend-quality-gates / external-vulnerability-provider (pull_request) Canceled after 0s
frontend-quality-gates / external-provenance-provider (pull_request) Canceled after 0s
frontend-quality-gates / promote-verified-immutable-candidate (pull_request) Canceled after 0s
frontend-quality-gates / deploy-promoted-release (pull_request) Canceled after 0s
frontend-quality-gates / FE-GATE-019 / hosting-header (pull_request) Canceled after 0s
frontend-quality-gates / FE-GATE-021 / runbook-boot-config (pull_request) Canceled after 0s
frontend-quality-gates / FE-GATE-022 / runbook-chunk-mismatch (pull_request) Canceled after 0s
frontend-quality-gates / FE-GATE-023 / runbook-api-degradation (pull_request) Canceled after 0s
frontend-quality-gates / FE-GATE-024 / runbook-telemetry (pull_request) Canceled after 0s
frontend-quality-gates / FE-GATE-025 / runbook-release-rollback (pull_request) Canceled after 0s
frontend-quality-gates / FE-GATE-018 / field-web-vitals (pull_request) Canceled after 0s
frontend-quality-gates / FE-GATE-017 / diagram-review (pull_request) Canceled after 0s
frontend-quality-gates / main / self-tests and removal drills (pull_request) Canceled after 0s
d838be543e
문제: `check:ci:gating`(FE-GATE-029)은 `*.test.*`와 `*.spec.*`를 모두 모은 뒤
게이트 명령이 닿는 경로 접두어만 본다. 그래서 `tests/unit/x.spec.ts`는
「게이트 안」으로 세지만 vitest.config.ts는 `*.test.{ts,tsx}`만 모아 아무
게이트도 그 파일을 돌리지 않는다.

고른 방법: 경로마다 그 경로를 돌리는 runner를 함께 적는다
(`gatedTestTargets`: Vitest 경로와 Playwright `testDir`). Vitest 경로는
`*.test.*`만, Playwright `testDir`는 기본 testMatch처럼 `*.spec.*`와
`*.test.*`를 게이트 안으로 본다. 판정(`ungatedTestFailures`)은 이 목록을
받고, 문자열만 주면 Vitest 경로로 본다. `gatedTestPaths`(경로만)는 다른
호출자를 위해 그대로 둔다.

위험·한계: Playwright 설정이 testMatch를 좁혀도 그 testDir의 두 꼴을 모두
게이트 안으로 본다(예전과 같다).

검증(desktop): 새 시험이 판정 규칙을 빼는 변이에서 실패(RED), 고친 뒤
ungated-tests·ungated-scripts·test-all-paths·removal-drill-test-paths 29개
통과, 실제 `check:ci:gating` PASS, `tests/unit/probe.spec.ts`를 두면 그
파일 이름으로 rc=1, eslint·check:types rc=0. 로그
/tmp/claude-gates/w2fe2-ung3/.

Refs: 0929/12-06
Author
Owner

#40으로 병합됐다(main ee47480c). 이 PR의 head d838be54가 #40 브랜치에 merge 커밋으로 들어 있고, #40의 runner merge job 셋이 그 합친 트리로 초록이었다. runner 대기를 줄이려고 이번만 쓴 방식이다(소유자 승인, 2026-11-13).

#40으로 병합됐다(main `ee47480c`). 이 PR의 head `d838be54`가 #40 브랜치에 merge 커밋으로 들어 있고, #40의 runner merge job 셋이 그 합친 트리로 초록이었다. runner 대기를 줄이려고 이번만 쓴 방식이다(소유자 승인, 2026-11-13).
donghyeon.kang closed this pull request 2026-11-12 23:43:45 +00:00

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: donghyeon.kang/clean-architecture-frontend-template#35