Repository navigation
Description
Update 2026-11-26 (infra move): the shared preset is no longer in this repository.
.github/renovate/base.jsonis gone. The preset isrenovate/base.jsonof dan-petty/infra, and the checks of infra already validate it.- Validate
.github/renovate.jsononly.
Problem
The plan rules of #6080 say that a change of a manifest, a workflow or a config file names a validator command or a live check as its proof, and never a test that reads the file. No devops command validates the Renovate config (.github/renovate.json). No source file, workflow or pre-commit hook runs renovate-config-validator. So a plan that changes the Renovate config has no command to name as its proof, and the old tests that read .github/renovate.json were the only check (#6060, #6075).
Expected behavior
- A
devops cirow (or adevopscommand that the row calls) runs the Renovate config validator of the pinned Renovate release, offline, on.github/renovate.json, and fails on an invalid config. - The pre-push hook runs the row when a push changes a Renovate config file, as it runs actionlint and zizmor for a workflow.
docs/TESTING.mdnames the command as the proof of a Renovate config change, next to the other proof commands of fix(roadmap): Stop plan rules that ask for config value tests #6080.
Related
- test(k8s): Drop the tests that repeat third-party version pins #6060, fix(k8s): Drop the tests that assert values of manifests and config #6075, fix(roadmap): Stop plan rules that ask for config value tests #6080, ci(deps): Give each Renovate update of runtime code the fix prefix #6081.
Alternatives check of 2026-12-01: in-use.
The repository already uses this tool.
Tool: renovatebot/renovate (https://github.com/renovatebot/renovate), AGPL-3.0, last activity 2026-12-01, maintained.
Reason: Searches found renovatebot/renovate, whose renovate-config-validator applies the schema and rules of the pinned release to a local config. The issue already names it as the proposed solution. Only the devops ci row, hook entry and docs line remain.
Covers:
- Checks the config against the schema and rules of the pinned release
- Reports the invalid option in the failure message
- Validates a local copy with no network when presets are local
Lacks:
- No offline mode for github> presets; the row must write an empty local preset
- No row, changed-path selection or pre-push hook entry in this repository
- Root package.json devDependency pin conflicts with the install path that ADR 0010 rejected
Proposed design
Problem statement
No devops command validates .github/renovate.json. A plan that changes this config file has no validator command to name as its proof. The change adds a renovate row to devops ci, runs that row in the pre-push hook, and names the command in docs/TESTING.md.
Acceptance criteria
Requirement: renovate ci row
devops ci SHALL provide a check named renovate that runs renovate-config-validator on the Renovate config of this repository.
Scenario: an invalid Renovate config
- WHEN a test gives the process fake a validator exit code of 1 and the message
Invalid configuration option - THEN the
renovatecheck fails and its message holdsInvalid configuration option
Requirement: offline run with a local preset
The renovate check MUST replace each extends entry that names a preset of another repository with a local empty preset before it runs the validator.
Scenario: a config that extends a preset of another repository
- WHEN a test runs the check on a config whose
extendsholdsgithub>dan-petty/infra//renovate/base - THEN the process fake records one validator call and the
renovate.jsonin its working directory extends nogithub>preset
Requirement: row selection by changed path
The renovate check MUST run when the changed paths hold .github/renovate.json and MUST NOT run when they hold no Renovate config.
Scenario: a push changes the Renovate config
- WHEN a test gives the changed paths
.github/renovate.jsonand thendocs/TESTING.mdto the check selection - THEN the selection holds
renovatefor the first list and is empty for the second
Requirement: pre-push hook row
The pre-push hook MUST run uv run devops ci --check --only renovate when a push changes .github/renovate.json.
Scenario: a push that changes the Renovate config
- WHEN a person pushes a branch that changes
.github/renovate.jsonwith the hook installed - THEN the hook runs
uv run devops ci --check --only renovate, and it stops the push when that command exits non-zero
Requirement: testing document proof command
docs/TESTING.md MUST name uv run devops ci --check --only renovate as the proof of a change to .github/renovate.json.
Scenario: the proof-command list of the testing document
- WHEN the branch runs
uv run devops ci docs - THEN the command exits 0 and the proof-command list holds
uv run devops ci --check --only renovate
Existing Tool Considered
renovatebot/renovate (https://github.com/renovatebot/renovate) gets the verdict in-use from the alternatives check in the issue body. That block lists what the tool covers and what it lacks. This proposal supplies the three parts that the block lists as lacking: the renovate row of devops ci, the pre-push hook entry and the docs/TESTING.md line. It also covers the offline gap: the row validates a temporary copy, and that copy replaces the preset of another repository with a local empty preset.
Key questions
- Which tool validates the Renovate config?:
renovate-config-validatorfrom therenovatepackage of renovatebot/renovate. The alternatives check gives the verdictin-usefor that tool. (best practice) [sources: .github/renovate.json]- Chosen: the
renovate-config-validatorbinary of therenovatepackage. It applies the schema and the rules of the pinned release, and the alternatives check gives the verdictin-use. - Rejected: a JSON Schema check with
check-jsonschema. It needs the schema from the network, and it misses the semantic rules of the release, such as a deprecated setting. - Rejected: a validator that this project writes. It repeats the rules of Renovate, and it takes more tokens and time to build and keep.
- Chosen: the
- How does the row validate
.github/renovate.jsonoffline when itsextendsnames a preset of another repository?: The row writes a temporary copy of the config. In that copy, eachextendsentry that names another repository becomes a local empty preset file. The row runs the validator in the directory of the copy. The checks of dan-petty/infra validate the preset itself. (best practice) [sources: .github/renovate.json, docs/TESTING.md]- Chosen: a temporary copy with a local empty preset. It keeps the schema and rule check of the local config, and it needs no network.
- Rejected: a fetch of the preset from GitHub. It needs the network and another repository, and the issue asks for an offline run.
- Rejected: no validation of this repository. It leaves a change of the Renovate config with no proof command.
- How does the row get the validator binary?: Add
renovateas a pinned devDependency of the rootpackage.json. The row runsnode_modules/.bin/renovate-config-validator. Renovate updates the pin. (best practice) [sources: package.json, docs/TESTING.md]- Chosen: a pinned devDependency in the root
package.json. The repository already installs the rootpackage.jsonwithnpm ci, and Renovate updates the pin. - Rejected: the container image
ghcr.io/renovatebot/renovate. The row would need a container runtime and a network pull on each run. - Rejected: a global npm install. No file pins the version, so the check changes with the host.
- Chosen: a pinned devDependency in the root
- Where does the code of the row live, and what is its check name?: The check has the name
renovate. Its code sits intests/gate/with the code of the other rows, and the runnertests/gate/runner.pyruns it. (best practice) [sources: docs/TESTING.md, tests/gate/runner.py]- Chosen: a row of
devops ciwith its code intests/gate/.docs/TESTING.mdputs a check of a tool configuration in a row ofdevops ci, not in a pytest test. - Rejected: a pytest test that reads the config file. The rule of fix(roadmap): Stop plan rules that ask for config value tests #6080 refuses a test that reads a config file, and the
test-treerow refuses a new one.
- Chosen: a row of
- Which changed paths select the
renovaterow?: The row runs when the changed paths hold.github/renovate.json,package.json,package-lock.jsonor a file of the row. No other Renovate config file exists in this repository. (best practice) [sources: .github/renovate.json, docs/TESTING.md]- Chosen: the Renovate config, its pin and the files of the row. A change of the config or of the row can break the check, and no other path needs it.
- Rejected: each changed path. The validator would run on a docs change, and it would slow the pre-push hook.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 17, 2026
Both items work on the rule that a config change must name a validator command; #6080 changes the plan rules, this candidate adds the specific Renovate validator step.devops-cli-service commentedon Nov 18, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (10)
Tools considered:
Searches run:
Sources:
dan-petty commentedon Nov 21, 2026
The onboarding config of the self-hosted Renovate moves to the homelab values of dan-petty/homelab#95, and the shared presets move to dan-petty/infra#6. devops ci validates only the Renovate config of this repository; infra and homelab run
renovate-config-validatorin their own CI.dan-petty commentedon Nov 24, 2026
The self-hosted Renovate workload moves out of the product into dan-petty/homelab#95.
devops-cli-service commentedon Nov 27, 2026
Next step: the stage job writes the plan of the item. See the section Proposed design of the body.