Skip to content

fix(release): the release job stops when its tag already exists on another commit, and never replaces a published release's assets #1805

Closed

Description

@dan-petty

Friction

A release PR merge can publish the previous release again under its old version. On 2026-10-21 the v0.2.38 release pull request merged into main before the cut, and the workflow republished v0.2.37 from the v0.2.38 code.

Evidence

Release Orchestration run 39677745263, on the merge commit 1a8b26c, where pyproject.toml still said 0.2.37:

  • Its release job read version 0.2.37, found the tag v0.2.37 already present (954914e, a different commit) and printed "Tag v0.2.37 already exists", then went on.
  • softprops/action-gh-release replaced the three assets of the published v0.2.37 release at 21:19:09 UTC: the wheel, the sdist and SHA256SUMS now come from a build of the 0.2.38 code.
  • The DevContainer image job completed and pushed. The Service Image job would have pushed the tags v0.2.37 and latest; it was cancelled by hand.
  • The real v0.2.38 run (39677802397) was queued behind it, since the workflow's concurrency group does not cancel in progress, and delayed the release by the length of the image builds.

Remedy

The release job stops, with an error naming both commits, when the tag it would create already exists on a different commit than the one being published. It never replaces assets of a published release, and the image jobs do not run after it stops. A test pins both.

Separately, a person repairs v0.2.37: its assets and the v0.2.37 image tags rebuilt from the tag.

Acceptance criteria

  • A workflow contract fails if the tag step can continue when the tag exists on another commit.
  • The v0.2.37 release assets and image tags match a build of the v0.2.37 tag (Pending a person).
  • uv run devops ci passes.

Activity

  1. added this to the v0.2.39 milestone on Oct 21, 2026
  2. added
    type/bug
    priority/p0-critical
    scope/release
    source/agent
    on Oct 21, 2026
  3. added a commit that references this issue on Oct 21, 2026
    5d264d6
  4. dan-petty commented on Oct 21, 2026

    @dan-petty
    OwnerAuthor

    What changed

    #1809, merged into release/v0.2.39 as 5d264d6.

    The release job stops when the tag for its version is already on another commit.

    4 file(s) changed.

    How it was verified

    Check runs at 9a90423:

    • Prune PR DevContainer Images: pass
    • Audit Defect PR Hardening: skipping
    • zizmor: pass
    • devops-cli: pass
    • bandit: pass
    • CodeQL: pass
    • Rule Pack Tests: pass
    • Static Analysis: pass
    • Analyze (actions): pass
    • Analyze (python): pass
    • Tests & Coverage: pass
    • Changed-Test Independence: pass
    • Fail-to-Pass Check: pass
    • Fail-to-Pass Self-Check: pass
    • Dependency Freshness: skipping
    • Service Image: skipping
    • DevContainer Image: skipping

    Acceptance Criteria of docs/agent/tasks/task-1805-release-tag-guard.md:

    No Acceptance Criteria section.

  5. added a commit that references this issue on Oct 23, 2026
    f209f6c
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

    priority/p0-criticalscope/releasesource/agenttype/bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions