-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
Since switching to yarn, we started observing random yarn install failures in one of our binary dependencies (fibers, the other being fsevents).
I was able to pinpoint the cause:
- Yarn is executing the install scripts of both deps in parallel
- The system doesn't have node headers
- Both install scripts invoke node-gyp
- Two instances of node-gyp running in parallel are both downloading node header files
- In around 10% of our builds, this resulted in a situation where I think one process was extracting files from a tarball that the other process was writing to. Not sure what exactly went on, but as a result the extracted header files were truncated and not parseable.
Could this be solved by downloading and extracting into a tempdir and then moving that into its proper place afterwards?
Metadata
Metadata
Assignees
Labels
No labels