Skip to content

CI: flaky 'Verify global install from pack' due to transient kubo binary download failures (dist.ipfs.tech 502) #110

Description

@Rinse12

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions