Skip to content

fix(ci): tag-on-merge dispatcher — push-to-main trigger (replace dead workflow_run + cron shape) - #158

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/tag-on-merge-push
Aug 23, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/tag-on-merge-push

Conversation

@atrawog

@atrawog atrawog commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Summary

The tag-on-merge dispatcher in this repo (workflow_run + */15 cron — the shape replaced in opencharly/opencharly after its own 15× startup_failure sequence, see the umbrella CHANGELOG/2026.234.2134) is dead at startup: measured 15+ consecutive startup_failure runs across charly/plugins/docs since 2026-08-22T16:20Z, leaving every merge since then UNTAGGED (charly #375/#376/#377 and plugins #223/#224/#225 were backfilled add-only per the rulebook; this fix prevents recurrence). Adopted verbatim is the umbrella's proven event-driven dispatcher: on: push to main (the event that IS the squash-merge) + workflow_run on charly/pr-validator with a bounded 5-min wait-for-merge probe, no cron; the org reusable sweep stays idempotent; the rulebook's add-only backfill remains the ultimate path.

How tested

The failing shape — executed gh run list, per repo (pre-fix):

$ gh run list -R opencharly/charly --workflow=tag-on-merge.yml --limit 3
2026-08-22T23:51:46Z event=workflow_run startup_failure
2026-08-22T23:49:39Z event=schedule       startup_failure
2026-08-22T23:36:08Z event=workflow_run startup_failure
$ gh run list -R opencharly/plugins --workflow=tag-on-merge.yml --limit 3
2026-08-22T23:46:40Z event=workflow_run startup_failure
2026-08-22T23:33:21Z event=schedule       startup_failure
$ gh run list -R opencharly/docs --workflow=tag-on-merge.yml --limit 3
2026-08-22T23:51:38Z event=workflow_run startup_failure
2026-08-22T23:50:19Z event=schedule       startup_failure
2026-08-22T23:47:44Z event=workflow_run startup_failure

The fixed shape — the umbrella's production runs of the EXACT file adopted here:

$ gh run list -R opencharly/opencharly --workflow=tag-on-merge.yml --limit 4
2026-08-22T23:05:44Z event=push           success
2026-08-22T23:05:26Z event=workflow_run   success
2026-08-22T22:05:39Z event=push           success
2026-08-22T22:05:37Z event=push           success

Live proof of the fix in the org: the plugins leg of this rollout (opencharly/marketplace#226, identical file) merged at 23:46Z; its first post-merge run succeeded and tagged:

$ gh run list -R opencharly/plugins --workflow=tag-on-merge.yml --limit 1
2026-08-22T23:51:06Z event=workflow_run success
$ git ls-remote --tags https://github.com/opencharly/plugins.git | tail -2
2a0c4c2... refs/tags/v2026.234.2351

Rulebook compliance

Rule How / N/A
R0 git-workflow loaded
R1 RCA documented in the umbrella's CHANGELOG/2026.234.2134 (measured 15× startup_failure of the workflow_run design; cron delivery gaps 21–44 min; push is the deterministic merge event) — propagated here
R2 one file, one PR per repo carrying the dispatcher (charly/plugins/docs companion PRs)
R3 verbatim adoption of the canonical dispatcher — no fork
R4 no workarounds — event-driven design + the rulebook add-only backfill
R5 the dead shape fully replaced (cron removed; no dead trigger remains)
R6 clean feat/ branch off origin/main; no force-push; tags add-only
R7 pasted run lists above; plugins#226 live-success proof
R8 the workflow file IS the artifact; validated byte-identical against the working copy
R9 N/A — no binary
R10 N/A — CI-workflow-only change; the gate is the next merge's tag landing (proven by plugins#226's tag)

Change classification

  • Change class: CI workflow fix (active-gate breaker — no tags since 16:20Z)
  • Verification gate: production-run evidence (umbrella + the plugins leg's live success + tag)
  • Attribution tier: analysed on a live system — identical dispatcher runs live in the umbrella and in plugins with retained output; this repo's next merge is the direct proof
  • Landing: fresh charly/pr-validator; tag-on-merge

Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)

… workflow_run + cron shape)

The org-wide tag-on-merge dispatcher in this repo (workflow_run + */15 cron,
the shape fixed in opencharly/opencharly#5-era RCA — see the umbrella's
CHANGELOG/2026.234.2134) fails at STARTUP in every run: measured 15+
consecutive `startup_failure`s across charly/plugins/docs since 2026-08-22
16:20Z, leaving #375/#376/#377 merged and UNTAGGED (backfilled add-only per
the rulebook). The umbrella's replacement dispatcher is proven in production
(push to main + workflow_run with a bounded wait-for-merge job, no cron):
adopted verbatim.

Verified: push-triggered runs land ~21s after the merge push; the org
reusable sweep is idempotent; the add-only backfill remains the ultimate path.

Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 2bc298404087c389f75f010b0d2a8e65efa73bdd (branch: PR #158, opencharly/sdk)

Security screen: PASS — single .github/workflows/tag-on-merge.yml change matching the stated intent (no scope mismatch, no secrets/exfiltration, no guardrail weakening; contents: write retained, pull-requests: read is least-privilege addition required by the wait probe; actions/github-script@v7 is an official action; reusable ref @main unchanged).

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3: body accounts for the full diff, names the change-class gate (production-run evidence), pastes gh run list + git ls-remote output, tiers itself honestly as analysed on a live system (the identical file runs live in umbrella/plugins; this repo's next merge is the direct proof — the correct ceiling, not inflated), ends with the exact *Assisted-by:* footer, and answers every rule R0–R10 with HOW or N/A+reason.
  • B5/R1: full measured RCA (15× startup_failure, 21–44 min cron gaps, platform run suppression of auto-merge pushes); zero surviving warnings — startup_failure runs shown are the pre-fix shape being replaced.
  • B6/R2, B7/R3, B10/R5: no parked issues; cron fully removed, no dead/dual-mode trigger remains; verbatim adoption of the canonical dispatcher (no fork, no duplication).
  • B8/R4: the 5-min bounded wait probe is a documented readiness bridge between validator completion and the auto-merge squash, with an idempotent self-healing sweep fallback — not a flake-masking delay.
  • B12/R10: bed evidence internally consistent (correct repos/workflow names, plausible timestamps, tag v2026.234.2351 matches the 23:51Z CalVer of the successful plugins run; R10 N/A justified for a workflow-only change).
  • B16: placement CORRECT — per-repo dispatcher delegating to the org reusable workflow; no core/sdk/candy impact. B13/B15/B17/B18: N/A (no candy/CUE/Go, single atomic commit, no destroy of resources; no Go gates affected — validate is in-progress, not failed).

Verdict: PASS


deepseek.com/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 23, 2026 06:33
@github-actions
github-actions Bot merged commit 4599b1e into main Aug 23, 2026
1 check passed
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 2bc298404087c389f75f010b0d2a8e65efa73bdd (branch: PR #158, opencharly/sdk; state: closed)

Security screen: PASS — single .github/workflows/tag-on-merge.yml change matching the stated intent; no secrets/exfiltration, no guardrail weakening (contents: write retained, pull-requests: read is the least-privilege addition required by the read-only wait probe); actions/github-script@v7 official action; reusable ref opencharly/.github@main unchanged; the probe only reads PR state (bounded 5-min poll, idempotent sweep fallback — a documented readiness bridge, not a flake-masking delay).
Checklist: All applicable rules PASS or NA — A1/A2/A3 (body accounts for the full diff, pasted gh run list + git ls-remote evidence, honest analysed on a live system tier, exact *Assisted-by:* footer), B5/R1 (measured RCA: 15× startup_failure, cron gaps 21–44 min, platform run suppression of auto-merge pushes; zero surviving warnings), B10/R5 (cron fully removed, no dead trigger remains), R10 gate satisfied by production-run proof (plugins#226 live success at 23:51:06Z → tag v2026.234.2351, internally consistent with the 23:51 CalVer), B16 placement CORRECT (per-repo dispatcher → org reusable; no core/sdk/candy impact). Prior bot PASS comment independently re-verified against current diff/body — verified-non-blocking. CI validate in-progress (not failed) — not blocking.

Verdict: PASS


deepseek.com/deepseek-v4-flash — pi-review-action.

View action run

charly-auto-merge Bot added a commit that referenced this pull request Aug 23, 2026
@aitrawog
aitrawog deleted the feat/tag-on-merge-push branch September 25, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant