Skip to content

Fix Codegen build script on EdenFS#39566

Closed
huntie wants to merge 1 commit intofacebook:mainfrom
huntie:export-D49468891
Closed

Fix Codegen build script on EdenFS#39566
huntie wants to merge 1 commit intofacebook:mainfrom
huntie:export-D49468891

Conversation

@huntie
Copy link
Copy Markdown
Member

@huntie huntie commented Sep 20, 2023

Summary:
Fixes running the build.sh script for react-native-codegen when on EdenFS. This would previously fail due a filesystem "unable to copy extended attributes" error.

This only affects development within the React Native monorepo. Practically, this equates to a workflow improvement for Meta engineers when creating RNTester builds.

Note

This is temporary. The change from mv to cp -R makes this script more expensive, which will make Android builds via Gradle take slightly longer. I have a WIP cleanup planned which will 1/ move react-native-codegen to the shared monorepo build setup, and 2/ drop this step entirely from the Android Gradle build.

Changelog: [Internal]

Differential Revision: D49468891

@facebook-github-bot facebook-github-bot added 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 fb-exported labels Sep 20, 2023
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D49468891

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D49468891

@analysis-bot
Copy link
Copy Markdown

analysis-bot commented Sep 20, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,335,447 -23
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 9,575,347 -7
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: ea85b31
Branch: main

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D49468891

Summary:

Fixes running the `build.sh` script for `react-native-codegen` when on [EdenFS](https://github.com/facebook/sapling). This would previously fail due a filesystem "unable to copy extended attributes" error.

This only affects development within the React Native monorepo. Practically, this equates to a workflow improvement for Meta engineers when creating `RNTester` builds.

NOTE: **This is temporary**. The change from `mv` to `cp -R` makes this script more expensive, which will make Android builds via Gradle take slightly longer. I have a WIP cleanup planned which will 1/ move `react-native-codegen` to the [shared monorepo build setup](facebook#38718), and 2/ drop this step entirely from the Android Gradle build.

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D49468891
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D49468891

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D49468891

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Sep 21, 2023
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in eaec4f7.

@huntie huntie deleted the export-D49468891 branch February 16, 2024 15:05
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. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants