Skip to content

tag-on-merge mints the tag but starts no push: tags workflow — pod-crabbox's image publish never ran #277

Closed

Description

@aitrawog

Problem

A tag minted by tag-on-merge does not start a workflow that listens on on: push: tags: ['v*']. The first repo to depend on that chain — opencharly/pod-crabbox — merged and tagged, and its image publish never ran.

This is the W5 publish path for all twelve pod-crabbox* repos.

Measured

opencharly/pod-crabbox#2 merged 2026-11-03T17:59:39Z at 1b9a9c061755f69f3d98310b3f3896b8184ecd49; tag-on-merge minted v2026.307.1759, verified to point at exactly that commit:

$ git ls-remote --tags https://github.com/opencharly/pod-crabbox | grep v2026.307.1759
1b9a9c061755f69f3d98310b3f3896b8184ecd49	refs/tags/v2026.307.1759

The caller is present on main and declares the trigger (pod-crabbox/.github/workflows/image.yml):

on:
  push:
    tags: ['v*']

Yet no run was created for it:

$ gh api repos/opencharly/pod-crabbox/actions/runs?per_page=15 \
    --jq '.workflow_runs[] | "\(.name) | \(.event) | \(.head_branch // "null")"'
tag-on-merge        | push          | main
tag-on-merge        | workflow_run  | main
charly/pr-validator | pull_request  | feat/base-image-v2
image               | pull_request  | feat/base-image-v2
…

Every image run is pull_request. Zero runs carry the tag event.

RCA — three fields measured, the fourth a hypothesis, stated as one

  • Mechanism (hypothesis, not established). tag-on-merge pushes the tag with an App installation token (actions/create-github-app-token, tag-on-merge.yml:27). GitHub's documented suppression applies to the repository's GITHUB_TOKEN; an installation token is supposed to fire events. The observed absence says otherwise for this org — but the trigger definition is also correct, so one of the two is not doing what it is documented to do.
  • Missed control. Nothing asserts that a minted tag produced a run. tag-on-merge reports success when the tag exists, and the caller's absence is invisible because no workflow is expected to run in order to notice it missing. The control the chain needs: after minting, assert a run was created for that ref (and fail, or dispatch it) — the same "assert the side effect happened" shape as the Closes #N control in .github#223.
  • Blast radius. Every repo that adopts the image caller: the pod-crabbox* family cannot publish an image at all, so W5.5's "a tag publishes ghcr.io/opencharly/<repo>:<tag>" is unachievable as wired. layer-krun#2 merged in the same minute and is in the same position for any tag-triggered workflow.
  • Root fix (two candidates, one test). Either (a) tag-on-merge dispatches the downstream workflow explicitly with workflow_dispatch + the tag as input — deterministic, needs no reliance on event propagation; or (b) the caller additionally listens on workflow_run / a repository_dispatch the tag step sends. The discriminating test for which is true: create a tag on a scratch repo with a user token and see whether the push: tags workflow runs. If it does, this is token-specific and (a) is the fix; if it does not, the caller's trigger itself is wrong.

Why this is filed rather than fixed here

.github is this repo's own workflow surface and the fix is a workflow change with a gate of its own. Filed so the W5 publish path is not silently dead while pod-crabbox looks "done" because it merged.

Agent: containerd-crabbox-program · session 8b1c01cf-7f79-4a75-bff8-240415a06208
Assisted-by: Claude Code DeepSeek V4.1 Flash (analysed on a live system)

Activity

  1. aitrawog commented on Nov 3, 2026

    @aitrawog
    ContributorAuthor

    Mechanism CONFIRMED — and the org already documents it. My 'two candidates' collapses to one, with the working pattern named.

    charly/.github/workflows/release-binary.yml says it in its own header:

    tag-on-merge creates release tags via the REST API (git.createRef), which does NOT emit a push event — and auto-merge squash merges (actor app/github-actions) fire ZERO workflow runs at all — so push: tags / push: branches alone never fire for merged PRs … This workflow chains off tag-on-merge completion (workflow_run — the ONE trigger whose event delivery is proven).

    Measured support, from the runs themselves:

    repo workflow event
    charly release-binary workflow_run — never push
    charly tag-on-merge push (branch main)
    pod-crabbox image pull_request only — zero tag events

    So this is not a token problem (the docs are explicit that an App/PAT token fires events), it is git.createRef not emitting a push event at all. release-binary already works around it; the image caller does not.

    Root fix, in the org's own proven shape: the image caller must chain off tag-on-merge completion via workflow_run — the same trigger release-binary uses — and derive the tag the way release-binary does (the newest v* tag whose release/artifact does not yet exist), rather than waiting for a push: tags that will never arrive.

    This is a real W5.4 defect, not an operator gate: as wired, no pod-crabbox* repo can publish an image. pod-crabbox has merged and tagged (v2026.307.1759 at 1b9a9c06) and nothing published.

    Blast radius: every repo adopting the image caller — the twelve W5 repos plus any distro repo using it.

    Agent: containerd-crabbox-program · session 8b1c01cf-7f79-4a75-bff8-240415a06208
    Assisted-by: Claude Code DeepSeek V4.1 Flash (analysed on a live system)

  2. aitrawog commented on Nov 3, 2026

    @aitrawog
    ContributorAuthor

    CLAIM — taking #277 as containerd-crabbox-program: the caller fix landed in one repo, the canonical template still teaches the broken trigger.

    pod-crabbox#3 proved the mechanism and shipped the working shape, and the publish is now real (image | event=workflow_run | completed/success; ghcr.io/opencharly/pod-crabbox:2026.307.1828 exists). But image-build.yml's INVOCATION block — the block the next eleven pod-crabbox* repos copy — still prescribed on: push: tags: ['v*'], which is exactly the trigger that never fires. So the defect is fixed in one caller and still published as guidance to eleven more.

    Scope: image-build.yml's INVOCATION block only (comment-only; triggers, inputs, permissions and jobs unchanged). Tracking in opencharly/.github, one PR.

    Agent: containerd-crabbox-program · session 8b1c01cf-7f79-4a75-bff8-240415a06208
    Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

  3. aitrawog commented on Nov 3, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — the mechanism is documented, the canonical template no longer teaches the broken trigger, and the publish path is proven end to end.

    Merged PR: opencharly/.github#278 — squash bf198a03b94d556e3b180790eebeb04be94503be at 2026-11-03T20:07:56Z.
    Tag: v2026.307.2007, verified to point at exactly that commit:

    $ git ls-remote --tags https://github.com/opencharly/.github | grep v2026.307.2007
    bf198a03b94d556e3b180790eebeb04be94503be	refs/tags/v2026.307.2007
    

    What was actually wrong. tag-on-merge mints the CalVer tag through the REST API (git.createRef), which emits no push event, so a caller listening on on: push: tags: ['v*'] can never see a tag this org creates. That was not a hypothesis: pod-crabbox merged and was tagged v2026.307.1759 at 1b9a9c06, its caller declared push: tags, and zero image runs were created — every image run on record was pull_request.

    What is now true, measured — not inferred:

    • opencharly/pod-crabbox chains its caller off tag-on-merge completion, and the publish ran:
      image | event=workflow_run | completed/success.
    • The artifact exists in the registry, checked independently of the workflow:
      skopeo inspect docker://ghcr.io/opencharly/pod-crabbox:2026.307.1828 → digest sha256:8b19506a…, created 2026-11-03T18:36:56Z.
    • image-build.yml's INVOCATION block — the template the remaining eleven pod-crabbox* repos copy — now prescribes the workflow_run shape, states the git.createRef mechanism inline, cites this issue, and keeps sort -V with its reason. The wrong block was replaced, not left beside the right one (R5).

    The defect this issue names is now cured at both levels: in the one caller that needed it, and in the guidance that would have reproduced the zero-run failure in the next eleven repos.

    The remaining pod-crabbox* repos are uncreated, which is a separate, operator-gated item — not part of this issue.

    Agent: containerd-crabbox-program · session 8b1c01cf-7f79-4a75-bff8-240415a06208
    Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions