From 05244b726678d4a57dcca597674ba8c21b63863c Mon Sep 17 00:00:00 2001 From: Runzhen Wang Date: Mon, 30 Mar 2026 22:40:09 +0000 Subject: [PATCH] test case seq --- e2e/scenario_gpu_daemonset_test.go | 2 +- e2e/scenario_gpu_managed_experience_test.go | 12 ++++++------ e2e/test_helpers.go | 5 +++++ 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/e2e/scenario_gpu_daemonset_test.go b/e2e/scenario_gpu_daemonset_test.go index 2b98e3d0384..9b8530fb630 100644 --- a/e2e/scenario_gpu_daemonset_test.go +++ b/e2e/scenario_gpu_daemonset_test.go @@ -30,7 +30,7 @@ const ( // This is the "upstream" deployment model commonly used by customers who manage their own // NVIDIA device plugin deployment. func Test_Ubuntu2204_NvidiaDevicePlugin_Daemonset(t *testing.T) { - RunScenario(t, &Scenario{ + RunScenarioSequential(t, &Scenario{ Description: "Tests that NVIDIA device plugin works when deployed as a DaemonSet (not systemd service)", Tags: Tags{ GPU: true, diff --git a/e2e/scenario_gpu_managed_experience_test.go b/e2e/scenario_gpu_managed_experience_test.go index 6971e7cfabd..400eb09a78a 100644 --- a/e2e/scenario_gpu_managed_experience_test.go +++ b/e2e/scenario_gpu_managed_experience_test.go @@ -188,7 +188,7 @@ func Test_DCGM_Exporter_Compatibility(t *testing.T) { for _, tc := range testCases { tc := tc // capture range variable for parallel execution t.Run(tc.name, func(t *testing.T) { - RunScenario(t, &Scenario{ + RunScenarioSequential(t, &Scenario{ Description: tc.description, Tags: Tags{ GPU: true, @@ -239,7 +239,7 @@ func Test_DCGM_Exporter_Compatibility(t *testing.T) { } func Test_Ubuntu2404_NvidiaDevicePluginRunning(t *testing.T) { - RunScenario(t, &Scenario{ + RunScenarioSequential(t, &Scenario{ Description: "Tests that NVIDIA device plugin and DCGM Exporter are running & functional on Ubuntu 24.04 GPU nodes", Tags: Tags{ GPU: true, @@ -314,7 +314,7 @@ func Test_Ubuntu2404_NvidiaDevicePluginRunning(t *testing.T) { } func Test_Ubuntu2204_NvidiaDevicePluginRunning(t *testing.T) { - RunScenario(t, &Scenario{ + RunScenarioSequential(t, &Scenario{ Description: "Tests that NVIDIA device plugin and DCGM Exporter are running & functional on Ubuntu 22.04 GPU nodes", Tags: Tags{ GPU: true, @@ -388,7 +388,7 @@ func Test_Ubuntu2204_NvidiaDevicePluginRunning(t *testing.T) { } func Test_AzureLinux3_NvidiaDevicePluginRunning(t *testing.T) { - RunScenario(t, &Scenario{ + RunScenarioSequential(t, &Scenario{ Description: "Tests that NVIDIA device plugin and DCGM Exporter are running & functional on Azure Linux v3 GPU nodes", Tags: Tags{ GPU: true, @@ -459,7 +459,7 @@ func Test_AzureLinux3_NvidiaDevicePluginRunning(t *testing.T) { } func Test_Ubuntu2404_NvidiaDevicePluginRunning_MIG(t *testing.T) { - RunScenario(t, &Scenario{ + RunScenarioSequential(t, &Scenario{ Description: "Tests that NVIDIA device plugin and DCGM Exporter work with MIG enabled on Ubuntu 24.04 GPU nodes", Tags: Tags{ GPU: true, @@ -536,7 +536,7 @@ func Test_Ubuntu2404_NvidiaDevicePluginRunning_MIG(t *testing.T) { } func Test_Ubuntu2204_NvidiaDevicePluginRunning_WithoutVMSSTag(t *testing.T) { - RunScenario(t, &Scenario{ + RunScenarioSequential(t, &Scenario{ Description: "Tests that NVIDIA device plugin and DCGM Exporter work via NBC EnableManagedGPU field without VMSS tag", Tags: Tags{ GPU: true, diff --git a/e2e/test_helpers.go b/e2e/test_helpers.go index 6b05a5d5924..c331829288f 100644 --- a/e2e/test_helpers.go +++ b/e2e/test_helpers.go @@ -86,6 +86,11 @@ func RunScenario(t *testing.T, s *Scenario) error { return runScenario(t, s) } +func RunScenarioSequential(t *testing.T, s *Scenario) error { + // Default path + return runScenario(t, s) +} + func runScenarioWithPreProvision(t *testing.T, original *Scenario) { // This is hard to understand. Some functional magic is used to run the original scenario in two stages. // 1. Stage 1: Run the original scenario with pre-provisioning enabled, but skip the main validation and validate only pre-provisioning.