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

Enable enableCache feature flag in native-fb #24104

Closed
wants to merge 11 commits into from

Conversation

davidmccabe
Copy link
Contributor

Enables in xplat.

@acdlite
Copy link
Collaborator

acdlite commented Mar 15, 2022

This code path hasn't been tested in www yet so there may be bugs. I would suggest using a dynamic flag (see ReactNativeInternalFeatureFlags) so you can disable it if needed

@davidmccabe
Copy link
Contributor Author

@acdlite The purpose of turning this on is to influence the compiled artifact JSXDEVRuntime-dev.js in xplat; would a dynamic flag do that, given the value isn't known at compile-time?

@davidmccabe
Copy link
Contributor Author

Also, the Circle CI error appears to be spurious/transient, but the option to re-run it is disabled for me.

davidmccabe and others added 2 commits March 15, 2022 18:46
* Add authorization header to artifacts request

CircleCI's artifacts API was updated; it now errors unless you're
logged in. This affects any of our workflows that download
build artifacts.

To fix, I added an authorization header to the request.

* Update sizbot to pull artifacts from public mirror

We can't use the normal download-build script in sizebot because it
depends on the CircleCI artifacts API, which was recently changed to
require authorization. And we can't pass an authorization token
without possibly leaking it to the public, since we run sizebot on
PRs from external contributors. As a temporary workaround, this job
will pull the artifacts from a public mirror that I set up. But we
should find some other solution so we don't have to maintain
the mirror.
@acdlite
Copy link
Collaborator

acdlite commented Mar 16, 2022

I fixed the get_base_build job in ba5dc6c, if you rebase it should work.

The Flow error is legit. Add enableCache to the Flow definition for ReactNativeInternalFeatureFlags:

declare module 'ReactNativeInternalFeatureFlags' {
declare export var enablePersistentOffscreenHostContainer: boolean;
}

@sizebot
Copy link

sizebot commented Mar 16, 2022

Comparing: b075f97...06f1bf8

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 = 130.96 kB 130.96 kB = 41.93 kB 41.93 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 136.02 kB 136.02 kB = 43.41 kB 43.41 kB
facebook-www/ReactDOM-prod.classic.js = 435.63 kB 435.63 kB = 79.79 kB 79.79 kB
facebook-www/ReactDOM-prod.modern.js = 422.05 kB 422.05 kB = 77.78 kB 77.78 kB
facebook-www/ReactDOMForked-prod.classic.js = 435.63 kB 435.63 kB = 79.80 kB 79.80 kB
react-native/implementations/ReactFabric-prod.fb.js +4.83% 290.67 kB 304.71 kB +4.53% 52.75 kB 55.13 kB
react-native/implementations/ReactNativeRenderer-prod.fb.js +4.79% 292.92 kB 306.96 kB +4.45% 53.22 kB 55.59 kB
react-native/implementations/ReactFabric-profiling.fb.js +4.36% 317.62 kB 331.47 kB +3.98% 57.03 kB 59.29 kB
react-native/implementations/ReactNativeRenderer-profiling.fb.js +4.34% 319.76 kB 333.66 kB +3.99% 57.37 kB 59.66 kB
facebook-react-native/react-is/cjs/ReactIs-prod.js +4.28% 4.70 kB 4.90 kB +7.07% 1.13 kB 1.21 kB
facebook-react-native/react-is/cjs/ReactIs-profiling.js +4.28% 4.70 kB 4.90 kB +7.07% 1.13 kB 1.21 kB
facebook-react-native/react-is/cjs/ReactIs-dev.js +3.90% 7.28 kB 7.56 kB +5.63% 1.95 kB 2.06 kB
react-native/implementations/ReactFabric-dev.fb.js +3.40% 780.19 kB 806.72 kB +3.15% 169.94 kB 175.30 kB
react-native/implementations/ReactNativeRenderer-dev.fb.js +3.37% 787.04 kB 813.56 kB +3.10% 171.31 kB 176.63 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
react-native/implementations/ReactFabric-prod.fb.js +4.83% 290.67 kB 304.71 kB +4.53% 52.75 kB 55.13 kB
react-native/implementations/ReactNativeRenderer-prod.fb.js +4.79% 292.92 kB 306.96 kB +4.45% 53.22 kB 55.59 kB
react-native/implementations/ReactFabric-profiling.fb.js +4.36% 317.62 kB 331.47 kB +3.98% 57.03 kB 59.29 kB
react-native/implementations/ReactNativeRenderer-profiling.fb.js +4.34% 319.76 kB 333.66 kB +3.99% 57.37 kB 59.66 kB
facebook-react-native/react-is/cjs/ReactIs-prod.js +4.28% 4.70 kB 4.90 kB +7.07% 1.13 kB 1.21 kB
facebook-react-native/react-is/cjs/ReactIs-profiling.js +4.28% 4.70 kB 4.90 kB +7.07% 1.13 kB 1.21 kB
facebook-react-native/react-is/cjs/ReactIs-dev.js +3.90% 7.28 kB 7.56 kB +5.63% 1.95 kB 2.06 kB
react-native/implementations/ReactFabric-dev.fb.js +3.40% 780.19 kB 806.72 kB +3.15% 169.94 kB 175.30 kB
react-native/implementations/ReactNativeRenderer-dev.fb.js +3.37% 787.04 kB 813.56 kB +3.10% 171.31 kB 176.63 kB
facebook-react-native/react/cjs/JSXDEVRuntime-dev.js +1.04% 35.55 kB 35.92 kB +1.20% 10.28 kB 10.41 kB
facebook-react-native/react/cjs/JSXRuntime-dev.js +1.02% 36.15 kB 36.52 kB +1.16% 10.46 kB 10.58 kB
facebook-react-native/react/cjs/React-dev.js +0.30% 104.89 kB 105.21 kB +0.46% 25.69 kB 25.81 kB

Generated by 🚫 dangerJS against 06f1bf8

@asemqaffaf
Copy link

LGTM

Copy link

This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.

@github-actions github-actions bot added the Resolution: Stale Automatically closed due to inactivity label Apr 10, 2024
Copy link

Closing this pull request after a prolonged period of inactivity. If this issue is still present in the latest release, please ask for this pull request to be reopened. Thank you!

@github-actions github-actions bot closed this Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Resolution: Stale Automatically closed due to inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants