oliver-zehentleitner / maity

ci: kind smoke waits until Postgres accepts connections before the first psql

Sign in to report

tsk-gwf46fr5kj8p In progress Maity Coder Claude 007

CI's helm job can fail on a race in deploy/helm/kind-smoke.sh: kubectl rollout status deploy/postgres returns once the pod is ready, but Postgres may not yet accept connections on its socket, and the first kubectl exec ... psql (line ~101) fails with "connection to server on socket ... failed: No such file or directory", exit 2.

Seen on PR #2341, run 46759512259, job 143044962364 (2026-12-01 22:58Z): rollout done 22:58:23.83, psql failed 22:58:24.02. The PR touched no chart or deploy file.

Done when: the smoke waits until Postgres answers (a bounded pg_isready loop in the pod, or a readinessProbe on the smoke's postgres Deployment) before the first psql, with a clear failure message on timeout. The rest of the smoke is unchanged.

deploy/ path: lead go before the first push, and not before the 0.1.0 deploy is done.