Skip to content

ci(deps): let Renovate update the pre-commit hooks #145

Backlog

Description

@dan-petty

Problem

Renovate does not update the hook revisions of .pre-commit-config.yaml. The header comment of the file says Renovate updates rev.

Cause

enabledManagers of .github/renovate.json does not name the pre-commit manager. The shared preset github>dan-petty/infra//renovate/base turns the manager on, but a manager runs only when enabledManagers names it. A local run of Renovate 45.6.0 on main matched no file for the manager.

On 2026-11-30 the hook revision v6.0.0 is the newest tag of pre-commit/pre-commit-hooks, so no update is late now.

Acceptance criteria

  • .github/renovate.json names pre-commit in enabledManagers.
  • A local run of Renovate lists .pre-commit-config.yaml for the manager.

Source

Source: #143

Alternatives check of 2026-11-30: not-applicable.
Class: ci, no model call.
Tool: none found.

Proposed design

Problem statement

Renovate does not update the hook revision in .pre-commit-config.yaml, although the header comment of the file says Renovate updates rev. Renovate runs only the managers that enabledManagers in .github/renovate.json names, and the list lacks pre-commit. The change adds pre-commit to the list and names the manager in the description field. The newest tag v6.0.0 is current on 2026-11-30, so no update is late now. No other setting of the file changes.

Acceptance criteria

Requirement: Pre-commit manager enabled

.github/renovate.json SHALL name pre-commit in enabledManagers, so that Renovate runs the pre-commit manager on this repository.

Scenario: Renovate extracts the hook file

  • WHEN I run LOG_LEVEL=debug npx --yes --package [email protected] renovate --platform=local --dry-run=lookup in a clone of the repository with the changed .github/renovate.json.
  • THEN The packageFiles with updates line of the debug log names .pre-commit-config.yaml under the pre-commit manager, and the run ends with no config error.

Requirement: Other managers stay enabled

The change MUST keep each other manager that enabledManagers names enabled.

Scenario: Renovate still extracts the other files

  • WHEN I run the same command in the same clone.
  • THEN The debug log still lists a matched file for each of the copier, dockerfile, github-actions, mise, npm and pip-compile managers. The files include .copier-answers.yml, Dockerfile, mise.toml, npm/package.json, python/pre-commit.txt and .github/workflows/image.yml.

Requirement: Renovate config stays valid

The changed .github/renovate.json MUST pass the strict validator of Renovate.

Scenario: Validator accepts the changed config

  • WHEN I run npx --yes --package [email protected] renovate-config-validator --strict --no-global .github/renovate.json.
  • THEN The command exits with status 0 and prints no error.

Existing Tool Considered

The alternatives check of 2026-11-30 in the issue body records not-applicable with no tool. Renovate is the open, maintained tool that covers the need. Its built-in pre-commit manager reads .pre-commit-config.yaml and updates the hook revisions. The repository already runs Renovate from .github/renovate.json, so the change builds no code. It adds one name to enabledManagers and one sentence to the description field. It lacks nothing for this change.

Key questions

  • Does .github/renovate.json name pre-commit in enabledManagers?: No. The list holds copier, dockerfile, github-actions, mise, npm and pip-compile only. [sources: .github/renovate.json:5]
  • Does enabledManagers limit which managers Renovate runs?: Yes. Renovate runs a manager only when enabledManagers names it. The archived change of ci(deps): let Renovate update the repository template #143 records the same rule for the copier manager. [sources: openspec/changes/archive/2026-11-30-143-renovate-copier-manager/design.md:6, .github/renovate.json:5]
  • Which file and revision does the pre-commit manager read?: The manager reads .pre-commit-config.yaml at the repository root. The file pins pre-commit/pre-commit-hooks at rev: v6.0.0. [sources: .pre-commit-config.yaml:1, .pre-commit-config.yaml:8]
  • Which proof shows that Renovate now runs the pre-commit manager?: A local Renovate run with --platform=local --dry-run=lookup and LOG_LEVEL=debug. Its packageFiles with updates line names each matched file under its manager. It shows .pre-commit-config.yaml and keeps the proof of the other managers. The archived change of ci(deps): let Renovate update the repository template #143 used the same command. (best practice) [sources: openspec/changes/archive/2026-11-30-143-renovate-copier-manager/tasks.md:9, openspec/changes/archive/2026-11-30-143-renovate-copier-manager/tasks.md:10]
    • Chosen: Local Renovate dry run. It runs the real managers on the real config and shows the file that each manager matches. The archived change of ci(deps): let Renovate update the repository template #143 proved a manager this way.
    • Rejected: renovate-config-validator. It checks the schema only, so it cannot show which managers run. The change uses it as an additional check, not as the proof of the manager.
    • Rejected: A repository test that reads the JSON. A test asserts no value of a config file, and the repository asks for a command to prove such a change.
  • Must the file set managerFilePatterns for the pre-commit manager?: No. The file sets managerFilePatterns only where the default pattern does not match the project file, as the pip-compile entry does for python/*.txt. The change of ci(deps): let Renovate update the repository template #143 added copier with no pattern entry, and its local run then matched .copier-answers.yml. The hook file keeps its standard name .pre-commit-config.yaml, so the default pattern matches it. (best practice) [sources: .github/renovate.json:5, .github/renovate.json:6, .pre-commit-config.yaml:1, openspec/changes/archive/2026-11-30-143-renovate-copier-manager/tasks.md:7, openspec/changes/archive/2026-11-30-143-renovate-copier-manager/proposal.md:34]
    • Chosen: Keep the default file pattern. The hook file has the default name of the manager, and the change of ci(deps): let Renovate update the repository template #143 added a manager with no pattern entry.
    • Rejected: Add a managerFilePatterns entry. It repeats the default file name and adds a setting to keep.
  • Must the fix(deps): package rule match .pre-commit-config.yaml because a hook revision update changes the image?: No. A hook revision update does not change the image, so the default chore(deps): prefix of the shared preset applies. The fix(deps): rule and its matchFileNames list stay as they are. (best practice) [sources: .github/renovate.json:12, README.md:188, openspec/changes/archive/2026-11-30-143-renovate-copier-manager/proposal.md:27]
    • Chosen: Keep the default chore(deps): prefix. The fix(deps): rule matches only Dockerfile, mise.toml, npm/** and python/**. A hook revision update changes none of them.
    • Rejected: Add .pre-commit-config.yaml to the fix(deps): rule. The rule would give the type fix to a change that does not change the image.
  • Must the description field of .github/renovate.json name the pre-commit manager?: Yes. The field lists the managers and the files they update, so the new manager makes it incomplete. Rule 8 of AGENTS.md says to fix a document that the change makes wrong in the same pull request. The change of ci(deps): let Renovate update the repository template #143 added copier to the field in the same pull request. (best practice) [sources: .github/renovate.json:3, AGENTS.md:16, openspec/changes/archive/2026-11-30-143-renovate-copier-manager/tasks.md:7]
    • Chosen: Name pre-commit in the description field. The field lists the managers, and rule 8 of AGENTS.md says to fix a document that the change makes wrong.
    • Rejected: Leave the description field. The field would not list the manager that the change turns on.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/infra
    status/new
    value/medium
    effort/low
    source/agent
    scope/deps
    on Nov 30, 2026
  2. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    on Nov 30, 2026
  4. devops-cli-service commented on Nov 30, 2026

    @devops-cli-service
    Contributor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

  5. added
    status/ready
    and removed
    status/new
    on Nov 30, 2026
  6. devops-cli-service commented on Nov 30, 2026

    @devops-cli-service
    Contributor

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

  7. added
    owner/service
    on Nov 30, 2026
  8. devops-cli-service commented on Nov 30, 2026

    @devops-cli-service
    Contributor

    Plan state: branch ci/145-let-renovate-update-the-pre-commit, draft pull request #153. The pull request plans the item and closes no issue. The stage job and the step fix-plan edit this comment, and a comment of each run tells what the run did.

    The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:

    1. Enable the pre-commit manager in the Renovate config: 5903 tokens

    A model review of the plan found these points. They stop no draft, and a person judges them:

    • minor other at tasks (1): The plan says the new entry goes in alphabetical order and also says to put it before pip-compile. Alphabetically pip-compile comes before pre-commit, so the two instructions conflict. Place pre-commit after pip-compile. Evidence: "Add "pre-commit" to enabledManagers, after "npm" and before "pip-compile"."
  9. devops-cli-service commented on Nov 30, 2026

    @devops-cli-service
    Contributor

    The stage job staged the plan of draft pull request #153. The plan state comment of #153 holds the branch, the task groups and the findings.

    The runs of the planner and the review made 20 model request(s), and used 870748 input tokens and 38571 output tokens. The tool calls, in order:

    Run 1 (stage):

    1. read_file({"path":".github/renovate.json","start_line":1,"end_line":7})
    2. find_issues({"terms":"renovate.json"})
    3. read_issue({"number":2})

    Run 3 (stage):

    1. search_code({"text":"renovate-config-validator"})
    2. search_code({"text":"devops ci --check"})

    Run 6 (stage):

    1. search_code({"text":"renovate-config-validator"})

    Run 7 (stage):

    1. list_files({"directory":"openspec/changes/archive/2026-11-30-143-renovate-copier-manager"})
    2. search_code({"text":"renovate","path":"openspec"})
    3. search_code({"text":"devops ci"})

    Run 8 (stage_verify):

    1. read_spec({})
    2. list_files({"directory":"openspec/changes/archive/2026-11-30-143-renovate-copier-manager"})
    3. read_file({"path":"openspec/changes/archive/2026-11-30-143-renovate-copier-manager/tasks.md"})

    Tool calls: find_issues=1 (empty=0), list_files=2 (empty=0), read_file=2 (empty=0), read_issue=1 (empty=0), read_spec=1 (empty=1), search_code=5 (empty=4)

    The stage job read the open pull requests and their files in 1 GraphQL request(s).

    The plan request held these comments of the item whole: #145 (comment), #145 (comment), #145 (comment).

  10. added
    owner/service
    status/in-progress
    and removed
    owner/service
    status/ready
    on Nov 30, 2026
  11. devops-cli-service commented on Nov 30, 2026

    @devops-cli-service
    Contributor

    The runner Job devops-cli-implement-devtools-145-af89de ended: failed.
    Image digest: sha256:746ed4cf3e5f932e8dcad99e9896570510db1a0294d64feff206da14e6a1fd50

    The last lines of its log:

    unable to retrieve container logs for containerd://77311595defe5e88c564f79e27f3336aeb73b5f763324d487a111811bb885a50
    

    The kubelet evicted the pod of the Job: Usage of EmptyDir volume "agent-tmp" exceeds the limit "1Gi".

    Failure class: limit_reached.
    Action taken: none.
    Action left: raise_limit: raise the limit that the run went over.

    The Job left this item without a result. The item is Blocked. When a retry can fix the class of the stop, the Service starts a new Job in the next round. The limit is roadmap.implement.continuations_per_item, and the comment of that round says so. If no continuation is left, fix the cause. Then comment implement: retry. A new runner image also clears the stop. This holds only if a retry can fix the class of the stop. The limits of roadmap.implement.digest_clears_per_class and roadmap.implement.digest_clears_per_item must also allow it.

  12. added
    status/blocked
    and removed
    owner/service
    status/in-progress
    on Nov 30, 2026
  13. added a commit that references this issue on Dec 1, 2026
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/blockedtype/infravalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions