fix(build-logic): 이미지 빌드의 의존성 단계가 API surface 검사로 멈추지 않게 한다 #47
Closed
donghyeon.kang
wants to merge 5 commits from
claude/be-main-red2-compose into main
pull from: claude/be-main-red2-compose
merge into: :main
:main
:fix/verify-remote-prep-env-rules
:fix/notification-template-refusal-carriers
:fix/in-process-lock-per-key
:fix/notification-secret-key-id-purpose
:fix/draft12-chunked-create-body
:fix/notification-admin-refusal-carriers
:fix/notification-lookup-hmac-rotation-guard
:fix/repository-contract-wrapper-input
:test/web-graceful-shutdown-inflight
:fix/notification-idempotency-conflict-carrier
:fix/compose-contract-verdict-false-pass
:fix/lock-handle-idempotent-close
:fix/core-redrive-missing-attempt-and-lease-field
:fix/verify-remote-stdin
:test/lock-contract-bounded-waits
:fix/verify-remote-log-header
:test/lease-value-bounds
:refactor/ratelimit-shared-bounds
:test/objectstorage-production-client-timeouts
:fix/verify-junit-summary
:fix/env-contract-nested-placeholder
:fix/notification-eligibility-and-redrive
:fix/httpclient-docs-field-match
:test/fileserver-admin-access-checks
:fix/gitignore-nested-env
:fix/check-docs-reference-rules
:fix/hooks-n5-verify-sh-n6-records
:fix/hooks-verify-sh-and-record-body
:test/compose-contract-verdict
:test/fileserver-precondition-and-policy-wiring
:ci/nfs-nightly-host-check-and-pin
:test/notification-worker-behavior
:test/mongo-tls-lane-handshake-refusal
:test/compose-smoke-judgements
:test/notification-admin-guards-cancel-branches
:claude/links-dns-probe
:docs/ledger-fixed-by-49-50
:claude/be-main-red2-minio-2
:claude/be-main-red2-compose
:claude/be-main-red2-minio
:claude/r9-b-claim-tx
:claude/w2-be-ci-perf-4
:claude/r9-review-record
:claude/r9-c-tests-build
:claude/r9-c-docs-body
:claude/r9-c-contracts
:claude/r9-compose-ops
:claude/r9-public-surface
:claude/r9-stale-names
:claude/r9-tx-timeouts
:claude/r9-env-keys
:claude/r9-arch-rules
:claude/w2-be-ci-perf-2
:claude/w2-be-ci-perf-2-wip
:claude/redteam-be-fixes-main
:claude/w2-be-ci-perf-e89fe7
:claude/redteam-be-fixes
:claude/t2a-backend-ci-451e3b
:claude/x3-messaging-library-1aa3fa
:claude/x2-grpc-library-43dd09
:claude/h3-backend-harness-34fc23
:claude/v1-vuln-fix-e089b9
:claude/i2-docs-merge-02df15
:claude/d2c-ops-docs-1-c22c9f
:claude/d2a-entry-docs-12a342
:claude/d2b-src-adr-d46d23
:claude/d2d-ops-docs-2-e40938
:claude/i1-layout-docs-merge-217f1e
:refactor/maturity-review-2026-11
:claude/t1-backend-layout-46973e
:claude/d1-docs-system-fd4a0f
:claude/integration-r9-f1bc5c
:claude/r9-g1-inbound-456713
:claude/r9-g3-migration-7ce36d
:claude/r9-g2-stomp-interceptor-f5675d
:claude/r9-g4-idempotency-c669be
:claude/manual-gap-fix-2-9b0fe2
:claude/r8-review-a-3851a7
:claude/integration-r8-a4196a
:claude/r8-f1-transport-errors-b21ebf
:claude/r8-f5-small-fixes-f40412
:claude/r8-f3-persistence-9e8157
:claude/r8-f2-arch-rules-60140e
:claude/r8-f4-idempotency-3a6a0f
:claude/manual-gap-fix-1-824a41
:claude/t4-2-manual-history-ids-9ac57c
:claude/t1-r10-review-d0ecc6
:claude/integration-r7
:claude/t5-idempotency-operation-id-9bd973
:claude/t3-error-codes-loglevel-fcf427
:claude/t1-baseline-7d623a
:claude/t2-circuit-breaker-2ff8df
:claude/t4-manual-history-ids-51889f
:claude/b3-docs-work-34a1dd
:claude/perf-assertions-fail-closed-c09414
:claude/improvement-manual-6ae516
:refactor/review-followup
No Reviewers
Labels
No items
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
donghyeon.kang (동현 강)
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: donghyeon.kang/clean-architecture-backend-template#47
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
무엇을, 왜
nightly
compose-smoke가 run 306·315·318·321·324에서 18개 lane을 모두 실패시켰다. job 로그에는 lane 이름만 있었다.ApiSurfacePlugin의afterEvaluate에서 없는apiSurface.additionalSourceRoots를 거절하게 했다.Dockerfilebuilder의 의존성 단계는 build 스크립트·lockfile·release/·build-logic/만 복사하고./gradlew verifyDependencyLocks를 돈다. 소스 폴더가 없으니:adapter:outbound:notification설정이names a folder that does not exist: [/build/src/application/notification/src/main/java]로 실패하고 이미지가 만들어지지 않는다. 모든 lane이 이 이미지로 시작한다. 같은 Dockerfile을 쓰는 release 이미지 빌드와scripts/bootstrap-local.sh도 같은 이유로 멈춘다.build.log로만 가고, 그 폴더는 job 컨테이너와 함께 사라진다.이 PR은 세 가지를 바꾸고, 리뷰에서 나온 두 가지를 고친다.
ci(compose)92d204b9c: 실패한 lane이 멈춘 단계, 그 단계 로그의 마지막 25줄, 컨테이너 상태·exit code·health, compose.log 마지막 오류 줄을 stderr(job 로그)에 남긴다.fix(build-logic)5f7bf80ff: 없는 추가 root 검사를 verify·update surface 태스크의 실행 첫머리(AdditionalSourceRoots.requireExisting)로 옮긴다. surface를 계산할 때는 여전히 경로와 함께 거절하므로, 2026-11-12 리뷰가 막은 「없는 root로 줄어든 surface 승인」은 그대로 막힌다. TestKit 시험 둘: surface를 읽지 않는 빌드는 설정을 마친다, verify·update는 없는 root로 실패한다.docs(build-logic)2b264f62d:build-logic/AGENTS.md에 「설정 단계에서 보지 않는 것」,gates.md2절 compose·Dockerfile 행에 설정 단계 동작을 바꿨을 때 돌릴 lane 하나.docs(build-logic)bff1be45d: 3의 경계를 「leaf의src/아래 소스·자원」으로 적고, 의존성 단계가 복사하는 목록은DockerfileCOPY줄을 정본으로 가리킨다(설정 단계에서gradle/container-images.properties를 읽는 맞는 코드가 위반처럼 읽히던 문구).ci(compose)5c28ebf51: one-shot 개수 검사와 handoff 재시작 기록 앞에lane_step을 둬, 그 실패가 이미 성공한 앞 단계 이름·로그 꼬리로 보고되지 않게 한다.첫 실패 run 105(
841a176f)는cbfa77627전이라 다른 원인이었다. 따로 캐지 않았다. 고친 트리에서 전체 matrix가 rc=0이라 그 원인은 지금 트리에 없다.고른 방법과 버린 대안
src/**/src/main/java빈 폴더를 만든다 — 검사가 빈 폴더를 통과시켜 검사의 뜻이 사라진다.upload-artifact@v4이상을 못 쓰고, 받아서 열어야 이유가 보인다.gates.md7절 답: 새 workflow·job·step 없음(1~4·6·7 해당 없음). 바뀐 스크립트는 기존scripts/run-compose-runtime-smoke.sh이고 부르는 곳(nightlycompose-smoke,verify.sh nightly)은 그대로다(8). 성공한 lane의 출력은 그대로이고, 실패한 lane마다 50줄 안팎이 는다.위험과 영향
check(PR 단계)에 들어 있어 PR에서 걸리는 시점은 같다.|| true로 불러 실패해도 teardown을 건너뛰지 않는다.검증
desktop, 공유 잠금 아래, 기준
99cc4f59. 로그~/be-main-red2-logs/.-p build-logic test --tests ApiSurfaceConventionTesta-red.log--lane off-localfailed in step 'build app image'와 build.log 꼬리a-red.log-p build-logic check javadoc --no-build-cachea-green.log--matrix .../compose-profile-contracts.json0d3e87a7a-green.logdocker build(release.yml과 같은 build-arg 모양)a-release2.lognames a folder that does not exista-release2.log:app-bootstrap:verifyEnvKeys --no-build-cache(smoke 스크립트를 읽는다)a-final.loga-final.logcheck-work-docs.py·check-docs.py,scripts/tests166개efc4cdda2b264f62d→ 확인5c28ebf51--lane off-local): 고친 스크립트는failed in step 'one-shot count', 로그 꼬리 없음. 고치기 전(2b264f62d) 스크립트는 이미 성공한failed in step 'startup log is silent'와startup.log꼬리를 찍었다.a-probe-count.log. handoff 재시작 실패는 일부러 만들지 않았다(같은 장치).compose-smoke는 아직 보지 않았다. 병합 뒤 확인한다.리뷰어가 볼 곳
build-logic/src/main/java/dev/caskeleton/buildlogic/apisurface/— 검사 위치,@Internal입력 선언build-logic/src/test/java/.../apisurface/ApiSurfaceConventionTest.java— 새 TestKit 시험 둘scripts/run-compose-runtime-smoke.sh—lane_step·실패 보고·trap 순서범위 밖에서 본 것(이 PR이 고치지 않음)
sourceRoot가 없으면JavaPublicTypes가 조용히 건너뛰고, 빈 추가 root는isDirectory를 통과한다. 다른 root가 남아 있으면 줄어든 surface가-Papprove…로 기록될 수 있다(requireNoUnapprovedGrowth는 늘어난 것만 막는다). 따로 다룬다.관련
cbfa776270("build!: 시험 classpath·이미지 고정·카탈로그·API surface 입력을 정본대로 맞춘다")#48로 대신한다. 리뷰 반영 커밋을 원래 커밋에 합쳐 커밋 3개로 다시 만들었고 트리(
efc4cdda)는 같다. 이 PR은 닫는다.Pull request closed