ci: fail loudly when pnpm install exhausts its retries #480
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gmackie/ForgeGraph!480
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci/fail-loud-on-install-failure"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Both
pnpm install --frozen-lockfileretry loops passed the step even when all three attempts failed. Aforloop's exit status is its last command — here the trailingsleep 10— so a total install failure reported success and the next step ran against an emptynode_modules.The symptom is a lie
#340 has failed three times with:
which says nothing about the cause. Storybook builds fine locally on both that branch and main, and
pnpm install --frozen-lockfilesucceeds on both. So the install was failing in CI for network reasons — exactly what the retry loop exists for — and then hiding it behind a downstream error that sent me looking at storybook, lockfiles, and workspace globs instead.The fix is already in this file
The gitleaks download above tracks an
okflag and exits 1 when retries are exhausted, with a comment that puts it better than I can:The deploy health checks guard themselves too. Only these two loops did not.
Verified
Ran the shapes directly: the old form exits 0 when every attempt fails, the new form exits 1, and still exits 0 when the first attempt succeeds.