문제: 프론트 PR 실행 p50이 17.7분으로 15분 목표를 넘고, 기능·scaffold 제거 드릴 FE-GATE-020이 PR 대부분(34건 중 25건)에서 돌아 약 6분을 차지한다. CI-X-0002 (다) 결정에 따라 FE-GATE-020을 merge 단계에서 main 단계로 옮긴다. 고른 방법과 버린 대안: - config/ci/gates.json, scripts/contracts/ci-gates.ts(expectedJobOwnership), scripts/lib/promotion-readiness.ts(MERGE_READY·MAIN_READY)에서 FE-GATE-020을 merge/merge_test에서 main/main_gate(FE-GATE-029 다음, FE-GATE-030 앞)로 옮기고 workflow와 스냅샷을 재생성한다. - scripts/lib/feature-scaffold-drill.ts는 되돌림 시 재귀를 막으려 자기 스크립트 (test:sample-removal·test:feature-scaffold)를 제외 목록에 남기되 merge 밖 stale 거절에서만 면제한다. 고른 드릴 명령 29개는 기존과 같다. - config/ci/pr-gate-selection.json의 accessibility-records·scaffold 줄에서 FE-GATE-020을 빼고, scaffold 줄은 되돌림과 계약 시험을 위해 남긴다. - 버린 대안: FE-GATE-020 전용 드릴 입력 목록(효과 미미·거짓 초록 위험), 제외 목록에서 자기 스크립트 삭제(되돌림 시 재귀·미사용 상수 발생). 위험·한계: - 기능·scaffold 드릴 회귀가 PR이 아니라 병합 뒤 main 빨강으로 드러나며, release·tag run과 RELEASE_READY도 FE-GATE-020을 요구하지 않는다. - .claude/skills/fe-structure/SKILL.md:53은 .claude/ 수정 금지 가드로 바꾸지 않았으며, 같은 안내는 docs/work/reference/gates.md에 반영했다. - 생성기·드릴·src/features·src/contexts 규칙을 바꾸는 PR은 scripts/verify.sh gate FE-GATE-020을 직접 돌린다. 검증: - C1 RED (트리 38592b2283d7): ci-workflow-generation rc=1, promotion-readiness rc=1 - C2 RED (트리 06a01260818a): feature-scaffold-drill rc=1 (outside the merge stage) - laptop-gate check:types, lint, verify:documentation, 단위 시험 7파일(538 passed) rc=0 - scripts/verify.sh docs rc=0, scripts/verify.sh hooks rc=0 (112 tests) Refs: CI-FE-0005
144 lines
4.0 KiB
JSON
144 lines
4.0 KiB
JSON
{
|
|
"$comment": "PR 경로표(design-docs ci/manual.md 4.3절). PR run의 merge 게이트를 바뀐 파일로 고른다. main·release run은 늘 전부 돈다. global 파일이나 어느 줄에도 안 걸리는 파일이 하나라도 바뀌면 전부 돈다. 파일마다 rules를 위에서부터 보고 처음 맞는 줄 하나의 게이트를 always에 더한다. 판정은 scripts/lib/pr-gate-selection.ts, 계약 시험은 tests/unit/pr-gate-selection.test.ts.",
|
|
"schemaVersion": 1,
|
|
"always": [
|
|
"FE-GATE-001",
|
|
"FE-GATE-002",
|
|
"FE-GATE-003",
|
|
"FE-GATE-010"
|
|
],
|
|
"global": [
|
|
".gitea/**",
|
|
".storybook/**",
|
|
"config/**",
|
|
"scripts/**",
|
|
"package.json",
|
|
"pnpm-lock.yaml",
|
|
"pnpm-workspace.yaml",
|
|
".env.example",
|
|
".nvmrc",
|
|
".npmrc",
|
|
".gitattributes",
|
|
".gitignore",
|
|
".dependency-cruiser.json",
|
|
"renovate.json",
|
|
"eslint.config.ts",
|
|
"vite.config.ts",
|
|
"vite.service-worker.config.ts",
|
|
"vitest.config.ts",
|
|
"playwright*.config.ts",
|
|
"tsconfig*.json"
|
|
],
|
|
"rules": [
|
|
{
|
|
"id": "accessibility-records",
|
|
"paths": [
|
|
"docs/accessibility/**"
|
|
],
|
|
"gates": [
|
|
"FE-GATE-005",
|
|
"FE-GATE-009"
|
|
]
|
|
},
|
|
{
|
|
"id": "documents",
|
|
"paths": [
|
|
"docs/**",
|
|
"**/*.md",
|
|
".claude/**"
|
|
],
|
|
"gates": [
|
|
"FE-GATE-005"
|
|
]
|
|
},
|
|
{
|
|
"id": "recipes",
|
|
"paths": [
|
|
"recipes/**"
|
|
],
|
|
"gates": [
|
|
"FE-GATE-005",
|
|
"FE-GATE-007",
|
|
"FE-GATE-012"
|
|
]
|
|
},
|
|
{
|
|
"id": "scaffold",
|
|
"paths": [
|
|
"src/features/**",
|
|
"src/contexts/**",
|
|
"src/adapters/http/index.ts",
|
|
"src/application/ports/in/application-api.ts",
|
|
"src/bootstrap/create-runtime-composition.ts",
|
|
"src/bootstrap/runtime-application.tsx",
|
|
"src/contracts/boundary-mapper.ts",
|
|
"src/contracts/deployment-admission.ts",
|
|
"src/contracts/errors.ts",
|
|
"src/contracts/external-contract-runtime.ts",
|
|
"src/contracts/mutation-intent.ts",
|
|
"src/contracts/query-invalidation.ts",
|
|
"src/contracts/query-keys.ts",
|
|
"src/contracts/result.ts",
|
|
"src/contracts/server-state.ts",
|
|
"src/contracts/zod-validator.ts",
|
|
"src/contracts/zod.ts",
|
|
"src/platform/telemetry/telemetry-port.ts",
|
|
"src/presentation/adapters/query/application-query.ts",
|
|
"src/presentation/adapters/query/server-state-scope-provider.tsx",
|
|
"src/presentation/design-system/index.ts",
|
|
"src/presentation/i18n/catalog.ts",
|
|
"src/presentation/i18n/index.ts",
|
|
"src/presentation/providers/application-provider.tsx",
|
|
"src/presentation/routes/route-codecs.ts",
|
|
"src/presentation/routes/route-input.tsx",
|
|
"tests/features/**",
|
|
"tests/mocks/**",
|
|
"tests/fixtures/typecheck/**",
|
|
"tests/component/router.test.tsx",
|
|
"tests/integration/http-execution-v3-observability.test.ts",
|
|
"tests/integration/http-scenario-catalog.test.ts",
|
|
"tests/unit/ci-workflow-generation.test.ts",
|
|
"tests/unit/external-contract-runtime.test.ts",
|
|
"tests/unit/http-execution-v3.test.ts",
|
|
"tests/unit/http-scenario-evidence.test.ts",
|
|
"tests/unit/removal-fixture.test.ts",
|
|
"tests/unit/runtime-adapters.test.ts",
|
|
"tests/unit/session-route-access.test.ts",
|
|
"tests/unit/__snapshots__/**"
|
|
],
|
|
"gates": [
|
|
"FE-GATE-004",
|
|
"FE-GATE-005",
|
|
"FE-GATE-006",
|
|
"FE-GATE-007",
|
|
"FE-GATE-008",
|
|
"FE-GATE-009",
|
|
"FE-GATE-011",
|
|
"FE-GATE-012",
|
|
"FE-GATE-013"
|
|
]
|
|
},
|
|
{
|
|
"id": "application",
|
|
"paths": [
|
|
"src/**",
|
|
"tests/**",
|
|
"public/**",
|
|
"artifacts/**",
|
|
"index.html"
|
|
],
|
|
"gates": [
|
|
"FE-GATE-004",
|
|
"FE-GATE-005",
|
|
"FE-GATE-006",
|
|
"FE-GATE-007",
|
|
"FE-GATE-008",
|
|
"FE-GATE-009",
|
|
"FE-GATE-011",
|
|
"FE-GATE-012",
|
|
"FE-GATE-013"
|
|
]
|
|
}
|
|
]
|
|
}
|