Skip to content

feat(deps): Validate the Renovate config in devops ci #6090

Open

Description

@dan-petty

Update 2026-11-26 (infra move): the shared preset is no longer in this repository.

  • .github/renovate/base.json is gone. The preset is renovate/base.json of dan-petty/infra, and the checks of infra already validate it.
  • Validate .github/renovate.json only.

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 ci row (or a devops command 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.md names 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

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 renovate check fails and its message holds Invalid 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 extends holds github>dan-petty/infra//renovate/base
  • THEN the process fake records one validator call and the renovate.json in its working directory extends no github> 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.json and then docs/TESTING.md to the check selection
  • THEN the selection holds renovate for 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.json with 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-validator from the renovate package of renovatebot/renovate. The alternatives check gives the verdict in-use for that tool. (best practice) [sources: .github/renovate.json]
    • Chosen: the renovate-config-validator binary of the renovate package. It applies the schema and the rules of the pinned release, and the alternatives check gives the verdict in-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.
  • How does the row validate .github/renovate.json offline when its extends names a preset of another repository?: The row writes a temporary copy of the config. In that copy, each extends entry 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 renovate as a pinned devDependency of the root package.json. The row runs node_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 root package.json with npm 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.
  • Where does the code of the row live, and what is its check name?: The check has the name renovate. Its code sits in tests/gate/ with the code of the other rows, and the runner tests/gate/runner.py runs it. (best practice) [sources: docs/TESTING.md, tests/gate/runner.py]
    • Chosen: a row of devops ci with its code in tests/gate/. docs/TESTING.md puts a check of a tool configuration in a row of devops 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-tree row refuses a new one.
  • Which changed paths select the renovate row?: The row runs when the changed paths hold .github/renovate.json, package.json, package-lock.json or 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

  1. added
    type/feature
    source/agent
    status/new
    value/medium
    on Nov 17, 2026
  2. dan-petty commented on Nov 17, 2026

    @dan-petty
    OwnerAuthor
  3. added
    effort/low
    scope/deps
    priority/p2-medium
    on Nov 17, 2026
  4. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    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:

    • renovate-config-validator validate renovate config offline, results: 5
    • renovate config validator pre-commit hook, results: 5
    • github renovatebot renovate config-validation documentation, results: 5
    • renovate docs config validation renovate-config-validator command, results: 5
    • renovate config validation docs, results: 5
    • npm rennovate package validator bin, results: 5
    • renovatebot renovate github repository, results: 5
    • docs.renovatebot.com configuration validation, results: 5
    • "renovate-config-validator", results: 5
    • renovate config validation strict preset resolution command line, results: 5

    Sources:

  5. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor

    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-validator in their own CI.

  6. dan-petty commented on Nov 24, 2026

    @dan-petty
    OwnerAuthor

    The self-hosted Renovate workload moves out of the product into dan-petty/homelab#95.

  7. added
    status/ready
    and removed
    status/new
    on Nov 27, 2026
  8. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See the section Proposed design of the body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/depssource/agentstatus/readytype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions