dev-inf: add CI failure auto-fixer for autosolver PRs#164699
Merged
trunk-io[bot] merged 1 commit intocockroachdb:masterfrom Mar 9, 2026
Merged
dev-inf: add CI failure auto-fixer for autosolver PRs#164699trunk-io[bot] merged 1 commit intocockroachdb:masterfrom
trunk-io[bot] merged 1 commit intocockroachdb:masterfrom
Conversation
Contributor
|
😎 Merged successfully - details. |
Member
372adf0 to
09f48a3
Compare
rickystewart
approved these changes
Mar 5, 2026
Collaborator
rickystewart
left a comment
There was a problem hiding this comment.
When #164972 is merged, please rebase on top of it. You will also need to apply similar changes to the pr-autosolve-ci.yml file, namely changes to the runs-on, getting/cleaning up the EngFlow keys and populating .bazelrc.user, and setting AUTOMATION=1 to anything that may run ./dev.
Add a new workflow (`pr-autosolve-ci.yml`) that automatically analyzes and fixes CI failures on autosolver PRs. When Essential CI fails on a `fix/issue-*` branch with the `o-autosolver` label, this workflow collects failure details (annotations, logs), runs Claude to diagnose and fix PR-caused failures, and pushes the fix. Key features: - Loop prevention: max 2 fix attempts via `[autosolve-ci-fix]` comment counting - Failure classification: distinguishes PR-caused failures from flaky tests and pre-existing issues - Shared concurrency group with the comment addresser to prevent simultaneous pushes - Same security checks as comment addresser (workflow file modification block, symlink check) Epic: none Release note: None Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
09f48a3 to
a216789
Compare
Collaborator
Author
|
/trunk merge Thanks for the review Ricky! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pr-autosolve-ci.yml) that automatically analyzes and fixes CI failures on autosolver PRsfix/issue-*branch with theo-autosolverlabel, collects failure details (annotations, logs), runs Claude to diagnose and fix PR-caused failures, and pushes the fix[autosolve-ci-fix]comment counting (max 2 attempts)Epic: none
Release note: None
🤖 Generated with Claude Code