diff --git a/.claude/skills/be-testing/SKILL.md b/.claude/skills/be-testing/SKILL.md index 4c5a3298..01614470 100644 --- a/.claude/skills/be-testing/SKILL.md +++ b/.claude/skills/be-testing/SKILL.md @@ -57,7 +57,7 @@ paths: - leaf: `scripts/verify.sh leaf `(경로는 registry `gradle_path`). - 그 코드를 지키는 strict lane을 같이 돌린다(예: `:adapter:outbound:persistence-jpa:postgresqlTransactionIntegrationTest`). `requires`로 고르는 lane은 `--tests` 필터 없이 돈다. 필터 실행은 탐침 증거일 뿐 lane 통과가 아니다. — `docs/work/reference/gates.md` 2절 「탐침」 -- 테스트 코드(ArchUnit fixture 포함)를 바꿨으면 그 leaf `testQualityCheck`(main 단계). +- 테스트 코드(ArchUnit fixture 포함)를 바꿨으면 그 leaf `testQualityCheck`, main·test 밖 source set이면 그 leaf `auxiliaryStyleCheck`도(둘 다 PR·main 단계). - build-logic 테스트: `./gradlew -p build-logic check javadoc`. build-logic은 registry leaf가 아니라 `verify.sh leaf`와 `testQualityCheck`가 고르지 않는다. — `docs/work/reference/gates.md` 2절 - 생성기 테스트 템플릿(`scripts/feature-scaffold/`)을 바꿨으면 `verifyFeatureScaffold`(`mainCheck` 안). — 같은 절 - 새 lane: `./gradlew :verifyStrictLaneStages --dry-run` diff --git a/build.gradle b/build.gradle index 4c5ba61a..54a12cff 100644 --- a/build.gradle +++ b/build.gradle @@ -68,7 +68,8 @@ tasks.register('verifyDependencyLocks') { // architectureCheck dependency direction + purity + app-bootstrap whole-repository ArchUnit // qualityCheck SpotBugs + FindSecBugs across every leaf (ca.quality-conventions) // ci leaf checks + architectureCheck + qualityCheck -// prCheck the pull-request stage: ci + dependency locks + the Compose render, the +// prCheck the pull-request stage: ci + testQualityCheck + every leaf's +// auxiliaryStyleCheck + dependency locks + the Compose render, the // repository layout and the document checks (scripts outside Gradle) // mainCheck the main-branch stage: environment contract, full-boot qualification, // public-path baseline, transport and messaging qualification lanes, the @@ -138,8 +139,13 @@ tasks.register('qualificationCheck') { } // SpotBugs + FindSecBugs over every leaf's test source sets, against config/spotbugs/exclude-test.xml. -// Main stage, not `ci`: test code does not ship, and the full run is about as long as `ci` itself. -// It ran in no stage until 2026-11-04, and 53 of these tasks had been failing unseen. +// It ran in no stage until 2026-11-04, and 53 of these tasks had been failing unseen. From then it ran +// in the main stage only, so a finding in test code surfaced after the merge (main run 269: a dead +// local store in graphql's systemTest). Since 2026-11-20 prCheck runs it and every leaf's +// auxiliaryStyleCheck too: a pull request restores the build cache main's `done` job fills, so the +// analysis of a leaf whose inputs did not change comes from it (desktop 2026-11-13, the unchanged tree +// in a second checkout: +29 s with a warm cache, +310 s without). qualificationCheck keeps both as +// well; taking a gate out of a stage is the owner's call. tasks.register('testQualityCheck') { group = 'verification' description = 'Runs SpotBugs and FindSecBugs over every leaf\'s test source sets.' @@ -234,8 +240,10 @@ tasks.register('documentCheck', Exec) { tasks.register('prCheck') { group = 'verification' - description = 'The pull-request stage: ci, dependency locks, the Compose render, the layout, the work manual and the documents.' + description = 'The pull-request stage: ci, test-code analysis and style, dependency locks, the Compose render, the layout, the work manual and the documents.' dependsOn tasks.named('ci') + dependsOn tasks.named('testQualityCheck') + dependsOn leafPaths.collect { "${it}:auxiliaryStyleCheck" } dependsOn tasks.named('verifyDependencyLocks') dependsOn tasks.named('verifyComposeProfiles') dependsOn tasks.named('verifyRepositoryLayout') diff --git a/docs/build.md b/docs/build.md index 47c36b10..31782548 100644 --- a/docs/build.md +++ b/docs/build.md @@ -28,11 +28,11 @@ Checkstyle은 **포매터가 표현할 수 없는 것만** — 네이밍과 몇 | `architectureCheck` | Clean Architecture 의존 방향, domain-core·shared-contract·application-* 순수성, Git에 실리지 않는 source package, ArchUnit을 검사 | | `qualityCheck` | 모든 leaf의 SpotBugs + FindSecBugs를 실행 | | `configContractCheck` | `:app-bootstrap:verifyEnvKeys`로 환경 설정 계약을 검사 | -| `qualificationCheck` | 전체 기동(system) 레인(`systemTestCheck`), 보조 source set Checkstyle, 시험 품질 검사(`testQualityCheck`)를 실행 | +| `qualificationCheck` | 전체 기동(system) 레인(`systemTestCheck`), 보조 source set Checkstyle, 시험 품질 검사(`testQualityCheck`)를 실행. 뒤의 둘은 2026-11-20부터 `prCheck`에도 있다 | | `integrationCheck` | 선언된 strict integration lane을 실행. 대부분 container runtime이 필요. 입력이 필요한 lane(Redis topology: `-Predis.topology.mode`, AWS: 보호 자격 증명 env)은 입력이 없으면 빠지고 집계가 그 이유를 출력 | | `performanceCheck` | 선언된 strict performance lane(부하·종료·pool·자원 상한)을 실행. 실서버·container가 필요. 상한은 매번 단언하고 끄는 속성이 없다(`-Pperformance.assertions.enabled`가 `true`가 아니면 실패, skip된 테스트가 있어도 실패). `main.yml` `performance` job이 nightly에 다른 무거운 job 뒤에서 같은 명령으로 돌림 | | `verifyStrictLaneStages` | `--dry-run` 전용. `explicitOnly`가 아닌 strict lane이 `strictLaneStages`에 선언한 단계(`prCheck`·`mainCheck`·`integrationCheck`·`performanceCheck`·`releaseCheck`) 중 하나의 계획에 있는지, 단계마다 선언한 workflow job이 `./gradlew <단계>`를 정해진 한 줄로 조건 없이(또는 선언한 조건으로) 돌리는지 검사. 형식은 `build-logic/AGENTS.md` 「단계 job의 모양」. PR 단계가 돌림 | -| `prCheck` | PR 단계: `ci` + `verifyDependencyLocks` + compose 렌더링(`verifyComposeProfiles`) + 저장소 배치(`verifyRepositoryLayout`) + 작업 지침 분량·이력 ID(`verifyWorkDocs`) + 문서 검사(`documentCheck`) | +| `prCheck` | PR 단계: `ci` + 시험 품질 검사(`testQualityCheck`) + 보조 source set Checkstyle(leaf마다 `auxiliaryStyleCheck`) + `verifyDependencyLocks` + compose 렌더링(`verifyComposeProfiles`) + 저장소 배치(`verifyRepositoryLayout`) + 작업 지침 분량·이력 ID(`verifyWorkDocs`) + 문서 검사(`documentCheck`) | | `ci` | 모든 leaf `check`(API surface 검사 포함, 소유자 결정 20) + `architectureCheck` + `qualityCheck` | | `mainCheck` | main 단계: `configContractCheck` + `qualificationCheck` + `verifyPublicPathSnapshot` + 전송·메시징 qualification(`conditionalTransportQualification`, `verifyMessagingContracts`) + graphql 전송 경계 lane(`graphqlStableTest`) + 생성 명령 왕복(`verifyFeatureScaffold`) + 각 leaf의 `mainCheck`(문서 대조 레인 `*DocumentContractTest`, objectstorage MinIO 레인) | | `releaseCheck` | tag 전용 검사: `verifyReleaseProvenance` + `verifyPublicPathSnapshot`(`ci`를 다시 돌리지 않음) | diff --git a/docs/ledger/estimates.jsonl b/docs/ledger/estimates.jsonl index 8d49bcfb..9f365ea0 100644 --- a/docs/ledger/estimates.jsonl +++ b/docs/ledger/estimates.jsonl @@ -21,3 +21,5 @@ {"schema": 1, "kind": "estimate", "task": "be-ci-next", "transcript": "7f6aac72-543c-4f2a-a47c-550e4c727f99", "started_at": "2026-11-19T17:44+09:00", "base": "59349a2b", "task_kind": "operate+improve", "size": "medium", "minutes": {"p30": 106, "p50": 159, "p80": 254}, "calls": {"p30": 220, "p50": 315, "p80": 470}, "output_tokens": {"p30": 145000, "p50": 232000, "p80": 348000}, "basis": "PR 셋(links 인자, API surface 거절 RED/GREEN·verify.sh main, BE-1 측정·고침과 BE-4). 결정 셋, runner PR run 3개 이상·nightly 로그 대기. 선례 w2-be-ci-perf 실측 555분(p50의 3.9배). 손 예측 200/300/480분·350/500/750호출·250k/400k/600k에 보정 0.53·0.63·0.58을 곱함", "recorded_at": "2026-11-19T17:51+09:00"} {"schema": 1, "kind": "estimate", "task": "be-test-speed", "transcript": "46edb129-6c98-443f-b613-4c03a1995124", "started_at": "2026-11-19T18:37+09:00", "base": "9709404d", "task_kind": "improve", "size": "medium", "minutes": {"p30": 83, "p50": 121, "p80": 187}, "calls": {"p30": 132, "p50": 198, "p80": 297}, "output_tokens": {"p30": 87000, "p50": 133000, "p80": 203000}, "basis": "PR 둘(BE-9 시험 지원 코드+12개 클래스 기계적 치환, BE-10 grpc 시험 설정 한 줄씩). 결정 둘(공유 방식·drop 여부, Mongo 판단 한 줄). desktop 실행 BE-9 측정 전후 6회+섞기 3회+leaf+main, BE-10 전후 leaf 2회, PR CI 대기 2번. 손 예측 150/220/340분·200/300/450호출·150k/230k/350k에 보정 0.55·0.66·0.58을 곱함", "recorded_at": "2026-11-19T18:42+09:00"} {"schema": 1, "kind": "estimate", "task": "laptop-runner", "transcript": "27674009-98d8-4e0c-8946-fb1e590c4128", "started_at": "2026-11-20T07:00:00+09:00", "base": "a68ff147be881f6ede908a286c0fbc1f963f2307", "task_kind": "operate", "size": "large", "minutes": {"p30": 66, "p50": 99, "p80": 165}, "calls": {"p30": 165, "p50": 230, "p80": 330}, "output_tokens": {"p30": 145000, "p50": 203000, "p80": 290000}, "basis": "large 선례 7건 실측 중앙값에서 출발, 손 결정 6개·검증 run 3~4개와 대기, 보정 시간 0.55·호출 0.66·출력 0.58 곱함", "recorded_at": "2026-11-20T07:30+09:00"} +{"schema": 1, "kind": "actual", "task": "be-ci-next", "transcript": "7f6aac72-543c-4f2a-a47c-550e4c727f99,5ef6a5a6-043b-4872-b8bf-0cc4ce2aee1f,0f7cd6ee-31dc-47e0-b33f-6900d1138d00,2d8f74db-59db-4b0f-970f-202c4a5fc46c,b669ba0e-0219-4098-a956-8479e8a74007,00277f8c-7b41-4984-ab25-6dd8d96e0786,a84946d1-7a15-491a-90fd-a8c21280ef0b", "minutes": 1139, "active_minutes": 485, "calls": 1652, "output_tokens": 1611695, "cache_read_tokens": 329186023, "max_context": 497013, "within": "over", "result": "done", "commits": ["fcd2edf4", "a0166b16", "2cfe2266", "9b76a3b4", "e9ee917f", "72268f30", "7c052142", "58d24346", "946f09bf", "5d9e7372", "3917dc01", "11c63825", "design-docs:45a1c2d", "design-docs:e535319"], "why": "세 값 모두 p80 위(작업 중 485분/254, 호출 1652/470, 출력 1.61M/348K). 예측은 PR 셋이었는데 총괄이 BE-5·BE-6+8과 리뷰가 찾은 고침 둘(#60·#61)을 더해 백엔드 PR 여덟·design-docs PR 둘이 됐다. context 250K 규칙으로 세션 일곱에 나눠 했고, 세션마다 노트·brief를 다시 읽었다. desktop은 runner·다른 세션과 잠금을 나눠 탐침·verify마다 기다렸다. BE-4 탐침의 dead store는 exclude-test.xml(이름 unused)과 Error Prone UnusedVariable 때문에 SpotBugs까지 가지 않아 세 번 고쳐 돌렸다. 다음 예측은 PR 수가 아니라 총괄이 더할 수 있는 고침 몫과 세션 인계 수를 근거로 쓴다. 실측은 2026-11-20 17:28까지 세션 일곱의 기록 합(max_context는 가장 큰 세션)", "recorded_at": "2026-11-20T17:29+09:00"} +{"schema": 1, "kind": "actual", "task": "laptop-runner", "transcript": "27674009-98d8-4e0c-8946-fb1e590c4128", "minutes": 115, "active_minutes": 98, "calls": 220, "output_tokens": 329320, "within": "p50", "result": "done", "commits": ["b932d49b7", "1b9fbeb8a", "162c37c9f", "a1b6edccd"], "why": "시간·호출은 p50 안. 출력은 p80(290K) 위: H5로 설치를 묶음+install.sh로 다시 짰고, 리뷰 2라운드와 PR 뒤 도착한 총괄 답 넷(stop 시험·즉시 판단·incident·install 조건)을 반영했다", "recorded_at": "2026-11-20T17:29+09:00"} diff --git a/docs/upgrade/2026-11-pr-test-quality.md b/docs/upgrade/2026-11-pr-test-quality.md new file mode 100644 index 00000000..0bf47650 --- /dev/null +++ b/docs/upgrade/2026-11-pr-test-quality.md @@ -0,0 +1,21 @@ +# 업그레이드 안내 — 2026-11 시험 코드 정적 검사를 PR 단계에서 + +- 범위: 루트 `build.gradle`의 `prCheck`. `testQualityCheck`(시험 source set의 SpotBugs·FindSecBugs)와 leaf마다 `auxiliaryStyleCheck`(main·test 밖 source set의 Checkstyle)가 PR 단계에도 돈다. 운영 코드와 검사 규칙은 그대로다. +- 근거: main 단계에서만 돌던 이 검사가 병합 뒤에야 결함을 잡았다(2026-11-13, graphql 시스템 시험의 dead store). PR이 main의 빌드 캐시를 받게 된 뒤라 입력이 그대로인 leaf의 분석은 캐시에서 온다. `docs/work/reference/gates.md` 1절 표 + +## 1. 누가 읽나 + +이 템플릿을 `upstream` remote로 두고 merge해 받는 파생 서비스가 읽는다. 자기 leaf에 시험 코드가 있는 서비스가 본다. + +## 2. 바뀐 것과 할 일 + +| # | 바뀐 것 | 서비스가 할 일 | +| --- | --- | --- | +| 1 | `pr.yml` `done`의 `./gradlew :prCheck`가 `testQualityCheck`와 모든 leaf의 `auxiliaryStyleCheck`를 돈다. 전에는 `mainCheck`(`qualificationCheck`)에서만 돌았다. `mainCheck`에도 그대로 있다 | 받기 전에 `./gradlew testQualityCheck auxiliaryStyleCheck`를 돌린다. 발견은 고치거나, 클래스·메서드로 좁힌 Match를 이유와 함께 `config/spotbugs/exclude-test.xml`에 더한다. 안 하면 main에서 빨강이던 발견이 이제 PR을 막는다 | +| 2 | PR이 leaf `check`에 걸리지 않던 시험 source set(integrationTest, systemTest 등)도 컴파일한다. 그 source set의 컴파일 오류가 PR에서 잡힌다 | 1번 명령이 컴파일부터 통과하는지 본다 | +| 3 | 빌드 캐시가 없으면 PR 단계가 길어진다(desktop 2026-11-13 측정: 캐시 없음 +310초, 캐시 있음 +29초). 이 템플릿은 main push의 `done` job이 PR용 캐시를 채운다 | `main.yml` `done` job과 setup-gradle 캐시 설정을 받았는지 본다. 서비스 runner에서 PR의 `:prCheck` 요약 줄 `from cache` 수를 본다 | + +## 3. 확인 + +- `./gradlew :prCheck --dry-run`의 계획에 `::spotbugsTest`와 `::checkstyleIntegrationTest`(그런 source set이 있는 leaf)가 있다. +- 받은 뒤 첫 PR run의 `pr / done` 로그에 `testQualityCheck`가 있다. diff --git a/docs/work/reference/decisions.md b/docs/work/reference/decisions.md index 046372de..e7243408 100644 --- a/docs/work/reference/decisions.md +++ b/docs/work/reference/decisions.md @@ -199,7 +199,7 @@ | 릴리스 이미지 서명 키 | cosign 키 쌍으로 서명한다. Gitea Actions는 keyless 서명에 필요한 OIDC 토큰을 주지 않는다. 개인 키와 비밀번호는 repo secret이다 | 소유자(2026-11-07) | `docs/work/operate.md` 4.3절, `.gitea/workflows/release.yml` | | gRPC `.proto` | protobuf Gradle 플러그인 + Buf. 2026-11-08부터 `grpc-library` repo의 `ci` 단계 | 소유자 | 결정 18 | | SpotBugs 신뢰도 | MEDIUM으로 내림. 패턴 단위 제외는 이유를 단다 | 위임 | `1101` 15절(08-07) | -| 테스트 코드 정적 분석 | `testQualityCheck`는 `mainCheck` | 위임 | `1103` 14절 | +| 테스트 코드 정적 분석 | ~~`testQualityCheck`는 `mainCheck`~~ → 2026-11-20 `prCheck`에도 둔다(보조 source set Checkstyle `auxiliaryStyleCheck`와 함께). PR이 main이 채운 빌드 캐시를 받게 된 뒤라 입력이 그대로인 leaf의 분석은 캐시에서 온다. `mainCheck`(`qualificationCheck`)에도 그대로 있다 | 위임 | `1103` 14절, design-docs `ci/03-time-reduction-plan.md` BE-4 | | lane 정책과 캐시 | lane 정책 값(`rejectSkipped` 등)은 모두 캐시 입력 | 위임 | `1103` 4절(RR-06-02) | | workflow 명령의 빌드 판정 | ~~같은 셸의 `cd <상대 경로>`도 따라간다~~ → 2026-11-08 셸을 해석하지 않게 바꿈(아래 「workflow 단계 job 모양」) | 소유자 | `1103` 15절 ② | | workflow 단계 job 모양 | workflow는 `pr.yml`·`main.yml`·`release.yml` 셋이다. 단계 job의 `run:`은 셸 문법 없는 `./gradlew` 한 줄이나 `bash scripts/<이름>.sh` 한 줄이고, `verifyStrictLaneStages`는 셸을 해석하지 않고 이 고정 형식만 본다 | 소유자(2026-11-08) | design-docs `repo-structure/03-ci.md` 7·11절, `build-logic/AGENTS.md`, `StrictLaneStagesPlugin` Javadoc | diff --git a/docs/work/reference/gates.md b/docs/work/reference/gates.md index 77ae8e51..f8b6fa09 100644 --- a/docs/work/reference/gates.md +++ b/docs/work/reference/gates.md @@ -33,9 +33,9 @@ workflow에만 있는 job: `pr.yml` `done`의 마지막 step과 `main.yml`의 `v | `architectureCheck` | 의존 방향, domain-core·shared-contract·application-* 순수성, Git이 옮길 수 있는 소스, ArchUnit | PR(`ci` 안) | `build.gradle` | | `./gradlew :app-bootstrap:architectureTest` | 저장소 전체 ArchUnit suite만 | 작업 중 | app-bootstrap `architectureTest` source set | | `qualityCheck` | SpotBugs, FindSecBugs(운영 코드) | PR(`ci` 안) | `build.gradle` | -| `testQualityCheck` | 같은 분석을 모든 테스트 source set에(`config/spotbugs/exclude-test.xml` 기준) | main(`mainCheck` 안) | `build.gradle` | +| `testQualityCheck` | 같은 분석을 모든 테스트 source set에(`config/spotbugs/exclude-test.xml` 기준) | PR(`prCheck` 안, 2026-11-20부터)·main(`mainCheck` 안) | `build.gradle` | | `ci` | leaf `check`(API surface 포함) + `architectureCheck` + `qualityCheck` | PR(`prCheck` 안) | `build.gradle` | -| `prCheck` | `ci` + `verifyDependencyLocks` + `verifyComposeProfiles`(compose lane이 선언대로 렌더링되는가) + `verifyRepositoryLayout`(`check-repo-layout.py`) + `verifyWorkDocs`(`check-work-docs.py`) + `documentCheck`(`check-docs.py`, 앞에 `scripts/tests` 자기 시험) | PR | `pr.yml` `done`: `./gradlew :prCheck` | +| `prCheck` | `ci` + `testQualityCheck` + 모든 leaf `auxiliaryStyleCheck`(main·test 밖 source set의 Checkstyle) + `verifyDependencyLocks` + `verifyComposeProfiles`(compose lane이 선언대로 렌더링되는가) + `verifyRepositoryLayout`(`check-repo-layout.py`) + `verifyWorkDocs`(`check-work-docs.py`) + `documentCheck`(`check-docs.py`, 앞에 `scripts/tests` 자기 시험) | PR | `pr.yml` `done`: `./gradlew :prCheck` | | `verifyStrictLaneStages --dry-run` | `explicitOnly`가 아닌 strict lane이 단계 태스크 하나의 계획에 들어 있는가(그래프 검사), 단계마다 선언한 workflow job이 `./gradlew <단계>` 한 줄을 정해진 조건으로 돌리는가(형식 검사) | PR | `pr.yml` `done` 둘째 줄. 형식은 `build-logic/AGENTS.md` | | `python3 scripts/check-repo-layout.py` | 저장소 루트와 `src/` 최상위에 허용 목록 밖의 항목이 없는가, registry 경로가 허용 폴더 안인가. 아무도 가리키지 않는 compose·스크립트 파일은 경고 | PR(`prCheck` 안) | `verifyRepositoryLayout` | | `python3 scripts/check-work-docs.py` | 작업 지침(루트 `AGENTS.md`·`CLAUDE.md`, `docs/work/`, `src/**/AGENTS.md`, `.claude/`)의 분량 상한, 본문 이력 ID 0, playbook 뼈대, 상대 링크 | PR(`prCheck` 안) | `verifyWorkDocs` | @@ -71,7 +71,7 @@ workflow에만 있는 job: `pr.yml` `done`의 마지막 step과 `main.yml`의 `v | build-logic·workflow(`.gitea/`) | `-p build-logic check javadoc`, `verifyStrictLaneStages --dry-run` | | 패키지 규칙, 생성 명령 템플릿 | `verifyFeatureScaffold`(`mainCheck` 안) | | 마이그레이션 | persistence-jpa `check`, 잠금 대기 lane(`postgresqlMigrationLockWaitIntegrationTest`), 마이그레이션 lane | -| 테스트 코드(ArchUnit fixture 포함) | 그 leaf `testQualityCheck` | +| 테스트 코드(ArchUnit fixture 포함) | 그 leaf `testQualityCheck`, main·test 밖 source set(`integrationTest`·`systemTest` 등)이면 그 leaf `auxiliaryStyleCheck`도 | | compose·Dockerfile, build-logic 플러그인의 설정 단계 동작 | `verifyComposeProfiles`(compose 렌더링), 실제 `docker build`와 기동(`scripts/verify.sh nightly`의 smoke, 설정 단계만 바꿨으면 `bash scripts/run-compose-runtime-smoke.sh --lane off-local` 한 lane). 이미지의 의존성 단계는 소스 없이 모든 project를 설정한다(`build-logic/AGENTS.md`) | - ArchUnit 위반·허용 fixture도 `testQualityCheck`(SpotBugs)가 분석한다. 외부 라이브러리의 Lombok 클래스를 상속한 fixture는 SpotBugs가 `lombok.Generated`를 찾지 못해 실패한다(missing analysis class). 그런 상속 fixture는 두지 않는다. @@ -188,7 +188,7 @@ for k in tests skipped failures errors; do cat $(find "$x" -name 'TEST-*.xml') | | 어떤 단계도 돌리지 않는 lane | `verifyStrictLaneStages --dry-run`(PR)의 그래프 검사 | | 단계 job이 단계를 조용히 돌리지 않음(바뀐 명령 줄, `if:`, `continue-on-error`, 경로 필터) | `verifyStrictLaneStages --dry-run`의 형식 검사(`build-logic/AGENTS.md` 「단계 job의 모양」) | | lane 정책을 바꿨는데 캐시가 옛 결과로 통과 | lane 정책 값을 Test 입력으로 | -| 게이트 밖에서 실패한 채 방치된 검사 | `testQualityCheck`(`mainCheck`) | +| 게이트 밖에서 실패한 채 방치된 검사 | `testQualityCheck`(`prCheck`·`mainCheck`) | | 실서버 계약이 어느 게이트에도 없음 | lane을 단계에 연결 | | 시간 단언을 끈 채 performance lane 실행 | convention이 단언을 켜고, 끄는 값이나 skip이 있으면 테스트 전에 실패(5절) | | 캐시에서 가져온 결과를 지금 통과한 것으로 셈 | 기준 상태 확인과 시간·환경에 민감한 테스트는 그 태스크를 `--rerun`으로 다시 돌린다. `--rerun`은 바로 앞 태스크 하나에만 걸리므로 태스크마다 붙인다. 집계 태스크는 새 worktree와 `--no-build-cache`로 돌리고 FROM-CACHE 0을 보인다(3절) | diff --git a/scripts/ci/verify-configuration-cache.sh b/scripts/ci/verify-configuration-cache.sh index 62783faa..6e0b9517 100755 --- a/scripts/ci/verify-configuration-cache.sh +++ b/scripts/ci/verify-configuration-cache.sh @@ -6,7 +6,8 @@ # 2. Is a stored entry reused while the build still executes its work? Checked on the two core # leaves, whose check runs in a minute. # prCheck and verifyStrictLaneStages are not in the list: the strict-lane check reads the task graph -# itself and is declared incompatible, and prCheck is ci plus scripts. +# itself and is declared incompatible, and so is verifyDependencyLocks, which prCheck holds beside ci, +# the two test-code checks mainCheck runs as well (testQualityCheck, auxiliaryStyleCheck) and scripts. set -euo pipefail cd "$(dirname "${BASH_SOURCE[0]}")/../.."