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

[Tests][Fizz] Test script runtime even when external runtime is available #28794

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

gnoff
Copy link
Collaborator

@gnoff gnoff commented Apr 9, 2024

Previously if the external runtime was enabled Fizz tests would use it exclusively. However now that this flag is enabled for OSS and Meta builds this means we were no longer testing the inline script runtime. This changes the test flags to produce some runs where we test the inline script runtime and others where we test the external runtime

the external runtime will be tested if the flag is enabled and

  • Meta Builds: variant is true
  • OSS Builds: experiemental is true

this gives us decent coverage. long term we should probably bring variant to OSS builds since we will eventually want to test both modes even when the external runtime is stable.

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Apr 9, 2024
@gnoff gnoff requested review from sebmarkbage and mofeiZ April 9, 2024 17:09
@react-sizebot
Copy link

react-sizebot commented Apr 9, 2024

Comparing: 7f93cb4...2269a71

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 = 168.09 kB 168.09 kB = 52.71 kB 52.71 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 169.90 kB 169.90 kB = 53.25 kB 53.25 kB
facebook-www/ReactDOM-prod.classic.js = 589.45 kB 589.45 kB = 103.79 kB 103.79 kB
facebook-www/ReactDOM-prod.modern.js = 565.29 kB 565.29 kB = 99.92 kB 99.92 kB
test_utils/ReactAllWarnings.js Deleted 64.02 kB 0.00 kB Deleted 15.94 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
test_utils/ReactAllWarnings.js Deleted 64.02 kB 0.00 kB Deleted 15.94 kB 0.00 kB

Generated by 🚫 dangerJS against 2269a71

@gnoff gnoff changed the title [Float][Fizz] Test float with script and external runtimes separately [Float][Fizz] Test script runtime even when external runtime is available Apr 9, 2024
@gnoff gnoff changed the title [Float][Fizz] Test script runtime even when external runtime is available [Tests][Fizz] Test script runtime even when external runtime is available Apr 9, 2024
…runtime is unstable and should not be part of stable builds and we should still be testing the integrated Fizz runtime. This change forks the Float tests to ensure we test with and without the external Fizz runtime
@gnoff gnoff merged commit 67ff96e into facebook:main Apr 9, 2024
38 checks passed
@gnoff gnoff deleted the fork-float-tests branch April 9, 2024 18:50
rickhanlonii pushed a commit that referenced this pull request Apr 11, 2024
…able (#28794)

Previously if the external runtime was enabled Fizz tests would use it
exclusively. However now that this flag is enabled for OSS and Meta
builds this means we were no longer testing the inline script runtime.
This changes the test flags to produce some runs where we test the
inline script runtime and others where we test the external runtime

the external runtime will be tested if the flag is enabled and
* Meta Builds: variant is true
* OSS Builds: experiemental is true

this gives us decent coverage. long term we should probably bring
variant to OSS builds since we will eventually want to test both modes
even when the external runtime is stable.
rickhanlonii pushed a commit that referenced this pull request Apr 11, 2024
…able (#28794)

Previously if the external runtime was enabled Fizz tests would use it
exclusively. However now that this flag is enabled for OSS and Meta
builds this means we were no longer testing the inline script runtime.
This changes the test flags to produce some runs where we test the
inline script runtime and others where we test the external runtime

the external runtime will be tested if the flag is enabled and
* Meta Builds: variant is true
* OSS Builds: experiemental is true

this gives us decent coverage. long term we should probably bring
variant to OSS builds since we will eventually want to test both modes
even when the external runtime is stable.
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
…able (facebook#28794)

Previously if the external runtime was enabled Fizz tests would use it
exclusively. However now that this flag is enabled for OSS and Meta
builds this means we were no longer testing the inline script runtime.
This changes the test flags to produce some runs where we test the
inline script runtime and others where we test the external runtime

the external runtime will be tested if the flag is enabled and
* Meta Builds: variant is true
* OSS Builds: experiemental is true

this gives us decent coverage. long term we should probably bring
variant to OSS builds since we will eventually want to test both modes
even when the external runtime is stable.
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.

None yet

4 participants