[RNMobile] Fix random React Native E2E Tests failures with errno 134#23452
Merged
[RNMobile] Fix random React Native E2E Tests failures with errno 134#23452
Conversation
This was introduced in wordpress-mobile/gutenberg-mobile#873 as hack to patch metro to not watch files when bundling. Current 0.58.0 version of metro that we are using now automatically checks if it's running on CI via 'ci-info' npm package and doesn't enable watch. See: https://www.npmjs.com/package/ci-info See: https://github.com/facebook/metro/blob/v0.58.0/packages/metro/src/node-haste/DependencyGraph.js#L96
|
Size Change: +198 B (0%) Total Size: 1.13 MB
ℹ️ View Unchanged
|
Contributor
Yay!! |
hypest
reviewed
Jun 25, 2020
hypest
reviewed
Jun 25, 2020
Contributor
|
Headsup, I'm going to restart the jobs now just for the sake of testing. Edit: all finished green ✅ |
6 tasks
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR tries to fix random CI failures while bundling JS on:
with the error:
maxWorkers: 2parameter from metro config as well to utilize all cores when bundling and speed up the processDependencyGraph.jspatch for metro that was introduced in Hack: patch Metro to not watch files when bundling wordpress-mobile/gutenberg-mobile#873 as a hack to patch metro to not watch files when bundling. Current 0.58.0 version of metro that we are using now automatically checks if it's running on CI via ci-info npm package and doesn't enable watch.pull_requestinstead ofpushto decrease number of builds in the queuenpm run cache cleancommand. It should've beennpm cache cleanbut that also throws an error with this message:As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use 'npm cache verify' instead. On the other hand, if you're debugging an issue with the installer, you can use 'npm install --cache /tmp/empty-cache' to use a temporary cache instead of nuking the actual one. If you're sure you want to delete the entire cache, rerun this command with --force.How has this been tested?
On CI I was able to consistently reproduce the issue by running
cleanandbundlecommands 25 times in a row using this script:for i in $(seq 1 25); do npm run native clean && npm run native clean:runtime && npm run native test:e2e:bundle:ios zsh -i -c exit; doneScreenshots
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist: