From 083c6910fa73fbe114632c8fe43007a9253589e0 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Thu, 12 Nov 2026 07:53:10 +0900 Subject: [PATCH] =?UTF-8?q?fix(compose):=20smoke=20lane=EC=9D=B4=20?= =?UTF-8?q?=EA=B8=B0=EB=B0=98=20=EC=84=9C=EB=B9=84=EC=8A=A4=EB=A5=BC=20?= =?UTF-8?q?=EB=A8=BC=EC=A0=80=20=EB=9D=84=EC=9A=B0=EA=B3=A0=20=EC=95=B1?= =?UTF-8?q?=EC=9D=84=20=EB=9D=84=EC=9A=B4=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 문제: compose smoke는 lane의 오래 도는 서비스를 `up --wait` 한 번에 함께 띄운다. 앱과 Kafka가 동시에 뜨면 앱의 producer가 아직 연결을 받지 않는 broker에 붙어 재시도 WARN을 남기고, 「기동 로그가 조용하다」 검사가 실패한다. main 수동 run 59 (2026-11-11)의 local-messaging lane이 이것으로 실패했다. 같은 lane이 바로 앞 run과 desktop에서는 통과했다(시간 경쟁). 고른 방법: smoke 스크립트가 app이 아닌 서비스를 먼저 `up --wait`로 healthy까지 띄우고, 그다음 app까지 `up --wait`한다. 모든 lane이 app을 가진다. 개발용 compose.yaml은 바꾸지 않는다. 버린 대안: compose.yaml의 app에 kafka `depends_on`(service_healthy)을 거는 것. app은 profile이 다른 여러 lane과 개발 환경이 함께 쓰고, 꺼진 profile의 서비스를 기다리게 되면 그 구성이 시작하지 못한다(`required: false`는 Compose 2.20부터). 위험·한계: lane마다 기반 서비스가 healthy가 될 때까지 기다리는 만큼 lane이 조금 길어진다. 그전에도 `up --wait`가 그만큼 기다렸으므로 차이는 작다. 검증: desktop에서 local-messaging lane, runner nightly 수동 실행(이 PR 본문에 적는다). --- scripts/run-compose-runtime-smoke.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/run-compose-runtime-smoke.sh b/scripts/run-compose-runtime-smoke.sh index 2f2033f2..c06491dc 100755 --- a/scripts/run-compose-runtime-smoke.sh +++ b/scripts/run-compose-runtime-smoke.sh @@ -425,8 +425,17 @@ run_lane() { done 4< <(jq -r '.preStartServices[]?' <<<"${lane_json}") # 3. long-running services only. A one-shot is not a --wait target: it is meant to exit. - local long_running + local long_running backing long_running="$(jq -r '.longRunningServices[]' <<<"${lane_json}")" + # The backing services first, until healthy, then the application. Started together, the + # application met a Kafka broker that did not accept connections yet, its producer logged the + # retries, and the silent-startup check below failed on a race rather than a defect (local-messaging, + # main run 59, 2026-11-11; the same lane passed in the run before and on the desktop). + backing="$(grep -vx app <<<"${long_running}" || true)" + if [[ -n "${backing}" ]]; then + # shellcheck disable=SC2086 + ( cd "${REPO_ROOT}" && docker compose -p "${PROJECT}" "${LANE_ARGS[@]}" up --wait --wait-timeout 300 ${backing} ) + fi # shellcheck disable=SC2086 ( cd "${REPO_ROOT}" && docker compose -p "${PROJECT}" "${LANE_ARGS[@]}" up --wait --wait-timeout 300 ${long_running} )