Repository navigation
Add hourly workflow to revert PRs merged with broken CI - #97623
Merged
Merged
Conversation
This creates a new scheduled GitHub Actions workflow that runs hourly, identifies PRs merged to master with failing CI checks in the last 24 hours, and automatically creates revert PRs. The workflow checks both the merge commit and the original PR's head commit to distinguish genuine failures from flaky tests. It includes safety limits (max 3 reverts per run), deduplication (skips if a revert PR already exists), and skips revert PRs to avoid loops. ### Changelog category (leave one): - CI Fix or Improvement (changelog entry is not required) ### Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md): ... Co-Authored-By: Claude Opus 4.6 <[email protected]>
Contributor
|
Workflow [PR], commit [16ddffc] Summary: ✅ AI ReviewSummaryThis PR adds ClickHouse Rules
Final Verdict
|
Allow this check to be broken in master without triggering automatic reverts. Co-Authored-By: Claude Opus 4.6 <[email protected]>
The filters for `Performance Comparison`, `Mergeable Check`, and `PR` were not working correctly: 1. `Performance Comparison` check-run names include batch suffixes like `Performance Comparison (arm_release, release_base, 4/6)`, so exact string comparison never matched. Use `startswith` instead. 2. Meta-checks `Mergeable Check` and `PR` are status checks that fail derivatively when other checks fail. They should not count as evidence of a real test failure. Exclude them from both merge commit and PR head filters. Without this fix, PRs whose only merge-commit failures are Performance Comparison runs would be wrongly reverted. Co-Authored-By: Claude Opus 4.6 <[email protected]>
…workflow Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
…nly checks These checks don't run on PRs, so their failures on merge commits cannot indicate that a PR broke something. Co-Authored-By: Claude Opus 4.6 <[email protected]>
murphy-4o
approved these changes
Mar 25, 2026
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
.github/workflows/revert_broken_prs.yml) that runs hourlyTest plan
workflow_dispatchand check the logsChangelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
🤖 Generated with Claude Code
Version info
26.4.1.242