Files
clean-architecture-backend-…/build-logic/gradle.properties
DongHyeonka 7c0521421b build(build-logic): -p build-logic 시험이 빌드 캐시를 쓴다
문제: main.yml build-logic job과 scripts/verify.sh main은
./gradlew -p build-logic test로 돈다. 그러면 build-logic이 루트 빌드라
저장소 루트 gradle.properties의 org.gradle.caching=true가 걸리지 않고,
TestKit 시험이 push마다 전부 다시 돈다(run 356: 6 executed, :test 30초).

고친 것: build-logic/gradle.properties에 org.gradle.caching=true를 둔다.
build-logic/AGENTS.md 테스트 절에 그 이유와 「시험이 저장소 파일을 읽게
되면 test 입력으로 선언한다」를 한 줄로 적는다.

버린 것:
- job 줄에 --build-cache: CI만 캐시를 쓰고 desktop·노트북은 다르게 돈다.
- main job Gradle 줄에 :build-logic:test 붙이기: verifyStrictLaneStages의
  줄 형식 검사를 고쳐야 한다.

위험·한계: TestKit 시험이 선언 안 된 저장소 파일을 읽으면 캐시가 낡은
결과를 낸다. 지금은 없다: build-logic/src/test의 시험은 모두 @TempDir에
fixture를 쓴다. 환경 변수는 Test 입력이 아니다. RELEASE_VERSION이 비어
있어야 통과하는 시험이 하나 있지만(PlatformModuleConventionTest) main.yml과
verify.sh는 그 값을 주지 않는다.

검증(desktop): -p build-logic test → clean → test에서 둘째가
:compileJava·:test FROM-CACHE(3 from cache). 기준 1d6fd34c는 6 executed.
main 클래스 하나의 줄 번호를 밀면 :test가 다시 돈다.

Refs: design-docs ci/05-backend-ci-speed-handoff.md 4.4·6.3·7.2절 (BE-8)
2026-11-20 04:33:44 +09:00

6 lines
372 B
Properties

# Read only when build-logic is the build being run (`./gradlew -p build-logic test`, main.yml's
# `build-logic` job). Then the repository root's gradle.properties is not, and without this line the
# TestKit tests ran from scratch on every push. When the main build includes build-logic, the root's
# settings apply and they enable the same cache.
org.gradle.caching=true