Skip to content

feat(roadmap): fix or close each failing Renovate pull request #6526

Done

Description

@dan-petty

Problem

A Renovate pull request that fails a required check waits for a person. Examples:

The fix-checks Job acts only on the pull requests of the Service App (service.github_app.bot_login), not on those of dan-petty-renovate[bot]. Owner direction of 2026-11-20: an upstream change that breaks CI is handled as an issue when the failure happens. Nothing anticipates it.

Change

Add a Service step job for failing Renovate pull requests. For each open Renovate pull request with a failed required check:

  1. If the failure is in the infrastructure, run the check again once.
  2. Otherwise, start one Job that does one of the following:
    • Fix: push commits to the Renovate branch that adapt the code, config or plans to the new version, so the checks pass. The Job stays in the scope of the update.
    • Close: when the fix is larger than the update, close the pull request and file an issue through devops roadmap intake. The issue names the failed check, its error lines and the release notes of the update.

A person merges a fixed pull request. The one exception stays as it is: Renovate merges a security fix after the required checks pass (#6031). The job has a mode row like the other steps (off, plan, on).

Constraints

  • The Job runs on the Job contract of refactor(roadmap): re-architect stage and implement on Coder #6519: the runner image FROM devtools, a real shell, an open harness in auto mode, and no write RBAC to cluster services. It does not reuse the fix-checks engine. That engine grades under 60%, so it waits for the re-architecture.
  • The job starts on DeepSeek. Its grade is measured against 80%.

Acceptance

  • Over one week, each Renovate pull request that fails a required check ends fixed (its checks pass) or closed with a filed issue.
  • The job grade of the new job shows in devops roadmap eval grades.

Dependencies

Alternatives check of 2026-11-20: none.
Tool: none found.
Reason: Ten searches returned only unrelated pages (MDN docs, Docker Hub images); no open tool repairs a failing Renovate branch or closes it with a filed intake issue. Renovate itself only rebases, retries and automerges.

Lacks:

Proposed design

Problem statement

The fix-checks job acts only on Service App pull requests. A Renovate pull request that fails a required check waits for a person. The change adds a Service step job for the Renovate bot. It re-runs a check that failed in the infrastructure once. Else it starts one Job that fixes the branch, or closes the pull request and files an intake issue. A person merges a fixed pull request. The security automerge of #6031 stays.

Acceptance criteria

Requirement: Renovate check mode row

The roadmap settings SHALL hold a mode for the Renovate check step with the values off, plan and on, and the default SHALL be off.

Scenario: Mode value accepted and another refused

  • WHEN A test builds the roadmap settings with roadmap.renovate_checks.mode set to on, then with always.
  • THEN The settings report mode on in the first case, and refuse always with a validation error in the second case.

Requirement: Selection of failing Renovate pull requests

The step SHALL select only an open pull request whose author is in roadmap.renovate_checks.bot_logins and that has a required check with a failing conclusion.

Scenario: Renovate pull request selected, person pull request skipped

  • WHEN A test gives an open pull request of dan-petty-renovate[bot] with a failed required check, and an open pull request of a person with a failed required check.
  • THEN The selector returns the Renovate pull request only.

Requirement: One retry of an infrastructure failure

The step SHALL re-run a failed required check once when its conclusion is cancelled, timed_out or startup_failure, and MUST NOT start a Job for it.

Scenario: Timed out check retried once

  • WHEN A test gives a required check run with conclusion timed_out for a Renovate pull request, and runs the step twice for the same head SHA.
  • THEN The first run requests one re-run and writes class retried, and the second run requests no re-run.

Requirement: One Job per failing head SHA

The step SHALL set a due mark and create one Job for a Renovate pull request whose required check ended failure, and MUST NOT create a second Job for the same head SHA.

Scenario: One Job for a head SHA

  • WHEN A test gives a Renovate pull request with head SHA a1b2c3d and one required check that ended failure, and runs the step twice.
  • THEN The first run sets the due mark and creates one Job with the pull request number, the check name and its error lines, and the second run creates no Job.

Requirement: Fix path keeps the pull request open

The Job SHALL push commits to the Renovate branch that stay in the scope of the update, and MUST NOT merge the pull request.

Scenario: Fixed pull request stays open

  • WHEN A test runs the fix path with a Job result that names the changed files, and the branch checks pass.
  • THEN The step pushes the commits to the Renovate branch, makes no merge call, and writes class fixed.

Requirement: Close path files one intake issue

The step SHALL close the pull request and file one issue through devops roadmap intake when the Job reports that the fix is larger than the update.

Scenario: Closed pull request with a filed issue

  • WHEN A test runs the close path with a Job result that names the failed check and its error lines.
  • THEN The step closes the pull request, calls devops roadmap intake once with a body that holds the check name, the error lines and the release notes URL, and writes class closed.

Requirement: Plan mode changes nothing

The step SHALL write its plan and change no branch, pull request or issue when the mode is plan.

Scenario: Plan mode writes no change

  • WHEN A test runs the step in mode plan with a Renovate pull request that has a failed required check.
  • THEN The result line holds the planned action, and the test records no push, no close, no intake call and no Job.

Requirement: Grade row of the new job

devops roadmap eval grades SHALL print a grade row for the Renovate check job.

Scenario: Grade row printed

  • WHEN A test builds the grade input from sample result lines of the job renovate-checks.
  • THEN The grades table holds the row renovate-checks with its grade band.

Existing Tool Considered

Alternatives check of 2026-11-20 in the issue body: verdict none, tool none found. The block records that no open tool repairs a failing Renovate branch or closes it with a filed intake issue. Renovate only rebases, retries and automerges. The block lists what the need lacks: a commit that adapts code, config or plans, a close plus a filed intake issue, an infrastructure retry, and an off, plan, on mode row on the #6519 Job contract. The change builds the step job. Cost: about 120k tokens to build the selector, the step module, the Job prompt, the marker and the tests; about 20k tokens a month to keep and fix; about 3 working days.

Key questions

  • Which checks are required on main?: Static Analysis, Tests & Coverage and Semantic PR title, from the main ruleset. [sources: docs/adr/0004-ci-is-the-authoritative-gate.md]
  • Where does the step detect a failing Renovate pull request and start its Job?: A short row of the sweep reads the open Renovate pull requests and their required checks. It sets a due mark for each failing head SHA, and the sweep creates one step job from the due mark. (best practice) [sources: CONTEXT.md, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md, docs/ROADMAP_WORKFLOW.md]
    • Chosen: A short row of the sweep sets a due mark, and the sweep creates one step job from it. The Step job and Due mark terms give this path, and fix-checks uses it.
    • Rejected: Extend the fix-checks engine to the Renovate bot. The body says the engine grades under 60% and waits for the re-architecture.
    • Rejected: A separate poller outside the sweep. It makes a second path to the same GitHub state.
  • How does the step know that it already handled a head SHA?: The step writes one hidden marker comment on the pull request that names the handled head SHA, and it skips that SHA on the next run. (best practice) [sources: CONTEXT.md]
    • Chosen: One hidden marker comment on the pull request with the head SHA. GitHub state is the first marker of a step, so a second run changes nothing.
    • Rejected: A Valkey key alone. A due mark has a TTL and is never the only copy of a decision.
    • Rejected: A label on the pull request. Labels hold the fields of an item, and a pull request is no item.
  • Which check conclusions count as an infrastructure failure?: cancelled, timed_out and startup_failure count as an infrastructure failure, and the step re-runs that check once. A failure conclusion starts one Job. (best practice) [sources: docs/adr/0004-ci-is-the-authoritative-gate.md]
    • Chosen: cancelled, timed_out and startup_failure. The API gives these conclusions, and they name no failure of the code under test.
    • Rejected: Any failure whose log holds a runner error. Log parsing is fragile and costs tokens.
    • Rejected: Every failed check. A real test failure would retry on each run.
  • Which bot logins identify a Renovate pull request?: A list setting roadmap.renovate_checks.bot_logins holds the logins, and its default is dan-petty-renovate[bot]. (best practice) [sources: CONTEXT.md]
    • Chosen: A list setting roadmap.renovate_checks.bot_logins, default dan-petty-renovate[bot]. The login is a fact of each repository, and the setting keeps the code the same for each managed project.
    • Rejected: A hard-coded login. A second managed repository has another login.
    • Rejected: Reuse roadmap.skip_authors. That list keeps issues out of intake, and it names no pull request.
  • What is the default of the mode row?: The default is off. A person sets plan or on. (best practice) [sources: CONTEXT.md]
    • Chosen: off. A new job that writes to bot branches acts only after a person sets it on.
    • Rejected: on. It would act on every open Renovate pull request at the first sweep.
  • How does the close path file its issue?: The step calls devops roadmap intake with a body that names the failed check, its error lines and the release notes URL. (best practice) [sources: CONTEXT.md]
    • Chosen: devops roadmap intake. Intake is the single entry point: it rejects duplicates and sets the priority.
    • Rejected: gh issue create. It bypasses intake and the priority rule.
    • Rejected: No issue. The update would be lost.
  • Which model and grade floor does the Job use?: The Job starts on DeepSeek with the open harness in auto mode, and its grade floor is 80%. (best practice) [sources: docs/guidelines/agentic-jobs.md, docs/roadmap/job-success.md]
    • Chosen: DeepSeek with the open harness in auto mode, floor 80%. The body sets this start, and the job-success document gives the owner action of each grade.
    • Rejected: Another model at the start. It has no measurement on this job.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#6519

Activity

  1. added
    type/feature
    on Nov 20, 2026
  2. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor
    • Related: ci: Stop the workflow steps that block Renovate updates #6061, which asks for a different change. Both deal with Renovate pull requests that fail required checks, but #6061 fixes the CI steps that cause the failures while the candidate adds a job that reacts to failures by fixing or closing the pull request.
  3. added
    source/agent
    scope/roadmap
    status/new
    value/medium
    effort/high
    priority/p2-medium
    on Nov 20, 2026
  4. devops-cli-service commented on Nov 20, 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:

    • automatically fix failing Renovate dependency update pull request CI, results: 5
    • open source bot closes dependency update PR and files issue on CI failure, results: 5
    • Renovate bot documentation rebase failing checks automerge, results: 5
    • Mergify auto retry failing CI checks pull request, results: 5
    • renovatebot.com configuration options automerge stabilityDays, results: 5
    • AI agent fix failing dependency update pull request GitHub bot, results: 5
    • Dependabot auto-fix failing CI security updates documentation, results: 5
    • github renovatebot renovate repository, results: 5
    • Renovate pull request failing checks automation project, results: 5
    • tool that repairs failing dependency upgrade pull requests automatically, results: 5

    Sources:

  5. devops-cli-service commented on Nov 22, 2026

    @devops-cli-service
    Contributor

    Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.

  6. added a commit that references this issue on Nov 24, 2026
    d68c6cd
  7. added
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 24, 2026
  8. removed
    status/in-review
    on Nov 24, 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/highpriority/p2-mediumscope/roadmapsource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions