Skip to content

fix(release): retry failed package publishing - #5271

Merged
robert-hebel-sb merged 1 commit into
mainfrom
fix/release-retry-publish
Oct 21, 2026
Merged

robert-hebel-sb merged 1 commit into
mainfrom
fix/release-retry-publish

Conversation

@robert-hebel-sb

Copy link
Copy Markdown
Contributor

Problem

Release runs fail with TLOG_CREATE_ENTRY_ERROR (409) an equivalent entry already exists in the transparency log while publishing with provenance. Different packages fail in each run, and --concurrency 1 (#5270) did not prevent it, so the cause is not parallel publishing.

Changes

  • Retry lerna publish from-package up to 5 times with a 30s pause. Versions already on npm are skipped, so only failed packages are republished.
  • If all attempts fail, publish the remaining packages without provenance (publishConfig.provenance is flipped in the CI checkout only) so a release is never left half-published. A warning annotation is emitted.
  • Drop --concurrency 1, which did not address the cause.

Notes

  • Already published versions are immutable and are never overwritten.
  • Rebuilding does not help: builds are deterministic, so the tarball digest stays the same.
  • The fallback step is untested locally; it relies on lerna publish from-package not requiring a clean working tree.

🤖 Generated with Claude Code

Sigstore transparency log intermittently answers TLOG_CREATE_ENTRY_ERROR (409) during provenance
publishing, which fails the release. Retry lerna publish from-package up to 5 times; versions
already on npm are skipped. If every attempt fails, publish the remaining packages without
provenance. Drop --concurrency 1, which did not address the cause.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@robert-hebel-sb
robert-hebel-sb merged commit ab69a2f into main Oct 21, 2026
9 checks passed
@robert-hebel-sb
robert-hebel-sb deleted the fix/release-retry-publish branch October 21, 2026 12:29
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.

2 participants