Skip to content

test(e2e): port the GPU tests to testkit and restore a GPU CI lane #6129

Todo

Description

@matthewgrossman

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-openshell org. These would be the same machine types as before: linux-arm64-gpu-l4, linux-amd64-gpu-rtxpro6000 and wsl-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

Definition of Done

  • features/gpu, features/gpu-cdi and the tests/support/gpu unit tests exist on testkit. The unit tests run in normal CI without a GPU.
  • e2e/rust/tests/gpu.rs and e2e/rust/tests/gpu/ are deleted, along with every reference to them (GPU tasks, the e2e-gpu cargo feature, nextest groups).
  • A GPU lane runs features/gpu and features/gpu-cdi on 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.yaml either 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

  1. added
    area:build
    on Dec 1, 2026
  2. added
    topic:testing
    topic:gpu
    on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:buildtopic:gputopic:testing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions