Skip to content

Commit cf30367

Browse files
committed
fixes
1 parent 278b546 commit cf30367

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,18 @@ jobs:
105105
if: matrix.os == 'ubuntu-latest'
106106
run: |
107107
git clone --depth 1 https://github.com/openml/services.git
108-
cd services
108+
109+
- name: Start Docker Services
110+
if: matrix.os == 'ubuntu-latest'
111+
working-directory: ./services
112+
run: |
113+
docker compose --profile rest-api --profile minio up -d
114+
115+
echo "Waiting for PHP API to boot..."
116+
timeout 60s bash -c 'until [ "$(docker inspect -f {{.State.Health.Status}} openml-php-rest-api)" == "healthy" ]; do sleep 5; done'
117+
118+
echo "Final Verification: Gateway Connectivity..."
119+
curl -sSf http://localhost:8000/api/v1/xml/data/1 > /dev/null
109120
110121
- name: Show installed dependencies
111122
run: python -m pip list

openml/_api_calls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def _send_request( # noqa: C901, PLR0912
362362
files: FILE_ELEMENTS_TYPE | None = None,
363363
md5_checksum: str | None = None,
364364
) -> requests.Response:
365-
n_retries = max(1, config.connection_n_retries)
365+
n_retries = 1
366366

367367
response: requests.Response | None = None
368368
delay_method = _human_delay if config.retry_policy == "human" else _robot_delay

0 commit comments

Comments
 (0)