Skip to content

Commit 0ee2c7e

Browse files
authored
fix(ci): wait for seed containers that already exited (#1090)
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
1 parent a498919 commit 0ee2c7e

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,16 @@ jobs:
8080
working-directory: ./tests
8181
run: |
8282
echo "Waiting for seed container to finish..."
83-
docker compose wait seed
83+
SEED_CONTAINER_ID=$(docker compose ps --all --quiet seed)
84+
if [ -z "$SEED_CONTAINER_ID" ]; then
85+
echo "::error::Seed container not found"
86+
exit 1
87+
fi
88+
SEED_EXIT_CODE=$(docker wait "$SEED_CONTAINER_ID")
89+
if [ "$SEED_EXIT_CODE" != "0" ]; then
90+
echo "::error::Database seeding failed with exit code $SEED_EXIT_CODE"
91+
exit 1
92+
fi
8493
sleep 2
8594
8695
- name: Run Handler Integration Tests

0 commit comments

Comments
 (0)