Repository navigation
fix(dev-tools): restore manifests before publish retries - #75
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
[Medium impact] The PR appears safe to merge, with the previous test failure addressed and no new findings. SummaryThe PR restores tracked
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 |
Coverage Report for CI Build 41152291396Coverage remained the same at 59.864%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
chrisgervang
left a comment
There was a problem hiding this comment.
Approved pending Greptile comments are addressed
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), andbash -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.