From b43fd78c23056e6891e9e550c1a7be8a0600aa30 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Wed, 18 Nov 2026 21:03:54 +0900 Subject: [PATCH] =?UTF-8?q?fix(registries):=20notification.queue.depth=20?= =?UTF-8?q?=ED=96=89=EC=9D=B4=20=EC=98=AE=EA=B8=B4=20worker=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=EC=9D=84=20=EA=B0=80=EB=A6=AC=ED=82=A8=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 문제: main 99cc4f59(#38 병합) push run의 :app-bootstrap:documentContractTest가 MetricsRegistryCodeAlignmentTest.everyRowNamesTheMainFileThatRegistersIt에서 실패한다. #38의 2d274a684가 NotificationSchedulerWorker를 adapter:outbound:notification(platform/dispatch)에서 composition:notification-platform(composition/notification)으로 옮겼는데, metrics.yaml의 notification.queue.depth 행 registered_by는 옛 경로를 가리킨다. 이 대조 시험은 main 단계(mainCheck)에서만 돌아 #38의 PR run은 초록이었다. #37은 이 파일을 건드리지 않았다. 방법: 코드가 맞다. 옮긴 것은 #38의 의도한 구조 변경이고 gauge는 새 파일 96줄에서 NotificationMetricName.QUEUE_DEPTH로 등록된다. 그래서 registry의 registered_by만 새 경로로 바꾼다. 같은 모양: #37·#38이 지우거나 옮긴 파일 27개의 옛 경로와 클래스 이름을 살아 있는 문서·registry에서 찾았다. 남은 것은 이 행 하나다. 검증: desktop, 트리 fcc67388, `./gradlew :app-bootstrap:documentContractTest --rerun --no-build-cache` rc=0, 79개 통과(실패 0). 로그 ~/be-main-red2-logs/c-doccontract.log. 수정 전 실패는 main run의 같은 태스크 (79개 중 1개 실패). Fixes: 2d274a684e3a ("refactor(application)!: 시스템 쓰기와 운영자 연산을 유스케이스 계약 안으로 옮긴다") --- docs/registries/metrics.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/registries/metrics.yaml b/docs/registries/metrics.yaml index 4722c3ba..c818f9d7 100644 --- a/docs/registries/metrics.yaml +++ b/docs/registries/metrics.yaml @@ -875,7 +875,7 @@ metrics: required_test: contract-verification:metrics-cardinality source: "src/application/notification/src/main/java/dev/caskeleton/application/notification/platform/observation/NotificationMetricName.java" constant: NotificationMetricName.QUEUE_DEPTH - registered_by: "src/adapter/outbound/notification/src/main/java/dev/caskeleton/adapter/outbound/notification/platform/dispatch/NotificationSchedulerWorker.java" + registered_by: "src/bootstrap/notification-platform/src/main/java/dev/caskeleton/composition/notification/NotificationSchedulerWorker.java" # === outbound HTTP client (adapter:outbound:httpclient를 켤 때) === # Spring의 RestClient observation은 끄고 이 이름으로 기록한다(tag 이름도 이 leaf 것이다). attempt의 outcome은