From eb977c1ed86e13fbcb1f2ac018f5625c9dc6a0a9 Mon Sep 17 00:00:00 2001 From: Acho Arnold Ewin Date: Tue, 17 Nov 2026 03:03:48 +0200 Subject: [PATCH] fix(ci): wait for seed containers that already exited Resolve the seed container including stopped containers, wait by its ID, and explicitly reject nonzero seed exit codes. This avoids docker compose wait incorrectly reporting no containers after fast seeding. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: a0fd7292-f3aa-4919-929f-d73c2ac0f0c2 --- .github/workflows/ci.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 77aa77e19..fa7a51e6b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -80,7 +80,16 @@ jobs: working-directory: ./tests run: | echo "Waiting for seed container to finish..." - docker compose wait seed + SEED_CONTAINER_ID=$(docker compose ps --all --quiet seed) + if [ -z "$SEED_CONTAINER_ID" ]; then + echo "::error::Seed container not found" + exit 1 + fi + SEED_EXIT_CODE=$(docker wait "$SEED_CONTAINER_ID") + if [ "$SEED_EXIT_CODE" != "0" ]; then + echo "::error::Database seeding failed with exit code $SEED_EXIT_CODE" + exit 1 + fi sleep 2 - name: Run Handler Integration Tests