Repository navigation
Description
User Story
I'm retiring e2e/rust onto testkit (#5281), and OpenShell's GPU sandbox support (--gpu, CDI device selection on Docker) currently has no automated end-to-end coverage. I need the GPU tests on testkit and running on GPU hardware again, so e2e/rust can be deleted without losing GPU coverage and GPU regressions get caught before release.
Description
GPU E2E has been off since #5798 (11-20). GitHub-hosted runners have no GPUs, so after the move to the ai-openshell org, CI stopped calling .github/workflows/e2e-gpu-test.yaml and stopped publishing OpenShell / GPU E2E. Nothing tracks turning it back on.
The GPU tests are also among the last files in e2e/rust (778 lines). Since #5909 froze e2e/rust, they can't stay there, and milestone 1 of #5281 can't delete the crate until they move.
The work has two parts:
1. Port the GPU tests to testkit. This follows the PR9 rows in the #5297 plan:
e2e/rust file |
Tests | Destination |
|---|---|---|
tests/gpu/device_selection.rs |
default device, each discovered device, all devices, invalid device (4) | tests/suites/features/gpu-cdi. Each case is compared with a plain container on the same engine. Tighten the invalid-device assertion. |
tests/gpu/device_selection.rs |
CDI and docker info parsing (5 unit tests) |
tests/support/gpu. Plain unit tests that run in cargo test without a GPU. |
tests/gpu/workloads.rs |
gpu_workload_manifest_runs_expected_workloads |
tests/suites/features/gpu. Uses only the public API (--gpu, --from). |
tests/gpu.rs |
module wrapper | removed |
The workload images (e2e/gpu/images/*, tasks/scripts/e2e-gpu-build-images.sh) move with the suite, or the suite keeps using them under the same build task.
2. Give the GPU suites a CI lane. GPU is one of the two cases (with VM/KVM) that keep a host lane instead of tmachine. Options:
- NVIDIA self-hosted GPU runners registered to the
ai-openshellorg. These would be the same machine types as before:linux-arm64-gpu-l4,linux-amd64-gpu-rtxpro6000andwsl-amd64-gpu-rtxpro6000. - GitHub or CNCF-provided GPU runners, if any are available to the org.
- Interim only: a documented manual or scheduled run of the host-lane script on a GPU host, with results posted to the PR.
Whichever lane we choose decides how e2e-gpu-test.yaml changes. It either runs features/gpu and features/gpu-cdi in place of e2e:docker:gpu, or it's deleted.
Context
- ci(e2e): disable GPU E2E #5798: disabled GPU E2E.
e2e-gpu-test.yamlis still in the tree but nothing calls it. - test(e2e): decide which e2e/rust tests to port and in what order #5297: the PR9 (VM and GPU) plan rows. This issue splits out the GPU half, so the VM half doesn't have to wait for a GPU lane.
- docs(e2e): direct new tests to testkit #5909: froze
e2e/rust. - test(runner): apply per-family nextest config and a thread count to runner rows #5295: the GPU tests need 10-minute per-test timeouts.
- test(tmachine): add hardware-free Docker CDI qualification #4460: Docker CDI qualification in tmachine with fake devices. It covers part of the CDI code path without GPUs, but not real-GPU device selection or CUDA workloads.
- Only Docker has a GPU row today.
e2e:podman:gpuexists intasks/test.toml, but no workflow runs it.
Definition of Done
-
features/gpu,features/gpu-cdiand thetests/support/gpuunit tests exist on testkit. The unit tests run in normal CI without a GPU. -
e2e/rust/tests/gpu.rsande2e/rust/tests/gpu/are deleted, along with every reference to them (GPU tasks, thee2e-gpucargo feature, nextest groups). - A GPU lane runs
features/gpuandfeatures/gpu-cdion at least one Linux GPU runner. It is either wired into Branch E2E behind a label or run on a schedule, and the status-check and label docs (CI.md,CONTRIBUTING.md) are updated to match. -
e2e-gpu-test.yamleither runs the new suites or is deleted. - Follow-up issues exist for anything deferred: the WSL and arm64 rows, and a Podman GPU row.
Activity