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

[FB] use modern entrypoint in tests #28724

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

gnoff
Copy link
Collaborator

@gnoff gnoff commented Apr 3, 2024

Removes the entrypoint hack in tests since we gate legacy mode tests now

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Apr 3, 2024
@gnoff gnoff force-pushed the www-modern-disable-legacy branch from 62f8e34 to d16d5ca Compare April 3, 2024 02:03
@@ -430,6 +431,7 @@ describe('ReactScope', () => {
});

// @gate www
// @gate !disableLegacyMode
Copy link
Collaborator

Choose a reason for hiding this comment

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

Need to rebase since I updated these to concurrent mode.

@gnoff gnoff requested review from sebmarkbage and eps1lon April 3, 2024 02:06
@react-sizebot
Copy link

react-sizebot commented Apr 3, 2024

Comparing: 8f55a6a...bf5292b

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 173.32 kB 173.32 kB = 53.93 kB 53.92 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 170.94 kB 170.94 kB = 53.25 kB 53.25 kB
facebook-www/ReactDOM-prod.classic.js = 588.57 kB 588.57 kB = 103.51 kB 103.51 kB
facebook-www/ReactDOM-prod.modern.js = 566.68 kB 566.68 kB = 99.52 kB 99.52 kB
test_utils/ReactAllWarnings.js Deleted 64.58 kB 0.00 kB Deleted 16.14 kB 0.00 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
facebook-www/React-prod.modern.js +0.60% 20.88 kB 21.01 kB +0.58% 5.21 kB 5.24 kB
facebook-react-native/react/cjs/React-profiling.js +0.60% 20.96 kB 21.09 kB +0.56% 5.22 kB 5.25 kB
facebook-www/React-profiling.modern.js +0.59% 21.32 kB 21.44 kB +0.55% 5.29 kB 5.32 kB
test_utils/ReactAllWarnings.js Deleted 64.58 kB 0.00 kB Deleted 16.14 kB 0.00 kB

Generated by 🚫 dangerJS against bf5292b

@gnoff gnoff force-pushed the www-modern-disable-legacy branch from d16d5ca to fb33355 Compare April 3, 2024 02:10
@gnoff gnoff changed the title [FB] disable legacy mode in modern build [FB] use modern entrypoint in tests Apr 3, 2024
@gnoff gnoff force-pushed the www-modern-disable-legacy branch 3 times, most recently from f40827b to f891aa9 Compare April 3, 2024 05:07
@@ -48,10 +49,10 @@ export {
useLayoutEffect,
useMemo,
useOptimistic,
useSyncExternalStore,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

cleaning up the order to match react/index

@@ -33,6 +33,7 @@ export {
unstable_Activity,
unstable_Scope,
unstable_SuspenseList,
unstable_TracingMarker,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this was missing from the modern entrypoint but is necessary for tracing tests to pass. Curious though that it doesn't fail. probably because it's a symbol and it imports in cjs as undefined

@gnoff gnoff force-pushed the www-modern-disable-legacy branch from f891aa9 to 8aebb2f Compare April 3, 2024 05:14
Disables legacy mode in www-modern and removes the entrypoint hack in tests since we gate legacy mode tests now

Additionally disables test utils because this relies on legacy mode.

Additionally gates react-test-renderer test for unstable_Scope because it seems to also rely on legacy roots.
@gnoff gnoff force-pushed the www-modern-disable-legacy branch from 8aebb2f to bf5292b Compare April 3, 2024 05:16
@gnoff gnoff merged commit cb6dc7a into facebook:main Apr 3, 2024
38 checks passed
@gnoff gnoff deleted the www-modern-disable-legacy branch April 3, 2024 05:24
github-actions bot pushed a commit that referenced this pull request Apr 3, 2024
Removes the entrypoint hack in tests since we gate legacy mode tests now

DiffTrain build for [cb6dc7a](cb6dc7a)
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
Removes the entrypoint hack in tests since we gate legacy mode tests now
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
Removes the entrypoint hack in tests since we gate legacy mode tests now

DiffTrain build for commit cb6dc7a.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants