fix(renovate): enable Renovate version tracking for DCGM AzureLinux 3.0#8276
Open
fix(renovate): enable Renovate version tracking for DCGM AzureLinux 3.0#8276
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Enables Renovate to properly track and bump NVIDIA DCGM package versions for Azure Linux 3.0 by adding a dedicated regex manager + custom HTML datasource, and fixing invalid named-group syntax that was aborting lookups.
Changes:
- Add a custom Renovate datasource (
nvidia-rpm-azl3) to scrape NVIDIA’s AzL3 HTML repo listing and expose RPM versions. - Add a dedicated regex manager to update DCGM AzL3 entries in
parts/common/components.json. - Fix
extractVersionregex named groups to use RE2/JS syntax ((?<version>...)), unblocking Renovate lookup.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| parts/common/components.json | Removes RPM_registry=... prefix from DCGM AzL3 renovate tags so the new dedicated manager/datasource can match. |
| .github/renovate.json | Fixes invalid regex group syntax and adds a new custom datasource + regex manager for DCGM AzL3 RPM version detection. |
djsly
reviewed
Apr 11, 2026
djsly
reviewed
Apr 17, 2026
djsly
approved these changes
Apr 17, 2026
….0 packages - Add dedicated custom regex manager and `nvidia-rpm-azl3` custom datasource for `datacenter-gpu-manager-4-core` and `datacenter-gpu-manager-4-proprietary` on AzureLinux 3.0, scraping the NVIDIA HTML directory listing - Remove `RPM_registry=` prefix from DCGM AzureLinux `renovateTag` entries in `components.json` since NVIDIA's repo uses HTML format, not RPM repodata - Fix `extractVersion` regexes using Python-style `(?P<version>...)` named groups to JavaScript/RE2-style `(?<version>...)`, which caused `config-validation` errors aborting the entire lookup phase Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
- Use generic `[^,]+` capture for `packageName` instead of hardcoding `datacenter-gpu-manager-4-core|datacenter-gpu-manager-4-proprietary`, so future Nvidia AzureLinux packages are matched automatically - Update description to "auto update Nvidia packages" (drop "DCGM") Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
Add `packageRules` entry for `datacenter-gpu-manager-4-core`, `datacenter-gpu-manager-4-proprietary`, and `dcgm-exporter` with `groupName` `nvidia-dcgm` and GPU team as reviewers/assignees. Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
1ddd09d to
bfe68c1
Compare
Devinwong
approved these changes
Apr 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
Fixes Renovate skipping Azure Linux 3.0 version bumps for DCGM packages (
datacenter-gpu-manager-4-coreanddatacenter-gpu-manager-4-proprietary). Three issues were identified and resolved:Missing DCGM AzureLinux regex manager: When DCGM packages were originally added in Add NVIDIA DCGM packages and repository support #7063, only Ubuntu 22.04 and 24.04 Renovate managers were created. The Azure Linux 3.0 entries in
components.jsonhad arenovateTagwithRPM_registry=...prefix and arepository=nvidiafield that didn't match the generic AzureLinux 3.0 RPM regex (which expectedname=immediately followed by, os=azurelinux). This PR adds a dedicated custom regex manager pointing to a newnvidia-rpm-azl3custom datasource that scrapes the NVIDIA AzL3 HTML directory listing for available RPM versions.Wrong
renovateTagformat incomponents.json: The DCGM AzureLinux entries included anRPM_registry=prefix referencing the/repodatapath, but NVIDIA's repo doesn't use standard RPM repodata XML — it's an HTML directory listing. TheRPM_registry=prefix is removed since the registry URL is now hardcoded in thenvidia-rpm-azl3custom datasource'sdefaultRegistryUrlTemplate.Python-style named groups in
extractVersionregexes: Two pre-existingextractVersionentries (foross/binaries/kubernetes/*andoss/v2/kubernetes/*-sysext) used Python-style(?P<version>...)named groups instead of JavaScript/RE2-style(?<version>...). Renovate's regex engine (RE2 viauhop/node-re2) does not support(?P<...>)syntax, causingconfig-validationerrors that aborted the entire lookup phase (lookup: 0ms), preventing version updates for all packages — not just DCGM.Changes
.github/renovate.json:nvidia-rpm-azl3custom datasource withformat: "html"and a JSONata transform that filters RPM filenames, excludesdebuginfovariants, and prepends the1:epoch prefixdatasourceTemplate: "custom.nvidia-rpm-azl3"andversioningTemplate: "deb"(to handle epoch-prefixed versions)extractVersionon line 528:(?P<version>...)→(?<version>...)extractVersionon line 538:(?P<version>...)→(?<version>...)parts/common/components.json:RPM_registry=https://developer.download.nvidia.com/compute/cuda/repos/azl3/x86_64/repodata,prefix fromrenovateTagfordatacenter-gpu-manager-4-coreAzureLinux 3.0 entrydatacenter-gpu-manager-4-proprietaryAzureLinux 3.0 entryVerification
Tested locally with
LOG_LEVEL=debug npx renovate --platform=local --dry-run=lookup:config-validation)nvidia-rpm-azl3datasource fetches the NVIDIA HTML directory and resolves versions correctlyWhich issue(s) this PR fixes:
Inspired by: #8221 (review) and #8220 (review)