diff --git a/.github/renovate.json b/.github/renovate.json index b958a649df2..b22463dd72d 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -666,7 +666,7 @@ "aks/aks-gpu-grid" ], "groupName": "nvidia-gpu-grid", - "versioning": "regex:^(?\\d+)\\.(?\\d+)\\.(?\\d+)-(?\\d{14})$", + "versioning": "regex:^(?\\d+)\\.(?\\d+)(\\.(?\\d+))?-(?\\d{14})$", "automerge": false, "enabled": true, "ignoreUnstable": false, diff --git a/parts/common/components.json b/parts/common/components.json index a5bcc495783..81ebe8c1245 100644 --- a/parts/common/components.json +++ b/parts/common/components.json @@ -711,7 +711,7 @@ "downloadURL": "mcr.microsoft.com/aks/aks-gpu-grid:*", "gpuVersion": { "renovateTag": "registry=https://mcr.microsoft.com, name=aks/aks-gpu-grid", - "latestVersion": "570.211.01-20260522192315" + "latestVersion": "570.237-20260817204535" } }, { diff --git a/pkg/agent/datamodel/gpu_components_test.go b/pkg/agent/datamodel/gpu_components_test.go index 9dc78b327fb..16de9ab7fb2 100644 --- a/pkg/agent/datamodel/gpu_components_test.go +++ b/pkg/agent/datamodel/gpu_components_test.go @@ -32,8 +32,12 @@ func TestLoadConfig(t *testing.T) { } // Define regular expressions for expected formats - versionRegex := `^\d+\.\d+\.\d+$` // match version strings in a format like "X.Y.Z", where each of X, Y, and Z are numbers. e.g., "550.90.12" - suffixRegex := `^\d{14}$` // match a string of exactly 14 digits, which can represent a timestamp e.g., "20241021235610" + // Match NVIDIA driver versions, which have two or more dot-separated numeric components. + // Most are three components ("550.90.12"), but NVIDIA also ships two-component vGPU builds + // (e.g. GRID "570.237"), so the third component must be optional. This mirrors the version + // guard in the upstream Azure/aks-gpu repo: ^[0-9]+(\.[0-9]+)+$ + versionRegex := `^\d+(\.\d+)+$` + suffixRegex := `^\d{14}$` // match a string of exactly 14 digits, which can represent a timestamp e.g., "20241021235610" // Compile the regular expressions versionPattern := regexp.MustCompile(versionRegex)