Repository navigation
Description
Problem
A Renovate pull request that fails a required check waits for a person. Examples:
- fix(deps): update @fission-ai/openspec to v2.1.1 #6485 (OpenSpec 2.1.1) failed Static Analysis and the test jobs, and a person closed it.
- fix(deps): Make the four failed Renovate updates work #6032 made four failed Renovate updates work by hand.
- chore(deps): update python dependencies (patch) #6506 (Python patch updates) fails Service Image Tests shard 6 now.
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:
- If the failure is in the infrastructure, run the check again once.
- 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:
- No commit that adapts code, config or plans to the new version
- No close of the pull request plus a filed intake issue
- No retry of a check that failed in the infrastructure
- No off, plan, on mode row on the refactor(roadmap): re-architect stage and implement on Coder #6519 Job contract
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.modeset toon, then withalways. - THEN The settings report mode
onin the first case, and refusealwayswith 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_outfor 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
a1b2c3dand one required check that endedfailure, 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 intakeonce with a body that holds the check name, the error lines and the release notes URL, and writes classclosed.
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
planwith 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-checkswith 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 & CoverageandSemantic PR title, from themainruleset. [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-checksuses 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.
- 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
- 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_outandstartup_failurecount as an infrastructure failure, and the step re-runs that check once. Afailureconclusion starts one Job. (best practice) [sources: docs/adr/0004-ci-is-the-authoritative-gate.md]- Chosen:
cancelled,timed_outandstartup_failure. The API gives these conclusions, and they name no failure of the code under test. - Rejected: Any
failurewhose 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.
- Chosen:
- Which bot logins identify a Renovate pull request?: A list setting
roadmap.renovate_checks.bot_loginsholds the logins, and its default isdan-petty-renovate[bot]. (best practice) [sources: CONTEXT.md]- Chosen: A list setting
roadmap.renovate_checks.bot_logins, defaultdan-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.
- Chosen: A list setting
- What is the default of the mode row?: The default is
off. A person setsplanoron. (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.
- Chosen:
- How does the close path file its issue?: The step calls
devops roadmap intakewith 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.
- Chosen:
- 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.
Activity
dan-petty commentedon Nov 20, 2026
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.devops-cli-service commentedon Nov 20, 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:
devops-cli-service commentedon Nov 22, 2026
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.
feat(roadmap): configure renovate rules and openspec requirement limits
devops-cli-service commentedon Nov 24, 2026
Released in v0.204.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.204.0