Skip to content

fix(ci): make RC/Nightly tag publish rerun-safe (#487)#488

Merged
BenJule merged 1 commit into
developfrom
fix/publish-tag-idempotency
Jun 6, 2026
Merged

fix(ci): make RC/Nightly tag publish rerun-safe (#487)#488
BenJule merged 1 commit into
developfrom
fix/publish-tag-idempotency

Conversation

@BenJule

@BenJule BenJule commented Jun 6, 2026

Copy link
Copy Markdown
Owner

Fixes the fatal: tag already exists (exit 128) that aborts a Publish re-run.

Root cause: git fetch pulls the tag an earlier Publish run created; git tag -s then refuses to overwrite it, so a partial RC's macOS-ARM artifacts never get appended.

Fix (cd-release-candidate.yml + cd-nightly.yml):

  • git tag -d $TAG || true before recreating (drops stale local tag)
  • git push --force so a re-run updates the existing ref
  • API fallback now does POST-or-PATCH

cd-release.yml already handled this and is unchanged.

Closes #487

A re-run of the Publish step (e.g. after a partial RC where some platform
jobs were re-run) aborted with "fatal: tag already exists" (exit code 128):
git fetch pulls the tag the earlier run created, and `git tag -s "$TAG"`
then refuses to overwrite it, so the pre-release stayed incomplete.

Make tag creation idempotent in cd-release-candidate.yml and cd-nightly.yml:
- delete any stale local tag before recreating it,
- force-push so a re-run can update the existing ref,
- fall back to PATCH if the ref-create API reports the ref already exists.

cd-release.yml already handles this (existing-release check + ref-create
with "|| continue") and is left unchanged.

Closes #487
@BenJule BenJule added this to the v02.07.00-dev milestone Jun 6, 2026
@BenJule BenJule self-assigned this Jun 6, 2026
@github-actions github-actions Bot added area: ci GitHub Actions, CI/CD platform: macos macOS-specific issue labels Jun 6, 2026
@BenJule BenJule merged commit 1494111 into develop Jun 6, 2026
4 checks passed
@BenJule BenJule deleted the fix/publish-tag-idempotency branch June 6, 2026 23:25
BenJule added a commit that referenced this pull request Jun 7, 2026
…xes (#490) + path-aware CI (#492)

Validated green by develop nightly 27076845641 (26 build jobs across all platforms+archs, Publish success).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci GitHub Actions, CI/CD platform: macos macOS-specific issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant