Skip to content

release: v4.29.0 - wire up approval-triggered release-merge for this… - #316

Merged
Shinrai merged 9 commits into
masterfrom
next
Sep 21, 2026
Merged

Shinrai merged 9 commits into
masterfrom
next

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

🐛 Bug Fixes

📦 Dependencies

No dependency updates

🔧 Other Changes

No other changes

👥 Contributors

Co-authored-by: Shinrai [email protected]

Shinrai and others added 3 commits September 20, 2026 20:54
coverage-badge and coverage-pr-comment needed the `ci` job (the Node
version matrix) to finish successfully before starting. Both jobs run
their own full checkout/build/type-check/test+coverage independently
on a single runner and share no artifacts with the matrix, so the
dependency only serialized two unrelated jobs onto the critical path —
a push to next now waits for the whole matrix before coverage even
starts.

Drop `ci` from both jobs' `needs` and reference `sync-gate` directly
instead (only needed to reach its `is_master_sync` output, previously
inherited transitively through `ci`). Coverage now starts alongside
the matrix rather than after it, cutting wall-clock time on pushes to
next/hotfixes/master without changing what either job actually does.
@cldmv-bot cldmv-bot Bot added ! release → master v4 flow: persistent next → master release PR (carries the next feature release) release Marks a pull request as a pending release — merge to publish a new version semver: patch This release contains only backwards-compatible bug fixes type: bug Something is broken or not behaving as expected type: ci Changes to CI workflows, actions, or build pipelines type: config Changes to repository or project configuration files labels Sep 21, 2026
Shinrai
Shinrai previously approved these changes Sep 21, 2026
…n next→master PR

workflow-release-merge.yml (v4.28.0, #303/#305) shipped the reusable
approval-triggered API squash-merge for consumers, along with a thin
caller template, but this repo never added the caller for itself —
there's local-next-release.yml/local-hotfixes-release.yml but no
local-release-merge.yml. So this repo's own persistent next→master PR
still needed a manual "Squash and merge" click regardless of approval
+ green CI, unlike every consumer that adopted the template.

Add local-release-merge.yml, mirroring the per-repo caller template
but pointed at this repo's own workflow-release-merge.yml via a
relative `uses:` (same pattern as local-next-release.yml). Takes
effect once this ships to master with a release — pull_request_review
and check_suite events always run the copy on the default branch, so
the PR that adds this file still needs one manual merge.
@cldmv-bot cldmv-bot Bot changed the title release: v4.28.5 - run coverage in parallel with the Node test matrix release: v4.29.0 - wire up approval-triggered release-merge for this… Sep 21, 2026
@cldmv-bot cldmv-bot Bot added semver: minor This release adds new functionality in a backwards-compatible way type: feature Implements new functionality — a PR or issue that adds a feature and removed semver: patch This release contains only backwards-compatible bug fixes labels Sep 21, 2026
Shinrai and others added 3 commits September 20, 2026 21:14
An approval given before CI finishes relied entirely on `check_suite:
completed` to re-fire the merge check once the last one went green.
GitHub does not reliably deliver that event for an integration
branch's own check suite: CLDMV/slothlet#437 sat fully green and
approved for 20+ minutes with nothing re-triggering the merge job — no
check_suite-triggered run of release-merge.yml occurred at all despite
coverage finishing and the PR going green (#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 action.mjs's existing
fallback resolution (scan open PRs for the release PR) already
handles it with no code changes — cheap when idle (a couple of GET
calls, then exit). check_suite stays as a best-effort fast path; the
cron is what actually guarantees convergence.

Applied to this repo's own local-release-merge.yml and the org-wide
caller template (examples/individual-repo-workflows/release-flow-v4/
release-merge.yml) so future adopters get it by default. Existing
adopters (currently just slothlet) need the same change applied to
their own copy of the caller — it isn't picked up via the @v4 pin
since the triggers live in the caller file each repo owns.
… for #318

The previous commit added a schedule cron as a "guaranteed" fallback,
but that's the wrong tool: it's a wasteful always-on poll (every
consumer, every 10 minutes, forever) papering over the real mechanism
instead of fixing it, and still adds up to 10 minutes of latency in
the common case.

The actual cause of #318: GitHub does not deliver `check_suite:
completed` for a check suite created by GitHub Actions itself — which
is every check a repo's own ci.yml, coverage-badge, and PR-comment
jobs produce — only for one created by a third-party App. That's why
zero check_suite-triggered runs of release-merge.yml ever fired for
slothlet PR #437's own head branch: the trigger was silently dead for
the exact case it exists to handle. `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 the caller's own 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:`). Thread `workflow_run.head_branch` through
`workflow-release-merge.yml` as the primary source for the `head_branch`
input, falling back to `check_suite.head_branch` for a caller that
hasn't re-synced its template copy yet or genuinely has a third-party
App's check suite worth listening to. action.mjs's resolution logic is
unchanged — it already treats `head_branch` generically regardless of
which event produced it.

Applied to this repo's own local-release-merge.yml and the org-wide
caller template. Existing adopters (slothlet) get a follow-up commit
with the same change, for the same reason a caller-file trigger change
never arrives via the @v4 pin — see the previous commit's discussion.
@cldmv-bot cldmv-bot Bot added area: core Touches core library / runtime source code type: documentation Relates to docs, README updates, guides, or inline code comments labels Sep 21, 2026
@Shinrai
Shinrai merged commit 7a5d699 into master Sep 21, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Touches core library / runtime source code ! release → master v4 flow: persistent next → master release PR (carries the next feature release) release Marks a pull request as a pending release — merge to publish a new version semver: minor This release adds new functionality in a backwards-compatible way type: bug Something is broken or not behaving as expected type: ci Changes to CI workflows, actions, or build pipelines type: config Changes to repository or project configuration files type: documentation Relates to docs, README updates, guides, or inline code comments type: feature Implements new functionality — a PR or issue that adds a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant