Skip to content

Commit 17a9485

Browse files
committed
ci(gpu): run Docker GPU e2e workflow
Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent 27e1c84 commit 17a9485

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/e2e-gpu-test.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414

1515
jobs:
1616
e2e-gpu:
17-
name: "E2E GPU (${{ matrix.name }})"
17+
name: "E2E Docker GPU (${{ matrix.name }})"
1818
runs-on: ${{ matrix.runner }}
1919
continue-on-error: ${{ matrix.experimental }}
2020
timeout-minutes: 30
@@ -55,8 +55,12 @@ jobs:
5555
- name: Log in to GHCR
5656
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
5757

58-
- name: Install Python dependencies and generate protobuf stubs
59-
run: uv sync --frozen && mise run --no-deps python:proto
58+
- name: Check Docker GPU prerequisites
59+
run: |
60+
docker info --format '{{json .CDISpecDirs}}'
61+
GPU_PROBE_IMAGE="$(awk '$1 == "FROM" && $3 == "AS" && $4 == "gateway" { print $2; exit }' deploy/docker/Dockerfile.images)"
62+
test -n "${GPU_PROBE_IMAGE}"
63+
docker run --rm --device nvidia.com/gpu=all "${GPU_PROBE_IMAGE}" nvidia-smi -L
6064
6165
- name: Run tests
62-
run: mise run --no-deps --skip-deps e2e:python:gpu
66+
run: mise run --no-deps --skip-deps e2e:docker:gpu

tasks/test.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ description = "Run all end-to-end tests (Rust + Python)"
1212
depends = ["e2e:rust", "e2e:python"]
1313

1414
["e2e:gpu"]
15-
description = "Run GPU end-to-end tests"
15+
description = "Run Docker GPU end-to-end tests"
16+
depends = ["e2e:docker:gpu"]
17+
18+
["e2e:k3s:gpu"]
19+
description = "Run k3s GPU end-to-end tests"
1620
depends = ["e2e:python:gpu"]
1721

1822
["test:rust"]

0 commit comments

Comments
 (0)