Problem
The Verify global install from pack step in .github/workflows/CI.yml intermittently fails on all OS runners (observed on macOS and ubuntu). It is not a test failure and not OS-specific.
npm install -g of the packed tarball runs the kubo package postinstall (node src/post-install.js), which downloads the kubo binary from https://dist.ipfs.tech/kubo/versions. When that public CDN returns a transient error the install aborts with no retry:
npm error path .../node_modules/kubo
npm error command sh -c node src/post-install.js
npm error https://dist.ipfs.tech/kubo/versions
npm error HTTPError: Response code 502 (Bad Gateway) (ERR_NON_2XX_3XX_RESPONSE)
npm ci earlier usually succeeds because of the npm/kubo binary cache; the global install into a fresh prefix forces an uncached download, exposing it to CDN flakiness. With fail-fast: false this shows up as scattered single-OS red jobs.
Plan
- Wrap the
npm install -g in a bounded retry loop so a single transient CDN response no longer fails CI.
Verification
- Confirm CI is green across all three OS runners after the change.
Problem
The
Verify global install from packstep in.github/workflows/CI.ymlintermittently fails on all OS runners (observed on macOS and ubuntu). It is not a test failure and not OS-specific.npm install -gof the packed tarball runs thekubopackage postinstall (node src/post-install.js), which downloads the kubo binary fromhttps://dist.ipfs.tech/kubo/versions. When that public CDN returns a transient error the install aborts with no retry:npm ciearlier usually succeeds because of the npm/kubo binary cache; the global install into a fresh prefix forces an uncached download, exposing it to CDN flakiness. Withfail-fast: falsethis shows up as scattered single-OS red jobs.Plan
npm install -gin a bounded retry loop so a single transient CDN response no longer fails CI.Verification