From b307fb39b8d62e8069d6018654a9733d4ef896fd Mon Sep 17 00:00:00 2001 From: Fan Yang Date: Thu, 19 Dec 2024 18:21:29 +0800 Subject: [PATCH] debug --- .github/workflows/replication-test.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/replication-test.yml b/.github/workflows/replication-test.yml index b964251..440f700 100644 --- a/.github/workflows/replication-test.yml +++ b/.github/workflows/replication-test.yml @@ -111,8 +111,15 @@ jobs: --env=SOURCE_DSN="$SOURCE_DSN" \ apecloud/myduckserver:latest - # Wait for MyDuck to be ready - sleep 10 + # Wait and check container status + for i in {1..10}; do + if ! docker ps | grep -q myduck; then + echo "MyDuck container exited unexpectedly" + docker logs myduck + exit 1 + fi + sleep 1 + done - name: Verify initial replication run: |