build!: 시험 classpath·이미지 고정·카탈로그·API surface 입력을 정본대로 맞춘다

문제:
- ca.spring-library가 모든 spring leaf(30)의 testImplementation에
  spring-boot-starter-webmvc-test를 넣어, MockMvc를 쓰지 않는 23 leaf가 Tomcat을
  시험 classpath에 resolve하고 lock했다.
- container-images.properties 머리말은 「digest로 고정」이라는데 postgres-17·18이
  tag만이었다. 머리말은 「쓰는 lane만 다시 돈다」고 했지만 파일 전체가 모든 Test
  task의 입력이라 이미지 하나만 바꿔도 모든 lane이 다시 돈다. postgres-16-4는
  아무도 읽지 않았다.
- libs.versions.toml에 아무도 읽지 않는 칸이 있었다(라이브러리 9, 버전 4,
  루트에 적용하지 않는 플러그인 4).
- config/spotbugs/exclude.xml에 없는 클래스의 항목이 있었다(exclude-test.xml에
  이미 있다).
- notification의 API surface가 상대 경로로 application-notification 소스를
  가리켰고, ApiSurface 플러그인은 없는 추가 root를 말없이 건너뛰어 승인 update가
  줄어든 표면을 기록할 수 있었다.
- verify-mongodb-platform.sh가 고르는 클래스가 없는 :app-bootstrap:test
  --tests '*CleanArchitectureTest'를 불러 늘 실패했고, 이미지 기록이 카탈로그와
  다른 tag였다.

고친 것:
- 규약은 spring-boot-starter-test만 준다. 시험이 실제로 쓰는 것을 leaf가 직접
  선언한다. MockMvc를 쓰는 web·web-advanced·web-fileserver·web-notification·
  app-bootstrap은 webmvc-test starter, graphql은 TestRestTemplate의
  spring-boot-resttestclient, durable-operation은 WebApplicationContextRunner의
  spring-web, 시험이 JSON을 읽는 objectstorage·persistence-jpa·persistence-mongo·
  notification-platform은 jackson-databind, redis-runtime은 jackson-annotations
  (compileOnly, 본 코드와 같은 이유)다. 모든 Java source set을 한 빌드에서 컴파일해
  빠진 곳이 없음을 확인하고 lockfile을 다시 만들었다(Tomcat·webmvc 시험 자동설정이
  빠짐). graphql·persistence-mongo AGENTS의 허용·시험 목록을 같이 고쳤다.
- postgres 17·18을 desktop runner에서 받은 digest로 고정했다(17.11, 18.6). 목록을
  읽을 때 digest 없는 값을 GradleException으로 거절한다(ContainerImageCatalogTest).
  머리말을 실제 캐시 동작으로 고쳤고 postgres-16-4를 지웠다. persistence-jpa
  release registry의 PostgreSQL tag는 아무도 읽지 않아 지우고, 이미지는 카탈로그가
  정한다고 적었다.
- 카탈로그의 미사용 칸을 지우고 머리말을 지금 쓰임에 맞췄다.
- 죽은 spotbugs 항목을 지웠다.
- notification은 project(':application-notification')로 root를 잡고, 없는 추가
  root는 설정 단계에서 실패한다(ApiSurfaceConventionTest).
- mongo 스크립트는 :app-bootstrap:architectureTest를 부르고, 이미지 기록은
  카탈로그 mongo-8 값을 읽는다.
- graphql build.gradle에 앞 커밋의 document-contract lane을 함께 둔다. 저장소 루트
  (ca.repository.root)와 읽는 registry 파일은 그 lane만 받고, 시험은 그 속성으로만
  루트를 읽는다(cwd에서 거슬러 찾지 않는다).
버린 대안: 이미지마다 쓰는 lane을 선언해 입력을 나누기 — lane 수십 개에 키
목록을 다시 적어야 하고 빠뜨리면 캐시가 거짓 통과한다.

검증: 아래 PR 본문(desktop resolveAndLockAll·build-logic test·모든 source set 컴파일·
leaf check).

BREAKING CHANGE: ca.spring-library가 시험 classpath에 spring-boot-starter-webmvc-test를
넣지 않는다. MockMvc·TestRestTemplate·Jackson을 그 starter로 받던 파생 leaf는 의존을
직접 선언해야 시험이 컴파일된다. 카탈로그의 digest 없는 이미지와 없는 API surface 추가
root는 설정 단계에서 실패한다. version catalog의 미사용 칸을 지웠다. 할 일은
docs/upgrade/2026-11-round9-build.md다.

Refs: RR9-04-06, RR9-04-11, RR9-04-12, RR9-04-13, RR9-04-14, RR9-04-15, RR9-04-16
This commit is contained in:
DongHyeonka
2026-11-13 06:34:32 +09:00
parent 1185b36a6d
commit cbfa776270
51 changed files with 298 additions and 581 deletions
@@ -32,6 +32,8 @@ dependencies {
// NotificationModuleDefaultsTest reads the shipped file through the loader that serves it at
// runtime (reached there through adapter:outbound:notification). Test scope only.
testImplementation project(':adapter:outbound:support')
// ProviderCallbackIngressBridgeTest writes the signed SNS envelope with NotificationJsonMapper.
testImplementation 'tools.jackson.core:jackson-databind'
}
// NotificationEnvironmentRegistryTest compares the shipped settings with the environment registry
@@ -89,9 +89,9 @@ org.apache.maven.doxia:doxia-core:1.12.0=checkstyle
org.apache.maven.doxia:doxia-logging-api:1.12.0=checkstyle
org.apache.maven.doxia:doxia-module-xdoc:1.12.0=checkstyle
org.apache.maven.doxia:doxia-sink-api:1.12.0=checkstyle
org.apache.tomcat.embed:tomcat-embed-core:11.0.27=runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.tomcat.embed:tomcat-embed-el:11.0.27=runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.tomcat.embed:tomcat-embed-websocket:11.0.27=runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.tomcat.embed:tomcat-embed-core:11.0.27=runtimeClasspath,testRuntimeClasspath
org.apache.tomcat.embed:tomcat-embed-el:11.0.27=runtimeClasspath,testRuntimeClasspath
org.apache.tomcat.embed:tomcat-embed-websocket:11.0.27=runtimeClasspath,testRuntimeClasspath
org.apache.xbean:xbean-reflect:3.7=checkstyle
org.apiguardian:apiguardian-api:1.1.2=testCompileClasspath
org.aspectj:aspectjweaver:1.9.25.1=runtimeClasspath,testRuntimeClasspath
@@ -165,21 +165,19 @@ org.springframework.boot:spring-boot-data-jpa:4.0.9=runtimeClasspath,testRuntime
org.springframework.boot:spring-boot-flyway:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-health:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-hibernate:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-http-converter:4.0.9=runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-jackson:4.0.9=runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-http-converter:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-jackson:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-jdbc:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-jpa:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-mail:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-persistence:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-resttestclient:4.0.9=testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-security-oauth2-resource-server:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-security:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-servlet:4.0.9=runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-servlet:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-sql:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-data-jpa:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-flyway:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-jackson-test:4.0.9=testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-jackson:4.0.9=runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-jackson:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-jdbc:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-json:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-logging:4.0.9=runtimeClasspath,testCompileClasspath,testRuntimeClasspath
@@ -187,21 +185,18 @@ org.springframework.boot:spring-boot-starter-mail:4.0.9=runtimeClasspath,testRun
org.springframework.boot:spring-boot-starter-oauth2-resource-server:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-security:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-test:4.0.9=testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-tomcat-runtime:4.0.9=runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-tomcat:4.0.9=runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-tomcat-runtime:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-tomcat:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-validation:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-web:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-webmvc-test:4.0.9=testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-webmvc:4.0.9=testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter:4.0.9=runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-test-autoconfigure:4.0.9=testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-test:4.0.9=testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-tomcat:4.0.9=runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-tomcat:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-transaction:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-validation:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-web-server:4.0.9=runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-webmvc-test:4.0.9=testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-webmvc:4.0.9=runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-web-server:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-webmvc:4.0.9=runtimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot:4.0.9=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.data:spring-data-commons:4.0.8=runtimeClasspath,testRuntimeClasspath
org.springframework.data:spring-data-jpa:4.0.8=runtimeClasspath,testRuntimeClasspath
@@ -227,8 +222,8 @@ org.springframework:spring-messaging:7.0.10=runtimeClasspath,testRuntimeClasspat
org.springframework:spring-orm:7.0.10=runtimeClasspath,testRuntimeClasspath
org.springframework:spring-test:7.0.10=testCompileClasspath,testRuntimeClasspath
org.springframework:spring-tx:7.0.10=runtimeClasspath,testRuntimeClasspath
org.springframework:spring-web:7.0.10=runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-webmvc:7.0.10=runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-web:7.0.10=runtimeClasspath,testRuntimeClasspath
org.springframework:spring-webmvc:7.0.10=runtimeClasspath,testRuntimeClasspath
org.thymeleaf:thymeleaf:3.1.5.RELEASE=runtimeClasspath,testRuntimeClasspath
org.unbescape:unbescape:1.1.6.RELEASE=runtimeClasspath,testRuntimeClasspath
org.xmlresolver:xmlresolver:5.3.3=checkstyle,spotbugs