ci: track latest stable LLVM major via Renovate - #81
Merged
Conversation
Replace the hardcoded LLVM/clang version in the Dockerfile with an LLVM_VERSION build argument and add a Renovate regex manager that follows llvm/llvm-project GitHub releases. The extract pattern matches only final llvmorg-X.Y.Z tags, so release candidates never trigger a bump; if apt.llvm.org lags a new major, the Renovate PR's container build fails and gates the merge until packages are published. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Summary
The Dockerfile pinned clang/LLVM to a hardcoded
22with no mechanism to learn about newer stable releases. This makes the version Renovate-managed:LLVM_VERSIONbuild argument (global + per-stage), replacing all hardcoded occurrences — the apt.llvm.org repository line, 12 package names, and 8update-alternativesregistrations across the base and devcontainer stagesllvm/llvm-projectGitHub releases.extractVersionTemplatematches only finalllvmorg-X.Y.Ztags, so-rcprereleases can never trigger a bump; only the major number is extracted (22→23when LLVM 23 ships)Test plan
LLVM_VERSION=22: clang, clang-tidy, clang-format, lldb, and llvm-config all resolve to 22.1.8 via the alternatives symlinks; Valgrind 3.27.1 unaffected🤖 Generated with Claude Code