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} )