Skip to content

Revert "Revert "Add hourly workflow to revert PRs merged with broken CI"" - #100700

Merged
alexey-milovidov merged 43 commits into
masterfrom
revert-100696-revert-97623-revert-broken-prs-workflow
Jun 27, 2026
Merged

alexey-milovidov merged 43 commits into
masterfrom
revert-100696-revert-97623-revert-broken-prs-workflow

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Mar 25, 2026 •

Copy link
Copy Markdown
Member

Reverts #100696

Reintroduces the hourly workflow (.github/workflows/revert_broken_prs.yml) that scans merge commits on master from the last 24 hours and automatically opens revert PRs for merges that arrive with broken CI.

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):

...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.7.1.170 (included in 26.7 and later)

@clickhouse-gh

clickhouse-gh Bot commented Mar 25, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [a0f8628]

Summary: ✅


AI Review

Summary

This PR reintroduces the scheduled revert_broken_prs workflow. The current version addresses the prior review findings around paginated commit scanning, full-history checkout, stable merged-head attribution, CI-query failure handling, complete non-success status/check-run classification, and requiring an intersection between merge-commit and PR-head failures. I did not find any remaining issues that warrant inline review comments.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Mar 25, 2026
@alexey-milovidov

Copy link
Copy Markdown
Member Author

The Stress test (arm_msan) failure is fixed by #101239, which should be merged first. After it is merged, please update the branch to include the fix.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

The MSan stress test failure (MemorySanitizer: use-of-uninitialized-value, STID 4179-5154 or 4148-3044) is a known pre-existing issue unrelated to this PR. Fix: #102158

@alexey-milovidov

Copy link
Copy Markdown
Member Author

@groeneai, please investigate and fix this Stress test finding and send a separate PR. Assign it to @kssenii, because she rejected the previous fix, but didn't fixed the problem by herself. Try to attract attention of the reviewer.

@groeneai

Copy link
Copy Markdown
Collaborator

@alexey-milovidov, the fix is up: #103539.

Root cause analysis (different from prior fixes):

The race lives at the cache state lock level, not the priority lock level.

  • FileCache::doDynamicResizeImpl released cache_state_guard between sampling state.size in collectEvictionInfoForResize and validating it inside modifySizeLimits.
  • During that gap, concurrent FileCache::doTryReserve and SLRUFileCachePriority::tryIncreasePriority calls invoke incrementSize on the protected queue. incrementSize requires only cache_state_guard (not the priority write lock), so the writeLock-holding fix in Fix race condition in file cache dynamic resize #96980 (which I co-authored an earlier round of) does not block them.
  • Specifically, SLRU tryIncreasePriority adds the new protected entry under the priority write lock with size 0, releases the priority write lock, then acquires the state lock to call incrementSize(prev_entry->size). That state-lock-only step can race with the resize.

Fix:
Hold cache_state_guard continuously across the entire in-memory portion of the resize (eviction info → eviction candidates → removeQueueEntries → modifySizeLimits). Release before the slow filesystem eviction. collectCandidatesForEviction for the resize path uses only the priority read lock internally and does not re-acquire the state lock, so holding the state lock here cannot deadlock.

This preserves the existing LOGICAL_ERROR invariant in modifySizeLimits that was restored in #100271 (rather than relaxing it again) — the invariant simply cannot be violated once the race is closed.

Regression test: Added FileCacheTest.SLRUDynamicResizeRaceWithIncreasePriority (concurrent resize + priority increases). Without the fix the test reproduces STID 4012-44fe within a few hundred iterations and aborts the binary; with the fix all 600 resize iterations + 4 promoter threads succeed.

CC @kssenii — assigned to you per @alexey-milovidov's request.

…t-97623-revert-broken-prs-workflow

# Conflicts:
#	programs/keeper-bench/Runner.cpp
#	src/Disks/DiskObjectStorage/DiskObjectStorage.cpp
#	tests/integration/test_mask_sensitive_info/test.py
#	tests/integration/test_storage_delta/test.py
@rschu1ze rschu1ze mentioned this pull request Apr 28, 2026
@alexey-milovidov

Copy link
Copy Markdown
Member Author

@groeneai, find the fix for "Logical error: Port is already connected" and link the corresponding PR here.

@groeneai

Copy link
Copy Markdown
Collaborator

@alexey-milovidov yes — STID 0996 family (Logical error: Port is already connected from LazyUnorderedReadFromMergeTreeSource::expandPipeline) is already addressed by #103230.

Status: OPEN, awaiting merge / re-approval.

Once #103230 lands, STID 0996 will clear from this PR's CI as well.

cc @KochetovNicolai @CurtizJ — could one of you re-approve the rebased HEAD?

Comment thread .github/workflows/revert_broken_prs.yml Resolved
alexey-milovidov and others added 2 commits June 16, 2026 01:09
…ert workflow

Address review: the merge-commit and PR-head check-run filters only treated
`conclusion == "failure"` as broken. GitHub check-runs can also complete with
other terminal non-success conclusions — `timed_out`, `cancelled`, and
`action_required` — which have `status == "completed"`, so they were caught by
neither the `failure` branch nor the `status != "completed"` (incomplete)
branch. A PR merged with a timed-out or cancelled required job would therefore
produce empty `merge_failures`/`common_failures`, and the workflow would skip
the revert even though CI never passed.

Collect these terminal non-success conclusions consistently on both sides: add
them to the merge-commit `select`, label them on the PR-head side, and extend
the suffix-stripping in the intersection step so the names still match. The
commit-status side already covers all of its terminal states (`failure` and
`error`), so it is unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Addresses the remaining AI Review major on #100700: the merge-commit and
PR-head check-run filters in `.github/workflows/revert_broken_prs.yml` only
treated `failure`, `timed_out`, `cancelled`, and `action_required` as broken.
GitHub's `CheckConclusionState` also has the terminal non-success conclusions
`startup_failure` and `stale`; a merge commit and PR head whose matching
required check ended with one of those left `merge_failures`/`common_failures`
empty, so the workflow skipped the revert even though CI never passed.

Add `startup_failure` and `stale` consistently to the merge-commit filter, the
PR-head filter (with matching diagnostic labels), and the suffix-stripping in
the intersection step. This now covers the complete set of terminal
non-success conclusions (`failure`, `timed_out`, `cancelled`,
`action_required`, `startup_failure`, `stale`); only the success-equivalent
ones (`success`, `neutral`, `skipped`) and not-yet-completed runs remain
excluded, so no terminal conclusion can be missed.

Validated by running the embedded `jq` filters and the strip/intersection
pipeline against a synthetic merge/head pair whose shared checks ended with
`startup_failure` and `stale`: both are selected on the merge side, labeled on
the head side, and recovered by the intersection (so a revert is triggered),
while `success`/`neutral`/`skipped`/incomplete runs are ignored.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@alexey-milovidov

alexey-milovidov commented Jun 18, 2026 •

Copy link
Copy Markdown
Member Author

Important: from now on, with every update of this PR, check it by dry-running the same logic and post, which PRs would it revert if active.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

Dry-run of the revert logic (per the standing request)

Ran the workflow's exact logic and filters from this PR's head (e83a1331d44f) against the live master 24h window (since 2026-06-18T20:52:52Z), stopping just before the checkout/revert/push steps.

Result: it would revert 0 PRs.

Outcome Count
Merge commits scanned 57
Not a PR merge commit (skipped) 8
PR already a revert — skipped to avoid loops (#107845) 1
No (non-excluded) failures on the merge commit 13
Merge-commit failure, but PR head clean → flaky, skipped 21
Merge-commit failure, but no intersection with PR-head failures → flaky, skipped 14
API/jq query failures (WARNING, candidate retried next run) 0
Would create a revert 0

So 35 of the 57 merges arrived with a non-excluded CI failure on the merge commit, and in every case the intersection guard correctly classified it as flaky — the same failing check did not also fail (or stay incomplete) on the PR's own merged head. None of them would have been reverted.

The 35 merges that had a merge-commit failure but were filtered out as flaky

Clean PR head (21): #107689 #107885 #103322 #107145 #107852 #107940 #105846 #107050 #105482 #106701 #107153 #98124 #106272 #107639 #107842 #103081 #107579 #107902 #106881 #106412 #105353

No matching intersection (14): #107741 #105706 #107738 #107932 #106443 #106675 #106338 #107915 #107887 #107849 #107851 #106647 #107707 #107672

CI on this PR is green, the AI review verdict is ✅ Approve, and there are no unresolved review threads, so no code changes were made this round.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

Dry-run of the revert logic (per the standing request)

Ran the workflow's exact logic and filters from this PR's head (a0f8628cd90, after a clean merge of latest master) against the live master 24h window (since 2026-06-20T15:30:55Z), stopping just before the checkout/revert/push steps.

Result: it would revert 0 PRs.

Outcome Count
Merge commits scanned 12
Not a PR merge commit (skipped) 0
PR already a revert — skipped to avoid loops 0
No (non-excluded) failures on the merge commit 2
Merge-commit failure, but PR head clean → flaky, skipped 10
Merge-commit failure with no matching PR-head failure (no intersection) → flaky, skipped 0
API/jq errors → WARNING, candidate skipped and retried next run 0
Revert PR already exists → skipped 0
Would create a revert 0

All 12 merge commits in the window are accounted for. 10 of them arrived on master with a non-excluded CI failure on the merge commit, but in every case the merged head commit (.parents[1].sha) was clean for those checks, so the intersection guard classified them as flaky and skipped them — exactly the behavior intended to avoid false-positive reverts. The remaining 2 had no non-excluded failure on the merge commit at all. No WARNINGs were emitted.

The window is smaller than the previous run (12 vs 57 merges) because it covers a weekend (Sat–Sun), when fewer PRs are merged.

(This is a fewer-merges weekend snapshot; the guard continues to filter every flaky case correctly — no PR would have been reverted.)

@Felixoid

Copy link
Copy Markdown
Member

No way something in the world would understand 300 lines of GH action written in bash.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

Dry-run of the revert logic (per the standing request)

Ran the workflow's exact logic and filters from this PR's head (a0f8628cd90) against the live master 24h window (since 2026-06-22T12:00:57Z), stopping just before the checkout/revert/push steps.

Result: it would revert 1 PR — and that one would be a false positive.

Outcome Count
Merge commits scanned 36
Not a PR merge commit (skipped) 1
PR already a revert — skipped to avoid loops 1
No (non-excluded) failures on the merge commit 3
Merge-commit failure, but PR head clean → flaky, skipped 22
Merge-commit failure with no matching PR-head failure (no intersection) → flaky, skipped 8
API/jq errors → WARNING, candidate skipped and retried next run 0
Revert PR already exists → skipped 0
Would create a revert 1

All 36 merge commits in the window are accounted for. 30 of them arrived on master with a non-excluded CI failure on the merge commit but were correctly classified as flaky (22 had a clean merged head; 8 had head failures in unrelated checks → no intersection). One merge passed the intersection guard:

The one it would revert: #107764 — and it should not be reverted

Fix regression: accept 0-byte offsets buffer for empty Arrow String/Binary columns (by @Algunenano)

  • Failed checks on the merge commit (dc8e5e5cbb71f934ced964045ec6945bb4d28624): Stress test (arm_release), Stress test (arm_msan), Fast test (arm_darwin).
  • Failed checks on the merged head (b17ae966dc625c39a478d66f227b6e8cc2e6f005): Stress test (arm_msan), Stress test (amd_msan).
  • Intersection → revert trigger: Stress test (arm_msan).

This is a false positive. #107764 is a legitimate bug fix that was merged and backported to four release branches (25.8, 26.3, 26.4, 26.5) with cherry-picks — the maintainers deliberately shipped it everywhere, not reverted it. The only check intersecting between the merge commit and the head is Stress test (arm_msan), a known-flaky MSan stress category (the same one whose flakes on this very PR were delegated as #101239 / #102158).

The corroborating signal is in the failing sets themselves: the merge commit and the merged head are essentially the same code (the head is the merge commit's second parent), yet they fail different subsets — the merge commit fails arm_release + arm_darwin + arm_msan, while the head fails arm_msan + amd_msan. A real, deterministic regression would fail the same checks on both; this non-overlap is the signature of flakiness, and arm_msan overlapped only by coincidence.

What this reveals about the guard

The intersection guard assumes "the same check failing on both the merge commit and the merged head ⇒ a real, non-flaky failure." That holds for a test that fails because of the change, but it does not hold for a test that is independently flaky: a consistently-flaky stress test (MSan especially) can fail on two consecutive runs of the same code, and the merge commit + merged head are two such runs. So the guard can still false-positive on a chronically-flaky check.

Leaving the design response to you (this is exactly the signal the dry-run was meant to surface before activation). Possible directions, none applied here:

  • exclude the Stress test (*) family the way Performance Comparison / libFuzzer / Nightly / ClickBench are already excluded (loses real stress regressions, but those are rarely the reason to auto-revert);
  • require the failing check to also be green on a few recent master commits (i.e. only revert when the check is not currently flaky baseline-wide);
  • keep the guard as-is and rely on MAX_REVERTS=3/run + human review of the auto-opened revert PRs as the backstop.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

Dry-run of the revert logic (per the standing request)

Ran the workflow's exact logic and filters from this PR's head (a0f8628cd90) against the live master 24h window (since 2026-06-23T04:47:14Z), stopping just before the checkout/revert/push steps.

Result: it would revert 0 PRs.

Outcome Count
Merge commits scanned 65
Not a PR merge commit (skipped) 9
PR already a revert — skipped to avoid loops 0
No (non-excluded) failures on the merge commit 12
Merge-commit failure, but PR head clean → flaky, skipped 28
Merge-commit failure with no matching PR-head failure (no intersection) → flaky, skipped 16
API/jq errors → WARNING, candidate skipped and retried next run 0
Revert PR already exists → skipped 0
Would create a revert 0

All 65 merge commits in the window are accounted for. 44 of them arrived on master with a non-excluded CI failure on the merge commit, yet the intersection guard correctly classified every one as flaky and skipped it (28 had a clean merged head; 16 had head failures only in checks unrelated to the merge-commit failures → empty intersection). The remaining 21 either were not PR-merge commits (9) or had no non-excluded failure on the merge commit at all (12). No WARNINGs were emitted.

The dominant pattern remains the same: nearly every merge commit shows a transient Fast test (arm_darwin) and/or Stress test (*) failure that does not reproduce on the merged head — precisely the flakiness the guard is designed to absorb.

Continuity note on yesterday's finding

The one would-be revert from the previous run — #107764, a false positive driven by a coincidental Stress test (arm_msan) overlap on a chronically-flaky MSan stress check — has aged out of the 24h window, so it does not appear today. That finding is unchanged: it still illustrates that the "same check failing on both the merge commit and the merged head" heuristic can be defeated by a check that is independently flaky on two consecutive runs of the same code. The design directions surfaced there (exclude the Stress test (*) family; require the intersecting check to be green on recent master commits; or keep the guard and rely on MAX_REVERTS=3 + human review of auto-opened revert PRs) are still open for your decision — none applied here.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

Dry-run of the revert_broken_prs logic — per the standing request to check, on every update of this PR, which PRs the workflow would revert if it were active. Dry-run only: no checkout, revert, push, or PR creation.

The dry-run script was re-verified byte-faithful to the workflow at the current head a0f8628cd90 (terminal check-run conclusions failure/timed_out/cancelled/action_required/startup_failure/stale plus status != "completed"; commit-status states failure/error/pending; exclusion lists; merged-head parents[1].sha; suffix-strip alternation; comm -12 same-check intersection; MAX_REVERTS=3; paginated 24h window — all match).

  • Window: since 2026-06-24T01:40:23Z (last 24h)
  • Merge commits scanned: 46
  • WOULD REVERT: 0

Breakdown (all 46 accounted):

  • 5 — not a PR-merge commit
  • 6 — no non-excluded failure on the merge commit
  • 26 — merge-commit failure but PR head clean (flaky)
  • 9 — merge-commit failure but no intersection with PR-head failures (flaky)
  • 0 — gh api/jq WARNINGs
  • 0 — already-existing revert PR
  • 0 — would-revert

So 35/46 merges arrived with a non-excluded merge-commit CI failure, yet the same-check intersection guard classified all of them as flaky → no false-positive mass-revert.

Continuity note (guard weakness first surfaced 2026-06-23, still open for your decision): the same-check-on-both-runs intersection can be defeated by a chronically flaky check (e.g. Stress test (*_msan)) that fails on both the merge commit and the merged head. Those are two consecutive runs of essentially the same code, so a coincidental overlap on a flaky check mimics a real regression. That is exactly what produced the single false positive (#107764) on 2026-06-23; it has since aged out of the window. Candidate mitigations (left to you): exclude the Stress test (*) family, require the intersecting check to be green on recent master commits, or rely on MAX_REVERTS=3 plus human review of the auto-opened revert PRs.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

Dry-run of the revert_broken_prs logic — per the standing request to check, on every update of this PR, which PRs the workflow would revert if it were active. Dry-run only: no checkout, revert, push, or PR creation.

The dry-run script was re-verified byte-faithful to the workflow at the current head a0f8628cd90 (terminal check-run conclusions failure/timed_out/cancelled/action_required/startup_failure/stale plus status != "completed"; commit-status states failure/error/pending; exclusion lists; merged-head parents[1].sha; suffix-strip alternation; comm -12 same-check intersection; MAX_REVERTS=3; paginated 24h window — all match).

  • Window: since 2026-06-25T14:07:17Z (last 24h)
  • Merge commits scanned: 42
  • WOULD REVERT: 0

Breakdown (all 42 accounted):

  • 4 — not a PR-merge commit
  • 1 — already a revert PR (Revert "Text index postprocessor" #108456, skipped to avoid revert loops)
  • 14 — no non-excluded failure on the merge commit
  • 9 — merge-commit failure but PR head clean (flaky)
  • 14 — merge-commit failure but no intersection with PR-head failures (flaky)
  • 0 — gh api/jq WARNINGs
  • 0 — already-existing revert PR for a candidate
  • 0 — would-revert

So 23/42 merges arrived with a non-excluded merge-commit CI failure, yet the same-check intersection guard classified all of them as flaky → no false-positive mass-revert.

Continuity note (guard weakness first surfaced 2026-06-23, still open for your decision): the same-check-on-both-runs intersection can be defeated by a chronically flaky check (e.g. Stress test (*_msan)) that fails on both the merge commit and the merged head. Those are two consecutive runs of essentially the same code, so a coincidental overlap on a flaky check mimics a real regression. That is exactly what produced the single false positive (#107764) on 2026-06-23; it has since aged out of the window. Candidate mitigations (left to you): exclude the Stress test (*) family, require the intersecting check to be green on recent master commits, or rely on MAX_REVERTS=3 plus human review of the auto-opened revert PRs.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

It works very well!

@alexey-milovidov

Copy link
Copy Markdown
Member Author

Dry-run of the revert_broken_prs logic — per the standing request to check, on every update of this PR, which PRs the workflow would revert if it were active. Dry-run only: no checkout, revert, push, or PR creation.

The dry-run script was re-verified byte-faithful to the workflow at the current head a0f8628cd90 (terminal check-run conclusions failure/timed_out/cancelled/action_required/startup_failure/stale plus status != "completed"; commit-status states failure/error/pending; exclusion lists; merged-head parents[1].sha; suffix-strip alternation; comm -12 same-check intersection; MAX_REVERTS=3; paginated 24h window — all match).

  • Window: since 2026-06-26T08:41:53Z (last 24h)
  • Merge commits scanned: 64
  • WOULD REVERT: 0

Breakdown (all 64 accounted):

  • 6 — not a PR-merge commit
  • 0 — already a revert PR (skipped to avoid revert loops)
  • 16 — no non-excluded failure on the merge commit
  • 31 — merge-commit failure but PR head clean (flaky)
  • 11 — merge-commit failure but no intersection with PR-head failures (flaky)
  • 0 — gh api/jq WARNINGs
  • 0 — already-existing revert PR for a candidate
  • 0 — would-revert

So 42/64 merges arrived with a non-excluded merge-commit CI failure, yet the same-check intersection guard classified all of them as flaky → no false-positive mass-revert.

Continuity note (guard weakness first surfaced 2026-06-23, still open for your decision): the same-check-on-both-runs intersection can be defeated by a chronically flaky check (e.g. Stress test (*_msan)) that fails on both the merge commit and the merged head. Those are two consecutive runs of essentially the same code, so a coincidental overlap on a flaky check mimics a real regression. That is exactly what produced the single false positive (#107764) on 2026-06-23; it has since aged out of the window. Candidate mitigations (left to you): exclude the Stress test (*) family, require the intersecting check to be green on recent master commits, or rely on MAX_REVERTS=3 plus human review of the auto-opened revert PRs.

@alexey-milovidov alexey-milovidov self-assigned this Jun 27, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Jun 27, 2026
Merged via the queue into master with commit b13adf0 Jun 27, 2026
166 checks passed
@alexey-milovidov
alexey-milovidov deleted the revert-100696-revert-97623-revert-broken-prs-workflow branch June 27, 2026 17:46
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jun 27, 2026
Algunenano added a commit that referenced this pull request Jul 2, 2026
…rt-97623-revert-broken-prs-workflow"

This reverts commit b13adf0, reversing
changes made to 5288134.
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
Address review on PR ClickHouse#100700: `gh api .../commits?...&per_page=100`
returned only the first page, so when `master` has more than 100 commits
in the last 24 hours, older commits inside the window were silently
excluded and never evaluated for revert. Switch to `--paginate --jq '.[]'
| jq -s '.'` so the resulting `commits_json` is a single JSON array
containing every commit across all pages, matching the contract of the
existing downstream `jq` filters.
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
Two AI Review majors on PR ClickHouse#100700 (revert-broken-prs workflow):

- The four `gh api` check/status queries used `2>/dev/null || true`, which
  made an API, auth, rate-limit, or `jq` failure indistinguishable from "no
  failed checks". An empty `merge_failures` then let the workflow succeed
  while silently skipping a broken merge. Each query now lets a real failure
  surface: it is logged and only that candidate is skipped (retried on the
  next hourly run), rather than being misread as clean data.

- The PR-head attribution check derived `pr_head_sha` from the PR object's
  current `.head.sha`. A closed PR's source branch can still move, so this
  could compare the merge failure against a later commit and cause false
  reverts or missed bad merges. It now derives the merged head from the merge
  commit's second parent (`.parents[1].sha`, already present in
  `commits_json`), which is stable.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
Addresses the remaining AI Review major on ClickHouse#100700: the merge-commit and
PR-head check-run filters in `.github/workflows/revert_broken_prs.yml` only
treated `failure`, `timed_out`, `cancelled`, and `action_required` as broken.
GitHub's `CheckConclusionState` also has the terminal non-success conclusions
`startup_failure` and `stale`; a merge commit and PR head whose matching
required check ended with one of those left `merge_failures`/`common_failures`
empty, so the workflow skipped the revert even though CI never passed.

Add `startup_failure` and `stale` consistently to the merge-commit filter, the
PR-head filter (with matching diagnostic labels), and the suffix-stripping in
the intersection step. This now covers the complete set of terminal
non-success conclusions (`failure`, `timed_out`, `cancelled`,
`action_required`, `startup_failure`, `stale`); only the success-equivalent
ones (`success`, `neutral`, `skipped`) and not-yet-completed runs remain
excluded, so no terminal conclusion can be missed.

Validated by running the embedded `jq` filters and the strip/intersection
pipeline against a synthetic merge/head pair whose shared checks ended with
`startup_failure` and `stale`: both are selected on the merge side, labeled on
the head side, and recovered by the intersection (so a revert is triggered),
while `success`/`neutral`/`skipped`/incomplete runs are ignored.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…vert-97623-revert-broken-prs-workflow

Revert "Revert "Add hourly workflow to revert PRs merged with broken CI""
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…00696-revert-97623-revert-broken-prs-workflow"

This reverts commit b13adf0, reversing
changes made to 5288134.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants