Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileStore now recreates parent cache folders if a write fails #370

Closed
wants to merge 4 commits into from
Closed

FileStore now recreates parent cache folders if a write fails #370

wants to merge 4 commits into from

Conversation

mrsharpoblunto
Copy link
Contributor

Summary

We were seeing periodic cases of builds failing where a cache write would fail. The cause of this seems to be another process cleaning up the /tmp folder periodically - to reduce the chance of these failures this PR adds some fallback logic where if a filestore write fails it will try to recursively recreate its parent cache paths and try writing again.

Test plan

Run the new unit test and see that it passes after the FileStore change is made

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 8, 2019
Copy link
Contributor

@cpojer cpojer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

thymikee added a commit to thymikee/metro that referenced this pull request Mar 16, 2019
…ation

* upstream/master:
  Upgrade jest to 24.5.0
  Bump Prettier to 1.16.4
  Bump Metro to v0.53.1
  Another pass at Metro Flow annotation coverage
  Add CLI option to ignore function map
  Default to lazy requires for all public RN exports (facebook#362)
  FileStore now recreates parent cache folders if a write fails (facebook#370)
  Support symbolicating file:line:column stack frames
  Add connection verification
  Improve Flow annotation coverage in Metro
  Drop leading newline
  Deploy 0.94 to xplat
  Add new metro flag for running inspector proxy
  Perform security fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants