Skip to content

[0.85] Fix silent tar extraction failure on EdenFS in replace-rncore-version#56644

Open
motiz88 wants to merge 1 commit intofacebook:0.85-stablefrom
motiz88:pick-rncore-edenfs-0.85
Open

[0.85] Fix silent tar extraction failure on EdenFS in replace-rncore-version#56644
motiz88 wants to merge 1 commit intofacebook:0.85-stablefrom
motiz88:pick-rncore-edenfs-0.85

Conversation

@motiz88
Copy link
Copy Markdown
Contributor

@motiz88 motiz88 commented Apr 28, 2026

Summary

Cherry-pick of 9bc7d38be07 (#55797) from main.

Fixes silent tar extraction failures on EdenFS-mounted directories in replace-rncore-version.js by extracting to a temp directory first, then moving the results into the final location.

Previously picked to 0.83-stable as becef72f121 (#55795, different patch adapted for 0.83).

Changelog:

[IOS] [FIXED] - Fix silent tar extraction failure on EdenFS in replace-rncore-version.js

Test Plan

  • CI

cc @cipolleschi

…facebook#55797)

Summary:
On EdenFS, `tar -xf` extraction directly into an EdenFS-mounted directory silently produces incomplete results — only the first slice of the tarball (ios-arm64) gets extracted, while the remaining entries (catalyst, simulator, top-level Headers) have their directories created but files are missing. The `replace-rncore-version.js` script didn't check tar's exit code, so it would write the config file and subsequent builds would skip re-extraction.

This fix extracts the tarball to a temporary directory on a regular filesystem first, verifies the extraction succeeded (exit code + expected file check), then moves the results into the final location. This is adapted from D94625297 (which targeted 0.83) to work with the current main branch, preserving the v0.84 behavior of only deleting subdirectories in `React-Core-prebuilt` (keeping files like `React-VFS.yaml`).

## Changelog:

[IOS] [FIXED] - Fix silent tar extraction failure on EdenFS in replace-rncore-version.js by extracting to a temp directory first

Pull Request resolved: facebook#55797

Test Plan: Validated by the original patch author on EdenFS in D94625297. The logic is equivalent, adapted for the v0.84 code which preserves files in the target directory.

Reviewed By: cortinico

Differential Revision: D94653392

Pulled By: cipolleschi

fbshipit-source-id: f2f1956b434586f0a83e1ec648a03dbac25333f5
@meta-cla meta-cla 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 Apr 28, 2026
@github-actions
Copy link
Copy Markdown

Warning

JavaScript API change detected

This PR commits an update to ReactNativeApi.d.ts, indicating a change to React Native's public JavaScript API.

  • Please include a clear changelog message.
  • This change will be subject to additional review.

This change was flagged as: POTENTIALLY_BREAKING

@motiz88 motiz88 marked this pull request as ready for review April 28, 2026 15:42
@motiz88 motiz88 requested a review from cipolleschi April 28, 2026 15:42
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. p: Facebook Partner: Facebook Partner Pick Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants