Skip to content

The Publisher Stub's Shared Concurrency Group Lets a No-Op Push Replace a Pending Dispatch #2300

Closed

Description

@ptr727

Problem

catalog/snippets/workflows/publish-release.yml puts every publisher run in one concurrency group, ${{ github.workflow }}, with cancel-in-progress: false. That setting protects only the running job. GitHub keeps at most one pending run per group, and a newer run replaces the pending one.

A paths-filtered push to main by a human is a run that publish-plan-task.yml plans as no publish. Constructed sequence:

  1. A dispatch of publish-release.yml on develop is running.
  2. A dispatch on main is queued behind it as the pending run.
  3. A maintainer merge to main touching a publisher push path starts a third run.

The third run replaces the pending main dispatch, then publishes nothing, so the main release the maintainer asked for never happens and nothing reports it.

Repositories that carried their own publisher before the reusable chain avoided this by giving non-publishing runs a per-run group. The stub dropped that, so every adopter of the stub inherits the gap.

Found by the local strict review of the KiCadLibrary release-chain adoption, which copies the stub's concurrency block verbatim.

Fix

Give a run the plan cannot publish its own per-run group, or otherwise keep a non-publishing run out of the shared group. The group key has to be computable before plan runs, from github.event_name and github.actor, mirroring publish-plan-task.yml's bot allowlist for push. Update the snippet and docs/reusable-workflows.md "Adopting the Release Chain" together, and note it for the adopters' next pin bump.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    pre-existing
    on Oct 3, 2026
  2. ptr727 commented on Oct 4, 2026

    @ptr727
    OwnerAuthor

    Maintainer decision (2026-10-03): give a run the plan cannot publish its own per-run group, keyed from github.event_name and github.actor to mirror the plan's push allowlist, combined with the ref-scoped group from #2320. One PR covers both.

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

    bugpre-existing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions