Skip to content

Install timing out on npm ci often #7119

Description

@iBotPeaches

How frequently does the bug occur?

Sometimes

Description

We've been triaging an issue with npm ci stalling forever in CI. With verbose running we see it always failing like:

npm http cache https://registry.npmjs.org/metro-config 31ms (cache hit)
npm http cache https://registry.npmjs.org/@react-native-community%2fcli-doctor 33ms (cache hit)
npm http cache https://registry.npmjs.org/patch-package 36ms (cache hit)
npm info run realm@20.2.0 install node_modules/realm prebuild-install --runtime napi || echo 'Failed to download prebuild for Realm'

Runners hit the 2-4h timeout and stop. Just sitting on that line forever. It started about 2 weeks ago and I see 26 failed jobs between March 20 and today that had this same experience.

I run it again, it works. I run it again it fails. I thought this was a CI problem, but we have 4 runners (2 on prem and 2 on MacStadium) and all 4 have experienced the issue at some point.

Stacktrace & log output

npm info run realm@20.2.0 install node_modules/realm prebuild-install --runtime napi || echo 'Failed to download prebuild for Realm'

Can you reproduce the bug?

Sometimes

Reproduction Steps

Install

"realm": "20.2.0",

Run in CI and wait.

Version

20.2.0

What services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

React Native 84

Build environment

M4 Pros - Xcode26

Cocoapods version

1.15.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions