Skip to content

Conversation

@acdlite
Copy link
Collaborator

@acdlite acdlite commented Mar 12, 2020

We're planning to land some significant refactors of the reconciler. We want to be able to gradually roll out the new implementation side-by-side with the existing one. So we'll create a short-lived fork of the react-reconciler package. Once the new implementation has stabilized, we'll delete the old implementation and promote the new one.

This means, for as long as the fork exists, we'll need to maintain two separate implementations. This sounds painful, but since the forks will still be largely the same, most changes will not require two separate implementations. In practice, you'll implement the change in the old fork and then copy paste it to the new one.

This commit only sets up the build and testing infrastructure. It does not actually fork any modules. I'll do that in subsequent PRs.

The forked version of the reconciler will be used to build a special version of React DOM. I've called this build ReactDOMForked. It's only built for www; there's no open source version.

The new reconciler is disabled by default. It's enabled in the yarn test-www-variant command. The reconciler fork isn't really related to the "variant" feature of the www builds, but I'm piggy backing on that concept to avoid having to add yet another testing dimension.


First commit is a file rename. Second commit includes the changes to infra.

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Mar 12, 2020
@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 12, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 95e54ae:

Sandbox Source
icy-fog-jpnyn Configuration

@sizebot
Copy link

sizebot commented Mar 12, 2020

Details of bundled changes.

Comparing: 8b155d2...95e54ae

react-dom

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-dom-test-utils.production.min.js 0.0% 0.0% 10.85 KB 10.85 KB 4.1 KB 4.1 KB NODE_PROD
react-dom-unstable-native-dependencies.development.js 0.0% -0.0% 58.97 KB 58.97 KB 14.71 KB 14.71 KB UMD_DEV
react-dom-unstable-fizz.browser.production.min.js 0.0% -0.2% 1013 B 1013 B 603 B 602 B NODE_PROD
react-dom-unstable-native-dependencies.production.min.js 0.0% -0.1% 10.31 KB 10.31 KB 3.49 KB 3.49 KB UMD_PROD
ReactDOMForked-dev.js n/a n/a 0 B 981.94 KB 0 B 218.25 KB FB_WWW_DEV
ReactDOMForked-prod.js n/a n/a 0 B 410.57 KB 0 B 74.68 KB FB_WWW_PROD
react-dom-unstable-fizz.node.development.js 0.0% -0.1% 3.68 KB 3.68 KB 1.33 KB 1.33 KB NODE_DEV
react-dom.development.js 0.0% -0.0% 903.66 KB 903.66 KB 198.95 KB 198.95 KB UMD_DEV
ReactDOMForked-profiling.js n/a n/a 0 B 428.22 KB 0 B 77.79 KB FB_WWW_PROFILING
react-dom-server.browser.development.js 0.0% -0.0% 135.83 KB 135.83 KB 34.97 KB 34.97 KB UMD_DEV
react-dom-unstable-fizz.node.production.min.js 0.0% -0.2% 1.15 KB 1.15 KB 654 B 653 B NODE_PROD
react-dom.production.min.js 0.0% -0.0% 118.67 KB 118.67 KB 38.09 KB 38.09 KB UMD_PROD
react-dom-server.browser.production.min.js 0.0% -0.0% 20.16 KB 20.16 KB 7.46 KB 7.46 KB UMD_PROD
react-dom.profiling.min.js 0.0% -0.0% 122.38 KB 122.38 KB 39.29 KB 39.29 KB UMD_PROFILING
ReactDOMTesting-dev.js 0.0% -0.0% 919.25 KB 919.25 KB 205.13 KB 205.13 KB FB_WWW_DEV
react-dom.development.js 0.0% -0.0% 860.02 KB 860.02 KB 196.45 KB 196.44 KB NODE_DEV
react-dom-server.browser.development.js 0.0% -0.0% 128.87 KB 128.87 KB 34.52 KB 34.52 KB NODE_DEV
react-dom.production.min.js 0.0% -0.0% 118.75 KB 118.75 KB 37.31 KB 37.3 KB NODE_PROD
react-dom-test-utils.development.js 0.0% -0.0% 53.84 KB 53.84 KB 14.01 KB 14.01 KB UMD_DEV
react-dom-server.browser.production.min.js 0.0% -0.0% 20.07 KB 20.07 KB 7.42 KB 7.42 KB NODE_PROD
react-dom-unstable-fizz.browser.development.js 0.0% -0.2% 3.34 KB 3.34 KB 1.26 KB 1.26 KB UMD_DEV
react-dom.profiling.min.js 0.0% -0.0% 122.61 KB 122.61 KB 38.51 KB 38.5 KB NODE_PROFILING
react-dom-unstable-fizz.browser.production.min.js 0.0% -0.1% 1.17 KB 1.17 KB 691 B 690 B UMD_PROD
ReactDOM-dev.js 0.0% -0.0% 981.94 KB 981.94 KB 218.25 KB 218.25 KB FB_WWW_DEV
ReactDOMServer-dev.js 0.0% -0.0% 139.01 KB 139.01 KB 35.48 KB 35.48 KB FB_WWW_DEV
react-dom-test-utils.development.js 0.0% -0.0% 49.61 KB 49.61 KB 13.52 KB 13.52 KB NODE_DEV
react-dom-unstable-fizz.browser.development.js 0.0% -0.2% 2.94 KB 2.94 KB 1.17 KB 1.17 KB NODE_DEV
react-dom-unstable-native-dependencies.development.js 0.0% -0.0% 55.92 KB 55.92 KB 14.48 KB 14.47 KB NODE_DEV
react-dom-unstable-native-dependencies.production.min.js 0.0% -0.0% 10.04 KB 10.04 KB 3.37 KB 3.37 KB NODE_PROD
react-dom-server.node.development.js 0.0% -0.0% 130.09 KB 130.09 KB 34.77 KB 34.77 KB NODE_DEV
react-dom-server.node.production.min.js 0.0% -0.0% 20.48 KB 20.48 KB 7.57 KB 7.57 KB NODE_PROD

ReactDOM: size: 0.0%, gzip: -0.1%

Size changes (stable)

Generated by 🚫 dangerJS against 95e54ae

@sizebot
Copy link

sizebot commented Mar 12, 2020

Details of bundled changes.

Comparing: 8b155d2...95e54ae

react-dom

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-dom.profiling.min.js 0.0% -0.0% 127 KB 127 KB 39.69 KB 39.68 KB NODE_PROFILING
react-dom-unstable-fizz.browser.development.js 0.0% -0.2% 3.35 KB 3.35 KB 1.27 KB 1.27 KB UMD_DEV
ReactDOM-dev.js 0.0% -0.0% 936.02 KB 936.02 KB 208.39 KB 208.39 KB FB_WWW_DEV
react-dom-unstable-fizz.browser.production.min.js 0.0% -0.3% 1.19 KB 1.19 KB 700 B 698 B UMD_PROD
react-dom-server.browser.development.js 0.0% -0.0% 137.42 KB 137.42 KB 35.17 KB 35.17 KB UMD_DEV
react-dom-server.browser.development.js 0.0% -0.0% 130.38 KB 130.38 KB 34.74 KB 34.74 KB NODE_DEV
react-dom-server.browser.production.min.js 0.0% -0.0% 20.53 KB 20.53 KB 7.5 KB 7.5 KB NODE_PROD
react-dom.development.js 0.0% -0.0% 934.14 KB 934.14 KB 204.24 KB 204.24 KB UMD_DEV
react-dom-unstable-native-dependencies.development.js 0.0% -0.0% 58.98 KB 58.98 KB 14.72 KB 14.71 KB UMD_DEV
react-dom.production.min.js 0.0% -0.0% 122.87 KB 122.87 KB 39.23 KB 39.23 KB UMD_PROD
ReactDOMForked-dev.js n/a n/a 0 B 936.02 KB 0 B 208.39 KB FB_WWW_DEV
react-dom-unstable-native-dependencies.production.min.js 0.0% -0.0% 10.32 KB 10.32 KB 3.5 KB 3.5 KB UMD_PROD
ReactDOMServer-dev.js 0.0% -0.0% 138.16 KB 138.16 KB 35.34 KB 35.34 KB FB_WWW_DEV
react-dom.profiling.min.js 0.0% -0.0% 126.7 KB 126.7 KB 40.49 KB 40.49 KB UMD_PROFILING
ReactDOMForked-prod.js n/a n/a 0 B 383.96 KB 0 B 69.9 KB FB_WWW_PROD
ReactDOMServer-prod.js 0.0% -0.0% 47.01 KB 47.01 KB 10.93 KB 10.93 KB FB_WWW_PROD
react-dom.development.js 0.0% -0.0% 889.23 KB 889.23 KB 201.69 KB 201.69 KB NODE_DEV
ReactDOMForked-profiling.js n/a n/a 0 B 401.55 KB 0 B 72.92 KB FB_WWW_PROFILING
react-dom-unstable-native-dependencies.development.js 0.0% -0.0% 55.94 KB 55.94 KB 14.48 KB 14.48 KB NODE_DEV
react-dom-unstable-fizz.node.development.js 0.0% -0.2% 3.69 KB 3.69 KB 1.34 KB 1.34 KB NODE_DEV
react-dom.production.min.js 0.0% -0.0% 123.02 KB 123.02 KB 38.43 KB 38.42 KB NODE_PROD
react-dom-unstable-native-dependencies.production.min.js 0.0% -0.0% 10.05 KB 10.05 KB 3.38 KB 3.38 KB NODE_PROD
react-dom-unstable-fizz.node.production.min.js 0.0% -0.2% 1.16 KB 1.16 KB 663 B 662 B NODE_PROD
ReactDOM-prod.js 0.0% -0.0% 383.96 KB 383.96 KB 69.9 KB 69.9 KB FB_WWW_PROD
ReactDOM-profiling.js 0.0% -0.0% 401.55 KB 401.55 KB 72.92 KB 72.92 KB FB_WWW_PROFILING
react-dom-unstable-fizz.browser.development.js 0.0% -0.2% 2.95 KB 2.95 KB 1.18 KB 1.18 KB NODE_DEV
react-dom-unstable-fizz.browser.production.min.js 0.0% -0.2% 1 KB 1 KB 611 B 610 B NODE_PROD
react-dom-test-utils.development.js 0.0% -0.0% 53.85 KB 53.85 KB 14.02 KB 14.02 KB UMD_DEV
ReactDOMTesting-dev.js 0.0% -0.0% 892.61 KB 892.61 KB 199.71 KB 199.71 KB FB_WWW_DEV
ReactDOMTesting-prod.js 0.0% -0.0% 378.01 KB 378.01 KB 69.19 KB 69.19 KB FB_WWW_PROD
react-dom-test-utils.development.js 0.0% -0.0% 49.63 KB 49.63 KB 13.53 KB 13.53 KB NODE_DEV
ReactDOMTesting-profiling.js 0.0% -0.0% 378.01 KB 378.01 KB 69.19 KB 69.19 KB FB_WWW_PROFILING
react-dom-server.node.development.js 0.0% -0.0% 131.6 KB 131.6 KB 34.99 KB 34.99 KB NODE_DEV
react-dom-server.node.production.min.js 0.0% -0.0% 20.94 KB 20.94 KB 7.65 KB 7.65 KB NODE_PROD

ReactDOM: size: 0.0%, gzip: -0.3%

Size changes (experimental)

Generated by 🚫 dangerJS against 95e54ae

@acdlite acdlite force-pushed the fork-reconciler branch 3 times, most recently from 79fc2e8 to 7eb3910 Compare March 12, 2020 01:04
acdlite added 2 commits March 11, 2020 18:09
We're planning to land some significant refactors of the reconciler.
We want to be able to gradually roll out the new implementation side-by-
side with the existing one. So we'll create a short lived fork of the
react-reconciler package. Once the new implementation has stabilized,
we'll delete the old implementation and promote the new one.

This means, for as long as the fork exists, we'll need to maintain two
separate implementations. This sounds painful, but since the forks will
still be largely the same, most changes will not require two separate
implementations. In practice, you'll implement the change in the old
fork and then copy paste it to the new one.

This commit only sets up the build and testing infrastructure. It does
not actually fork any modules. I'll do that in subsequent PRs.

The forked version of the reconciler will be used to build a special
version of React DOM. I've called this build ReactDOMForked. It's only
built for www; there's no open source version.

The new reconciler is disabled by default. It's enabled in the
`yarn test-www-variant` command. The reconciler fork isn't really
related to the "variant" feature of the www builds, but I'm piggy
backing on that concept to avoid having to add yet another
testing dimension.
@acdlite acdlite closed this Mar 12, 2020
@acdlite
Copy link
Collaborator Author

acdlite commented Mar 12, 2020

Github wat

@acdlite
Copy link
Collaborator Author

acdlite commented Mar 12, 2020

Must a be a weird bug. PR definitely wasn't merged :D

@acdlite acdlite reopened this Mar 12, 2020
@acdlite acdlite marked this pull request as ready for review March 12, 2020 01:38
Copy link
Contributor

@trueadm trueadm left a comment

Choose a reason for hiding this comment

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

The build stuff looks okay to me.

@acdlite acdlite merged commit cd48a06 into facebook:master Mar 12, 2020
trueadm pushed a commit to trueadm/react that referenced this pull request Mar 12, 2020
* ReactFiberReconciler -> ReactFiberReconciler.old

* Set up infra for react-reconciler fork

We're planning to land some significant refactors of the reconciler.
We want to be able to gradually roll out the new implementation side-by-
side with the existing one. So we'll create a short lived fork of the
react-reconciler package. Once the new implementation has stabilized,
we'll delete the old implementation and promote the new one.

This means, for as long as the fork exists, we'll need to maintain two
separate implementations. This sounds painful, but since the forks will
still be largely the same, most changes will not require two separate
implementations. In practice, you'll implement the change in the old
fork and then copy paste it to the new one.

This commit only sets up the build and testing infrastructure. It does
not actually fork any modules. I'll do that in subsequent PRs.

The forked version of the reconciler will be used to build a special
version of React DOM. I've called this build ReactDOMForked. It's only
built for www; there's no open source version.

The new reconciler is disabled by default. It's enabled in the
`yarn test-www-variant` command. The reconciler fork isn't really
related to the "variant" feature of the www builds, but I'm piggy
backing on that concept to avoid having to add yet another
testing dimension.
trueadm pushed a commit to trueadm/react that referenced this pull request Mar 12, 2020
* ReactFiberReconciler -> ReactFiberReconciler.old

* Set up infra for react-reconciler fork

We're planning to land some significant refactors of the reconciler.
We want to be able to gradually roll out the new implementation side-by-
side with the existing one. So we'll create a short lived fork of the
react-reconciler package. Once the new implementation has stabilized,
we'll delete the old implementation and promote the new one.

This means, for as long as the fork exists, we'll need to maintain two
separate implementations. This sounds painful, but since the forks will
still be largely the same, most changes will not require two separate
implementations. In practice, you'll implement the change in the old
fork and then copy paste it to the new one.

This commit only sets up the build and testing infrastructure. It does
not actually fork any modules. I'll do that in subsequent PRs.

The forked version of the reconciler will be used to build a special
version of React DOM. I've called this build ReactDOMForked. It's only
built for www; there's no open source version.

The new reconciler is disabled by default. It's enabled in the
`yarn test-www-variant` command. The reconciler fork isn't really
related to the "variant" feature of the www builds, but I'm piggy
backing on that concept to avoid having to add yet another
testing dimension.
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.

5 participants