Skip to content

Commit 8c143a3

Browse files
mriggerclaude
andcommitted
Fix CnosDB readiness check to use TCP port probe
The /ping endpoint does not exist on CnosDB, causing curl -f to loop forever. Switch to nc -z which just checks that the port is open. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 708af09 commit 8c143a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
run: |
112112
docker pull cnosdb/cnosdb:community-latest
113113
docker run --name cnosdb -p 8902:8902 -d cnosdb/cnosdb:community-latest
114-
until curl -sf http://127.0.0.1:8902/ping 2>/dev/null; do sleep 1; done
114+
until nc -z 127.0.0.1 8902 2>/dev/null; do sleep 1; done
115115
- name: Run Tests
116116
run: |
117117
CNOSDB_AVAILABLE=true mvn -Dtest=TestCnosDBNoREC test

0 commit comments

Comments
 (0)