Skip to content

Conversation

HeyImChris
Copy link

@HeyImChris HeyImChris commented Nov 4, 2019

…t Native

Please select one of the following

  • I am removing an existing difference between facebook/react-native and microsoft/react-native 👍
  • I am cherry-picking a change from Facebook's react-native into microsoft/react-native 👍
  • I am making a fix / change for the macOS implementation of react-native
  • [X ] I am making a change required for Microsoft usage of react-native

React Native has limited tooling running as it executes tests. We should perform more rigorous memory management checks given the memory issues we've seen in the past with RN. While we're at it, let's add a test plan for code concurrency. RN has a lot of multithreadedness that should have race conditions and execution various orders verified.

  1. Run all tests with main thread checker on to get us a baseline. This is what we already have on all the time.
  2. Run all tests with ASan and Zombie objects on
  3. Run all tests with a random execution order

We should enable TSan as well, but right now so many tests crash with TSan on, it makes more sense to leave it off for now and then go through the tests one at a time and get them working with TSan before turning it on permanently.

Focus areas to test

Only impacts our tests.

Microsoft Reviewers: Open in CodeFlow

@HeyImChris HeyImChris self-assigned this Nov 4, 2019
@HeyImChris HeyImChris requested a review from tom-un November 4, 2019 21:31
@vmoroz
Copy link
Member

vmoroz commented Nov 5, 2019

Do we plan to submit this change to the FB repo?

@HeyImChris HeyImChris closed this Nov 5, 2019
@HeyImChris HeyImChris reopened this Nov 5, 2019
Comment on lines 63 to 66
"RNTesterIntegrationTests\/testAccessibilityManagerTest",
"RNTesterIntegrationTests\/testAppEventsTest",
"RNTesterIntegrationTests\/testSyncMethodTest",
"RNTesterIntegrationTests\/testWebSocketTest"

Choose a reason for hiding this comment

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

Do you have a sense of the problem? Maybe it's easy to just fix?

Choose a reason for hiding this comment

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

I'm missing from the diff/commit notes, but what exactly did we change so these could be re-enabled?

Copy link
Author

Choose a reason for hiding this comment

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

Pushed them up while they were still failing. Tom pushed a header fix today that stopped the inconsistent failures

@HeyImChris
Copy link
Author

Do we plan to submit this change to the FB repo?

Eventually it'd be great to. Short term we're still aiming to just get the proper testing infrastructure up and running, but when we finally merge our branch back into FB's, this should go too.

Tom Underhill added 2 commits November 7, 2019 10:17
…ministic errors can occur in the header maps of RCTText. Fix by forward declaring @protocols in headers, and #import the necessary headers in the .m files that need them.
… RunLoop has executed a block during shutdown, which results in this->m_shutdown being deferenced to deallocated memory. Capture a shared_ptr to this instead of a raw `this` in the lambdas.
@tom-un tom-un merged commit ea7767a into master Nov 7, 2019
@acoates-ms acoates-ms deleted the chrishog/tests branch April 22, 2020 17:48
lenaic pushed a commit to lenaic/react-native-macos that referenced this pull request Jul 4, 2025
Summary:
Changelog: [Internal] - Update `react-native/debugger-frontend` from 35c4630...51a91a2

Resyncs `react-native/debugger-frontend` from GitHub - see `rn-chrome-devtools-frontend` [changelog](facebook/react-native-devtools-frontend@35c4630...51a91a2).

### Changelog

| Commit | Author | Date/Time | Subject |
| ------ | ------ | --------- | ------- |
| [51a91a2ad](facebook/react-native-devtools-frontend@51a91a2ad) | Ruslan Lesiutin (28902667+hoxyq@users.noreply.github.com) | 2025-07-04T14:04:02+01:00 | [bump: react-devtools@6.1.4 (microsoft#189)](facebook/react-native-devtools-frontend@51a91a2ad) |
| [761b96907](facebook/react-native-devtools-frontend@761b96907) | Vitali Zaidman (vzaidman@gmail.com) | 2025-07-04T12:55:39+01:00 | [fixed missing new line before string error causes (microsoft#186)](facebook/react-native-devtools-frontend@761b96907) |
| [7774c38db](facebook/react-native-devtools-frontend@7774c38db) | Alex Hunt (hello@alexhunt.dev) | 2025-06-30T13:20:49+01:00 | [Disable request initiator panel in NetworkItemView (microsoft#185)](facebook/react-native-devtools-frontend@7774c38db) |

Reviewed By: huntie

Differential Revision: D77795834

fbshipit-source-id: 3c30f8e87593687415538902734b09b3144b70a4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants