ci(root): use bash retry loop for shrinkwrap verify step#9334
Conversation
The shrinkwrap-verify step called the `retry` binary, whose install step was removed in 1c04950 (VL-7134) on the assumption it was only used by improved-yarn-audit. `retry: command not found` then caused the step to false-fail after a successful publish (bitgo@52.3.0 shipped correctly). Replace the `retry` wrapper with a plain bash loop, matching the adjacent Create GitHub release step, so the check no longer depends on a third-party binary in the post-publish window. TICKET: WCN-1584 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Claude finished @zahin-mohammad's task —— View job Code Review for PR #9334Analyzing the CI workflow changes to fix the shrinkwrap verification step. Todo List:
Review Summary ✅Problem Analysis: This PR correctly identifies and fixes a legitimate CI issue where the Changes ReviewFile: ✅ Strengths:
✅ Implementation Quality:
✅ Consistency Check: Minor Observations
VerificationThe change should resolve the false failure described in the issue:
Recommendation: ✅ APPROVEThis is a well-implemented fix that:
The implementation is clean, follows best practices, and should reliably fix the release pipeline issue. |
Summary
Verify bitgo package has shrinkwrap metadatastep innpmjs-release.ymlcalls theretrybinary, whoseInstall retrystep was removed in 1c04950 (VL-7134) on the assumption it was only used by improved-yarn-audit. It missed that the shrinkwrap-verify step (added in 23ec271) also depends on it.bash -e,retryexits 127 (command not found), so! retry ...is true and the step false-fails with a misleading "missing _hasShrinkwrap metadata" message. The 2026-07-22 release (bitgo@52.3.0) went red here even though the package published correctly (_hasShrinkwrap: trueon the registry).retrywrapper with a plain bash loop, matching the adjacentCreate GitHub releasestep, so the check no longer depends on a third-party binary in the post-publish window.Evidence
Runner log (run 29952850612, job "Release BitGoJS"):
Test plan
_hasShrinkwrapis genuinely absentTicket: WCN-1584
🤖 Generated with Claude Code