Repository navigation
chore: add the shared DIRACGrid Renovate config preset - #7
Merged
Merged
Conversation
This was referenced Nov 16, 2026
Open
fstagni
marked this pull request as ready for review
November 16, 2026 09:50
fstagni
force-pushed
the
renovate-preset
branch
from
November 16, 2026 09:52
e74cfca to
ff0cd92
Compare
- Rename renovate-config.json5 to renovate-config.json: Renovate appends ".json" to a preset name without extension, so the documented `local>DIRACGrid/.github//renovate-config` never found the .json5 file. - Drop the pixi-only lockFileMaintenance group: the pep621 manager also refreshes pixi.lock (via [tool.pixi]), so the group split one refresh into two PRs (diracx#1174 and #1175 touch the same pixi.lock). - State that lock file maintenance skips minimumReleaseAge; the cooldown for transitive deps is pixi's `exclude-newer = "7d"`. Do not refresh npm lock files, which have no rolling equivalent. - Exempt DIRACGrid's own Actions, reusable workflows and images from the cooldown: refs pinned to a branch have no timestamp and were blocked forever under timestamp-required. - Drop the "Major version updates" group (it bundled every major in one PR; Renovate already separates majors per dependency) and the no-op automerge: false rules (they also overrode a repo-level automerge). - Use labels + addLabels so rules add labels instead of replacing them. - Add :configMigration, and a workflow validating the preset as repo config, since every repo breaks at once if it is invalid. Assisted-by: Claude:claude-opus-5-5
aldbr
approved these changes
Nov 16, 2026
This was referenced Nov 16, 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.
Part of #5.
Adds
renovate-config.json, the org-wide Renovate baseline, so that per-reporenovate.jsonfiles stop copy-pasting the same policy:config:recommended+helpers:pinGitHubActionDigests(digest pinning of GitHub Actions, which zizmor'sunpinned-usesaudit asks for; the pins keep receiving updates) +:configMigration(PRs that migrate deprecated options such asmatchPackagePatternsandfileMatch)minimumReleaseAge: 7 days(supply-chain cooldown for direct dependencies). DIRACGrid's own Actions, reusable workflows andghcr.io/diracgridimages are exempt: refs pinned to a branch (@<sha> # main) have no release timestamp and would otherwise never get a digest update.dependencies+github-actionspixi.lockwhether it comes frompixi.tomlor[tool.pixi]inpyproject.tomlAbout cooldowns and lock files. Lock file maintenance re-resolves every dependency to its newest version and does not apply
minimumReleaseAge. The cooldown for transitive dependencies therefore has to come from pixi: setexclude-newer = "7d"in the workspace (diracx and DIRACOS2 already do). npm has no rolling equivalent, so npm lock files are not refreshed blindly.A CI job validates the preset with
renovate-config-validator --strict, because a broken preset breaks Renovate in every repo at once.Repos adopt it with a one-liner:
{ "extends": ["local>DIRACGrid/.github//renovate-config"] }Repos with maintained release branches (DIRAC, WebAppDIRAC) also set
"baseBranchPatterns": ["$default", "/^rel-/"].Follow-up PRs will migrate the repos that already use Renovate (diracx, diracx-web, diracx-charts, DIRACOS2, intercede, signurlarity) to this preset; merge this one first: until it lands on
main, those references cannot resolve.