Skip to content

fix(dev-tools): restore manifests before publish retries - #75

Merged
ibgreen merged 2 commits into
masterfrom
codex/fix-publish-retry
Oct 31, 2026
Merged

ibgreen merged 2 commits into
masterfrom
codex/fix-publish-retry

Conversation

@ibgreen

@ibgreen ibgreen commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

A partial Lerna publish can leave rewritten package manifests behind. During the 2.0.0-beta.2 release, a provenance-log failure left these changes in place, so both automatic retries failed with EUNCOMMIT before reaching npm.

Restore tracked package.json files after each failed publish, including the final attempt so manual reruns start cleanly. Require a clean tracked working tree before publishing to protect pre-existing staged and unstaged edits. Other files remain untouched, and the existing from-package behavior and retry delays are preserved.

Validation: yarn build, yarn lint, yarn vitest run --project node (27 tests passed), and bash -n modules/dev-tools/scripts/publish.sh. Five regression cases exercise a successful retry, exhausted retries, unrelated file preservation, and staged/unstaged edit protection using temporary Git repositories and mocked publishing commands.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-30T22:02:48.503226Z
We couldn’t complete this review. Comment @codex review to try again.
363b982 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@greptile-apps

greptile-apps Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge, with the previous test failure addressed and no new findings.

Summary

The PR restores tracked package.json files after each failed Lerna publish, including the final attempt.

  • Monorepo publishes restore package manifests after failed attempts.

No new issues were found in the changes since the previous review.

Reviews (2) · Last reviewed commit: "test: disable signing for publish fixtur..." · Reviewed by Greptile

Comment thread modules/dev-tools/test/publish.spec.ts Resolved
@coveralls

coveralls commented Oct 30, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 41152291396

Coverage remained the same at 59.864%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 653
Covered Lines: 380
Line Coverage: 58.19%
Relevant Branches: 523
Covered Branches: 324
Branch Coverage: 61.95%
Branches in Coverage %: Yes
Coverage Strength: 5.47 hits per line

💛 - Coveralls

@chrisgervang chrisgervang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending Greptile comments are addressed

@ibgreen
ibgreen merged commit e88c932 into master Oct 31, 2026
3 checks passed
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.

3 participants