Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 34 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,23 @@ jobs:
- name: Start triton server with example model
if: startsWith( matrix.os, 'ubuntu' ) && matrix.python-version != '3.14t'
run: |
docker run -d --rm -p 8000:8000 -p 8001:8001 -p 8002:8002 -v ${{ github.workspace }}/tests/samples/triton_models_test:/models nvcr.io/nvidia/tritonserver:25.11-pyt-python-py3 tritonserver --model-repository=/models
# Pulls from nvcr.io intermittently time out. Back off 15s, 1m, 5m, 20m
# between attempts: long enough to ride out a transient registry outage,
# bounded so a sustained one costs ~26 minutes. On exhaustion report the
# server as unavailable so the triton tests skip rather than failing the
# job. A server that starts but misbehaves still fails the tests.
backoff=(15 60 300 1200)
for attempt in 0 1 2 3 4; do
if docker run -d --rm -p 8000:8000 -p 8001:8001 -p 8002:8002 -v ${{ github.workspace }}/tests/samples/triton_models_test:/models nvcr.io/nvidia/tritonserver:25.11-pyt-python-py3 tritonserver --model-repository=/models; then
exit 0
fi
if [ "${attempt}" -lt 4 ]; then
echo "::warning::triton server start failed (attempt $((attempt + 1))/5); retrying in ${backoff[$attempt]}s"
sleep "${backoff[$attempt]}"
fi
done
echo "::warning::triton server unavailable after 5 attempts; triton tests will skip"
echo "TRITON_UNAVAILABLE=1" >> "$GITHUB_ENV"
- name: Test with pytest (without dask Client)
run: |
python -m pytest --cov-report=xml --cov=coffea --ignore=tests/test_taskvine_dask.py --ignore=tests/test_taskvine_virtual.py -m "not dask_client" -n 4
Expand Down Expand Up @@ -166,7 +182,23 @@ jobs:
- name: Start triton server with example model
if: startsWith( matrix.os, 'ubuntu' ) && matrix.python-version != '3.14t'
run: |
docker run -d --rm -p 8000:8000 -p 8001:8001 -p 8002:8002 -v ${{ github.workspace }}/tests/samples/triton_models_test:/models nvcr.io/nvidia/tritonserver:25.11-pyt-python-py3 tritonserver --model-repository=/models
# Pulls from nvcr.io intermittently time out. Back off 15s, 1m, 5m, 20m
# between attempts: long enough to ride out a transient registry outage,
# bounded so a sustained one costs ~26 minutes. On exhaustion report the
# server as unavailable so the triton tests skip rather than failing the
# job. A server that starts but misbehaves still fails the tests.
backoff=(15 60 300 1200)
for attempt in 0 1 2 3 4; do
if docker run -d --rm -p 8000:8000 -p 8001:8001 -p 8002:8002 -v ${{ github.workspace }}/tests/samples/triton_models_test:/models nvcr.io/nvidia/tritonserver:25.11-pyt-python-py3 tritonserver --model-repository=/models; then
exit 0
fi
if [ "${attempt}" -lt 4 ]; then
echo "::warning::triton server start failed (attempt $((attempt + 1))/5); retrying in ${backoff[$attempt]}s"
sleep "${backoff[$attempt]}"
fi
done
echo "::warning::triton server unavailable after 5 attempts; triton tests will skip"
echo "TRITON_UNAVAILABLE=1" >> "$GITHUB_ENV"
- name: Test with pytest (with dask Client)
run: |
python -m pytest --cov-report=xml --cov=coffea --ignore=tests/test_taskvine_dask.py --ignore=tests/test_taskvine_virtual.py -m "dask_client" -n 4
Expand Down
Loading
Loading