Skip to content

Commit cf8b845

Browse files
committed
fix: resolve CI issues in v2-api-tests workflow
- Replace curl with wget in healthchecks (curl not available in ChromaDB container) - Fix checkout action version from v5 to v4 (v5 doesn't exist) - Fix download-artifact action version from v5 to v4 - Use /api/v1 endpoint for healthcheck (more reliable)
1 parent a7233a9 commit cf8b845

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/v2-api-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ jobs:
7373
CHROMA_SERVER_AUTH_TOKEN_TRANSPORT_HEADER: 'X_CHROMA_TOKEN'
7474
CHROMA_SERVER_AUTH_CREDENTIALS: 'test-token'
7575
options: >-
76-
--health-cmd "curl -f http://localhost:8000/api/v2 || exit 1"
76+
--health-cmd "wget -q --spider http://localhost:8000/api/v1 || exit 1"
7777
--health-interval 10s
7878
--health-timeout 5s
7979
--health-retries 5
8080
8181
steps:
8282
- name: Checkout code
83-
uses: actions/checkout@v5
83+
uses: actions/checkout@v4
8484

8585
- name: Set up Java ${{ matrix.java-version }}
8686
uses: actions/setup-java@v4
@@ -197,7 +197,7 @@ jobs:
197197

198198
steps:
199199
- name: Download all test results
200-
uses: actions/download-artifact@v5
200+
uses: actions/download-artifact@v4
201201
with:
202202
path: test-artifacts
203203

@@ -266,14 +266,14 @@ jobs:
266266
ALLOW_RESET: 'TRUE'
267267
IS_PERSISTENT: 'FALSE'
268268
options: >-
269-
--health-cmd "curl -f http://localhost:8000/api/v2 || exit 1"
269+
--health-cmd "wget -q --spider http://localhost:8000/api/v1 || exit 1"
270270
--health-interval 10s
271271
--health-timeout 5s
272272
--health-retries 5
273273
274274
steps:
275275
- name: Checkout code
276-
uses: actions/checkout@v5
276+
uses: actions/checkout@v4
277277

278278
- name: Set up Java 17
279279
uses: actions/setup-java@v4

0 commit comments

Comments
 (0)