Skip to content

Commit 1274865

Browse files
committed
chore(ci): enhance Docker Compose startup error handling
1 parent 37323d9 commit 1274865

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

.github/workflows/client-release-ts.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ jobs:
5050
cp .env.example .env
5151
cp core/config.yaml.example core/config.yaml
5252
53-
docker compose up -d --wait
53+
if ! docker compose up -d --wait --quiet-pull 2>&1; then
54+
echo "❌ Docker compose failed to start, showing logs:"
55+
docker compose logs
56+
exit 1
57+
fi
58+
echo "✅ All containers started successfully"
5459
5560
- name: Wait for API to be ready
5661
run: |

.github/workflows/client-test-py.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ jobs:
4747
cp .env.example .env
4848
cp core/config.yaml.example core/config.yaml
4949
50-
docker compose up -d --wait
50+
if ! docker compose up -d --wait --quiet-pull 2>&1; then
51+
echo "❌ Docker compose failed to start, showing logs:"
52+
docker compose logs
53+
exit 1
54+
fi
55+
echo "✅ All containers started successfully"
5156
5257
- name: e2e test
5358
working-directory: src/client/acontext-py

.github/workflows/client-test-ts.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,12 @@ jobs:
5252
cp .env.example .env
5353
cp core/config.yaml.example core/config.yaml
5454
55-
docker compose up -d --wait
55+
if ! docker compose up -d --wait --quiet-pull 2>&1; then
56+
echo "❌ Docker compose failed to start, showing logs:"
57+
docker compose logs
58+
exit 1
59+
fi
60+
echo "✅ All containers started successfully"
5661
5762
- name: Wait for API to be ready
5863
run: |

.github/workflows/core-test.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ jobs:
4848
run: |
4949
cp .env.example .env
5050
cp core/config.yaml.example core/config.yaml
51-
docker compose up -d --wait
51+
if ! docker compose up -d --wait --quiet-pull 2>&1; then
52+
echo "❌ Docker compose failed to start, showing logs:"
53+
docker compose logs
54+
exit 1
55+
fi
56+
echo "✅ All containers started successfully"
5257
5358
- name: Test with pytest
5459
run: |

0 commit comments

Comments
 (0)