Skip to content

Commit 6e45a28

Browse files
AchoArnoldCopilot
andcommitted
fix: update CI workflow to check MongoDB instead of sqld
Replace the sqld health check with a MongoDB mongosh ping check since the test infrastructure now uses mongo:7 instead of sqld. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent e0f4d24 commit 6e45a28

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/api.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ jobs:
3737
- name: Wait for services to be healthy
3838
working-directory: ./tests
3939
run: |
40-
echo "Waiting for sqld to be healthy..."
40+
echo "Waiting for MongoDB to be healthy..."
4141
for i in $(seq 1 20); do
42-
if curl -sf http://localhost:8090/health >/dev/null 2>&1; then
43-
echo "sqld is healthy!"
42+
if docker compose exec mongodb mongosh --eval "db.runCommand('ping').ok" --quiet >/dev/null 2>&1; then
43+
echo "MongoDB is healthy!"
4444
break
4545
fi
4646
if [ $i -eq 20 ]; then
47-
echo "sqld failed to become healthy"
48-
docker compose logs sqld
47+
echo "MongoDB failed to become healthy"
48+
docker compose logs mongodb
4949
exit 1
5050
fi
51-
echo "sqld attempt $i/20 - waiting 3s..."
51+
echo "MongoDB attempt $i/20 - waiting 3s..."
5252
sleep 3
5353
done
5454

0 commit comments

Comments
 (0)