Skip to content

Randomly failing builds with xcode archiving #9373

Description

@ColCh

A log for failed build:

    + node /some/path/node_modules/react-native/local-cli/cli.js bundle --entry-file index.ios.js --platform ios --dev false --reset-cache true --bundle-output '/some/pathmain.jsbundle' --assets-dest '/some/path'
    ...
    [4:39:45 AM] <START> Building Dependency Graph
    [4:39:45 AM] <START> Crawling File System
    [4:39:52 AM] <START> find dependencies
    [4:40:10 AM] <END>   Crawling File System (24334ms)
    [4:40:10 AM] <START> Building in-memory fs for JavaScript
    [4:40:10 AM] <END>   Building in-memory fs for JavaScript (717ms)
    [4:40:10 AM] <START> Building in-memory fs for Assets
    [4:40:11 AM] <END>   Building in-memory fs for Assets (318ms)
    [4:40:11 AM] <START> Building Haste Map
    [4:40:11 AM] <START> Building (deprecated) Asset Map
    [4:40:11 AM] <END>   Building (deprecated) Asset Map (96ms)
    [4:40:11 AM] <END>   Building Haste Map (639ms)
    [4:40:11 AM] <END>   Building Dependency Graph (26138ms)
    [4:42:38 AM] <END>   find dependencies (166491ms)

    /some/path/node_modules/promise/lib/done.js:10
          throw err;
          ^
    fs operation timeout
    Command /bin/sh failed with exit code

And for succeeded build:

+ DEST='/some/path'
+ [[ Release = \D\e\b\u\g ]]
+ node '/some/path/node_modules/react-native/local-cli/cli.js bundle --entry-file index.ios.js --platform ios --dev false --reset-cache true --bundle-output '/some/path/main.jsbundle' --assets-dest '/some/path'
[11:55:16 AM] <START> Building Dependency Graph
[11:55:16 AM] <START> Crawling File System
[11:55:17 AM] <START> find dependencies
[11:55:22 AM] <END>   Crawling File System (6346ms)
[11:55:22 AM] <START> Building in-memory fs for JavaScript
[11:55:22 AM] <END>   Building in-memory fs for JavaScript (240ms)
[11:55:22 AM] <START> Building in-memory fs for Assets
[11:55:23 AM] <END>   Building in-memory fs for Assets (170ms)
[11:55:23 AM] <START> Building Haste Map
[11:55:23 AM] <START> Building (deprecated) Asset Map
[11:55:23 AM] <END>   Building (deprecated) Asset Map (72ms)
[11:55:23 AM] <END>   Building Haste Map (370ms)
[11:55:23 AM] <END>   Building Dependency Graph (7180ms)
[11:55:35 AM] <END>   find dependencies (18032ms)
bundle: start
bundle: finish
bundle: Writing bundle output to: /some/path/main.jsbundle
bundle: Done writing bundle output
bundle: Copying 46 asset files
bundle: Done copying ass

Recap:
for failed build:

    [4:42:38 AM] <END>   find dependencies (166491ms)

and suceeeded:

[11:55:35 AM] <END>   find dependencies (18032ms)

I think that this is main culpit, it really just timed out.
It happends on Mac Book Air with HDD, no way to get faster machine.

Please provide a way to specify timeout for build fail via some environment variable like REACT_NATIVE_PACKAGER_TIMEOUT

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions