Skip to content

fix(ci): re-arm release-merge via workflow_run instead of check_suite - #439

Merged
Shinrai merged 2 commits into
nextfrom
fix/release-merge-schedule-fallback
Sep 21, 2026
Merged

Shinrai merged 2 commits into
nextfrom
fix/release-merge-schedule-fallback

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

No new features

🐛 Bug Fixes

📦 Dependencies

No dependency updates

🔧 Other Changes

No other changes

👥 Contributors

PR #437 sat fully green and approved for 20+ minutes with nothing
re-triggering the merge check: the approval fired the initial
evaluation while coverage was still running, and check_suite never
re-fired once it finished. GitHub does not reliably deliver
check_suite: completed for an integration branch's own check suite
(CLDMV/.github#318).

Add a schedule cron trigger (every 10 minutes) alongside the existing
check_suite fast path. On a schedule event neither pr_number nor
head_branch are set, so the reusable's existing fallback resolution
(scan open PRs for the release PR) already handles it with no changes
needed upstream — cheap when idle. check_suite stays as a best-effort
fast path; the cron is what actually guarantees convergence.
@cldmv-bot cldmv-bot Bot added ! fix → next v4 flow: fix contributor PR targeting the next integration branch type: ci Changes to CI workflows, actions, or build pipelines type: config Changes to repository or project configuration files labels Sep 21, 2026
… for #318

The previous commit added a schedule cron as a "guaranteed" fallback,
but that's the wrong tool: a wasteful always-on poll every 10 minutes
forever, papering over the real mechanism instead of fixing it.

The actual cause: GitHub does not deliver check_suite: completed for a
check suite created by GitHub Actions itself — which is every check
this repo's own ci.yml produces, coverage badge and PR-comment jobs
included — only for one created by a third-party App. That's why zero
check_suite-triggered runs of release-merge.yml ever fired for PR
#437's own head branch. workflow_run is GitHub's documented
replacement for "re-run something when this other workflow finishes"
and doesn't have that restriction.

Replace check_suite: completed + schedule with workflow_run, naming
ci.yml by its literal workflow name (required — workflow_run matches
on name, not filename, and can't be templated via an expression in
on:). No change needed in the reusable's own resolution logic
(CLDMV/.github's workflow-release-merge.yml now threads
workflow_run.head_branch through as the primary source, falling back
to check_suite.head_branch) — this repo just needs the trigger swap
once that reaches @v4.
@Shinrai Shinrai changed the title fix(ci): guarantee release-merge re-evaluation with a scheduled fallback fix(ci): re-arm release-merge via workflow_run instead of check_suite Sep 21, 2026
@Shinrai
Shinrai merged commit a81fd0e into next Sep 21, 2026
22 checks passed
@cldmv-bot
cldmv-bot Bot deleted the fix/release-merge-schedule-fallback branch September 21, 2026 04:29
cldmv-bot Bot added a commit that referenced this pull request Sep 21, 2026
…uled…

## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
- #439
  - fix(ci): replace the schedule poll with workflow_run — the actual fix for #318 (3e9a344)
  - fix(ci): guarantee release-merge re-evaluation with a scheduled fallback (47cda9c)

### 📦 Dependencies
_No dependency updates_

### 🔧 Other Changes
_No other changes_



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>

---

<!-- coverage-start -->

![coverage](https://img.shields.io/badge/coverage-100.0%25-brightgreen?style=for-the-badge&logo=vitest&logoColor=white)

| Metric | Coverage |
|--------|----------|
| Statements | 100.0% |
| Branches   | 100.0% |
| Functions  | 100.0% |
| Lines      | 100.0% |

*Avg: **100.0%** · `4fd6ed7` · Node lts/**

<!-- coverage-end -->

<!-- co-authors -->

Co-authored-by: Shinrai <[email protected]>
Shinrai added a commit that referenced this pull request Sep 22, 2026
v3.18.2 shipped as a CI / release-automation-only release (#439 — switch the
release-merge re-evaluation trigger from check_suite to workflow_run; no runtime
change) without a curated changelog. Backfill docs/changelog/v3/v3.18.2.md and
add v3.18.2 to the README Recent Releases (v3.16.3 drops so the list stays at
four), so the ladder is strictly consecutive back from v3.19.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

! fix → next v4 flow: fix contributor PR targeting the next integration branch type: ci Changes to CI workflows, actions, or build pipelines type: config Changes to repository or project configuration files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant