• Applicable Software: MokoGIT
  • Min Version Number: 02.89.01
  • Max Version Number: Not Applicable

Why this matters

On MokoGIT, merging to a repository's production branch (stable or main) is supposed to trigger a release: the push fires an Actions dispatch, the release workflow runs, and a new build is cut. Occasionally the push-to-Actions handoff is interrupted - the commit lands in Git, but the dispatch that should have created a workflow run never fires. The commit sits on the production branch looking perfectly healthy while, invisibly, no release was ever built. This actually happened to two stable cuts on 2026-10-07, each of which had to be recovered by a manual workflow_dispatch.

The problem is that nothing complains. There is no failed run to notice - there is no run at all. This detector exists to turn that silent gap into a loud, actionable alert.

How it works

A cron task (detect_missing_release_runs) scans every active repository on a schedule. For each repository it looks at the tip commit of the default (production) branch and asks one precise question: does this commit have zero workflow runs? That zero-runs test is the heart of the detector, and it is chosen because it is effectively false-positive free as a symptom signal.

The reasoning is worth understanding:

  • If the push handoff worked, at least one workflow run exists for that commit SHA - even if the release workflow itself path-filtered the change out, some other workflow in the repo would typically have fired and created a run.
  • If the push handoff was interrupted, there are no runs for the commit at all, because nothing was ever dispatched.

So zero runs for the head SHA cleanly distinguishes an interrupted push from an ordinary paths-ignored push (where the release trigger fired but other, unfiltered workflows still created runs).

To keep the signal clean and cheap, the scan applies several guards:

  • Recency bound - only commits pushed within roughly the last 6 hours are considered. This matters because MokoGIT prunes old Actions runs weekly; without the bound, a run that was pruned long after it ran could be mistaken for one that never existed. Six hours is far shorter than the prune window, so a missing run inside it genuinely means the run never happened.
  • Skip-CI respect - a commit whose message contains [skip ci] is intentionally un-built and is ignored.
  • Actions-enabled only - archived, mirror, and empty repositories are skipped, as are repositories with the Actions unit disabled.

When a commit trips the gate, the detector writes a loud warning to the log identifying the repository, branch, and commit SHA, and noting that the push-to-Actions dispatch likely never fired so the release will not cut. That log line is forwarded by the log-to-ntfy pipeline, so an operator is notified and can dispatch the release after confirming intent. At the end of a scan the task also logs a one-line summary of how many repositories were flagged.

Optional auto-dispatch (self-heal)

The task has an AUTO_DISPATCH mode that goes beyond alerting: when the gate trips, it force-dispatches the fleet-canonical release workflow (auto-release.yml) on the production branch, attributed to the site admin, using each workflow input's declared default. That reproduces exactly the manual workflow_dispatch an operator would run to recover an interrupted release.

Auto-dispatch is OFF by default, and deliberately so. The zero-runs test is a safe symptom detector but it is not a safe remedy trigger, for a subtle reason:

  • The release workflow's push trigger paths-ignores documentation and similar files (.md, docs/, .mokogit). A legitimately docs-only push can therefore produce zero release runs by design.
  • If the repository's other workflows also path-filter that push, zero total runs is the correct outcome - the commit really had nothing to build.
  • But workflow_dispatch ignores paths-ignore. So auto-dispatching a release there would force a release of a commit that intentionally should not release.

In other words, an interrupted push and a nothing-to-build push are indistinguishable from the run count alone. Enable auto-dispatch only in repositories where every production-branch push is expected to build. Everywhere else, leave it off and let the alert drive a human decision.

When auto-dispatch is on but the re-fire fails - typically because the repo has no auto-release.yml at that commit, or that workflow lacks a workflow_dispatch trigger, or is disabled - the failure is treated as benign: the detector logs it and leaves the original warning in place for manual recovery.

Step by step: responding to an alert

  1. When you receive a missing-release-run alert (via ntfy, or by reading the server log), note the repository, branch, and commit SHA it names.
  2. Confirm intent: was this commit supposed to produce a release, or was it a docs-only / non-building change? If it should not build, no action is needed.
  3. If it should have released, open the repository's Actions tab, choose the release workflow (auto-release.yml), and run it via workflow_dispatch on the production branch.
  4. Confirm a run is created and completes, then verify the release was cut (check the new build/version by its API field, not only the /version page).

Operators with API access can dispatch the same way:

# Re-fire the release workflow on the production branch
curl -X POST \
  -H "Authorization: token YOUR_TOKEN" \
  "https://git.mokoenterprises.us/api/v1/repos/YourOrg/YourRepo/actions/workflows/auto-release.yml/dispatches" \
  -d '{"ref":"stable"}'

Caveats

  • The detector only looks at the default (production) branch tip. A missing run on a non-default branch is out of scope - the concern is specifically releases that silently fail to cut.
  • The 6-hour recency bound means a genuinely interrupted push that is older than the window will not be flagged. The intent is to catch interruptions promptly, not to audit historical history where runs may already have been pruned.
  • Zero runs is a reliable symptom signal but not, on its own, proof a release was wanted. A docs-only or otherwise path-filtered push can legitimately show zero runs. This is exactly why auto-dispatch is off by default.
  • Auto-dispatch force-releases a commit by ignoring paths-ignore. Enable it only where every production-branch push is meant to build; otherwise it can publish a release that was never intended.
  • If the release workflow is absent, disabled, or lacks a workflow_dispatch trigger at the flagged commit, auto-dispatch cannot heal it - the alert remains your signal to recover by hand.

Get help

Open a support ticket or call (931) 820-0265.