Skip to content

Commit 1bdc126

Browse files
committed
test(e2e): default GPU probe image
Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent f9435b4 commit 1bdc126

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

‎e2e/rust/tests/gpu_device_selection.rs‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const SANDBOX_CREATE_TIMEOUT: Duration = Duration::from_secs(600);
2121
const CDI_GPU_DEVICE_ALL: &str = "nvidia.com/gpu=all";
2222
const CDI_GPU_DEVICE_PREFIX: &str = "nvidia.com/gpu=";
2323
const GPU_PROBE_IMAGE_ENV: &str = "OPENSHELL_E2E_GPU_PROBE_IMAGE";
24+
const DEFAULT_GPU_PROBE_IMAGE: &str = "nvcr.io/nvidia/base/ubuntu:noble-20251013";
2425

2526
fn gpu_lines(output: &str) -> Vec<String> {
2627
strip_ansi(output)
@@ -36,13 +37,7 @@ fn gpu_probe_image() -> String {
3637
.ok()
3738
.map(|value| value.trim().to_string())
3839
.filter(|value| !value.is_empty())
39-
.unwrap_or_else(|| {
40-
panic!(
41-
"{GPU_PROBE_IMAGE_ENV} must be set to a container image that supports \
42-
NVIDIA Container Toolkit CDI injection (set by \
43-
.github/workflows/e2e-gpu-test.yaml in CI)"
44-
)
45-
})
40+
.unwrap_or_else(|| DEFAULT_GPU_PROBE_IMAGE.to_string())
4641
}
4742

4843
fn object_string<'a>(object: &'a Map<String, Value>, key: &str) -> Option<&'a str> {

0 commit comments

Comments
 (0)