Skip to content

Conversation

@fkgozali
Copy link
Contributor

@fkgozali fkgozali commented Oct 27, 2020

Summary:
This fixed bad src copy for Buck-building: //packages/react-native-codegen:setup_cli. Using rsync -L will correctly copy file contents instead of preserving symlinks (which confused yarn).

Changelog: [Internal]

Differential Revision: D24577333

@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 Oct 27, 2020
@facebook-github-bot
Copy link
Contributor

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

@pull-bot
Copy link

pull-bot commented Oct 27, 2020

Messages
📖

📋 Missing Changelog - Can you add a Changelog? To do so, add a "## Changelog" section to your PR description. A changelog entry has the following format: [CATEGORY] [TYPE] - Message.

DetailsCATEGORY may be:
  • General
  • iOS
  • Android
  • JavaScript
  • Internal (for changes that do not need to be called out in the release notes)

TYPE may be:

  • Added, for new features.
  • Changed, for changes in existing functionality.
  • Deprecated, for soon-to-be removed features.
  • Removed, for now removed features.
  • Fixed, for any bug fixes.
  • Security, in case of vulnerabilities.

MESSAGE may answer "what and why" on a feature level. Use this to briefly tell React Native users about notable changes.

📖 📋 Missing Test Plan - Can you add a Test Plan? To do so, add a "## Test Plan" section to your PR description. A Test Plan lets us know how these changes were tested.
📖 📋 Missing Summary - Can you add a Summary? To do so, add a "## Summary" section to your PR description. This is a good place to explain the motivation for making this change.

Generated by 🚫 dangerJS against 35cd11f

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 36b0f7d

Summary:
Pull Request resolved: facebook#30259

Before side-by-side NDK is supported by the Circle CI image, pending facebook#29050 & facebook#29987, this local.properties file forces Gradle to use the specified SDK/NDK path. We do this internally at FB CI as well.

This addresses the following failure:
https://app.circleci.com/pipelines/github/facebook/react-native/6851/workflows/9fd91d5d-3f05-4521-93fc-95abd5c84227/jobs/173735

Also, this fixed bad src copy for Buck-building: `//packages/react-native-codegen:setup_cli`

Changelog: [Internal]

Reviewed By: hramos

Differential Revision: D24577333

fbshipit-source-id: 93f11c3e3a3f699415739d0760ee10909eb748ed
@facebook-github-bot
Copy link
Contributor

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

fkgozali referenced this pull request Oct 27, 2020
Summary:
The recursive copy statement fixed here behaved differently in MacOS vs Linus (CI), because of the missing dot (.)

The trailing slash on the source directory behaves differently on Mac (BSD) than Linux (GNU):

> If the source_file ends in a /, the contents of the directory are copied rather than the directory itself.

This should fix the CI failure: https://app.circleci.com/pipelines/github/facebook/react-native/6847/workflows/36d59aab-bc4a-4d21-9ce1-a8348e71aea3/jobs/173681

Changelog: [Internal]

Reviewed By: RSNara

Differential Revision: D24560543

fbshipit-source-id: c3ab2c28616b717891bcf5d2ad762340cfb97e3d
@fkgozali
Copy link
Contributor Author

The NDK error went away, then the remaining failure is pending Node v12 upgrade: https://app.circleci.com/pipelines/github/facebook/react-native/6869/workflows/f694be41-d915-4af1-8e82-5e4ae437ef29/jobs/173977

fkgozali referenced this pull request Oct 27, 2020
Summary:
This does a few things:
* Remove USE_CODEGEN flag so that TurboModule is enabled by default for RNTester
* Use the codegen output for Java/JNI spec files
* Remove the checked in com.facebook.fbreact.specs Java/JNI files

Changelog: [Changed][Android] RNTester now enables TurboModule by default using codegen.

Reviewed By: RSNara

Differential Revision: D24382083

fbshipit-source-id: 87e3e0581bac3287ef01c1a0deb070c1d7d40f2d
@fkgozali
Copy link
Contributor Author

Repurposing this PR to fix Buck failure. NDK and Node 12 issues will be fixed by #30252

@fkgozali fkgozali changed the title Android CI: set up NDK via local.properties Android CI: Fix up //packages/react-native-codegen:setup_cli src copy issue Oct 27, 2020
@fkgozali
Copy link
Contributor Author

This landed separately: 3a41125

@fkgozali fkgozali closed this Oct 28, 2020
@fkgozali fkgozali deleted the export-D24577333 branch October 28, 2020 02:34
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 p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants