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

yarn test: Default to bleeding edge configuration #21238

Merged
merged 1 commit into from
Apr 12, 2021

Conversation

acdlite
Copy link
Collaborator

@acdlite acdlite commented Apr 11, 2021

My personal workflow is to develop against the www-modern release channel, with the variant flags enabled, because it encompasses the largest set of features. Then I rely on CI to run the tests against all the other configurations.

So in practice, I almost always run

yarn test -r=www-modern --variant TEST_FILE

instead of

yarn test TEST_FILE

So, I've updated the yarn test command to use those options by default.

Test plan

I logged gate(flags => flags) in a test file, ran it against different test commands, and inspected the output.

My personal workflow is to develop against the www-modern release
channel, with the variant flags enabled, because it encompasses the
largest set of features. Then I rely on CI to run the tests against
all the other configurations.

So in practice, I almost always run

```
yarn test -r=www-modern --variant TEST_FILE
```

instead of

```
yarn test TEST_FILE
```

So, I've updated the `yarn test` command to use those options
by default.
@acdlite acdlite requested a review from rickhanlonii April 11, 2021 19:55
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Apr 11, 2021
@sizebot
Copy link

sizebot commented Apr 11, 2021

Comparing: bb88ce9...4ba2f58

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 = 122.68 kB 122.68 kB = 39.38 kB 39.38 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 129.25 kB 129.25 kB = 41.46 kB 41.46 kB
facebook-www/ReactDOM-prod.classic.js = 412.18 kB 412.18 kB = 76.23 kB 76.23 kB
facebook-www/ReactDOM-prod.modern.js = 400.23 kB 400.23 kB = 74.32 kB 74.32 kB
facebook-www/ReactDOMForked-prod.classic.js = 412.18 kB 412.18 kB = 76.23 kB 76.23 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 4ba2f58

@bvaughn
Copy link
Contributor

bvaughn commented Apr 12, 2021

Seems worth pinging the rest of the team (during stand-up) to see what their workflows are?

I'm not opposed to this though. Because of how our new-to-old fork scripts work, this is often how I develop too.

@acdlite
Copy link
Collaborator Author

acdlite commented Apr 12, 2021

Yeah I wouldn't merge before asking y'all

Copy link
Contributor

@bvaughn bvaughn left a comment

Choose a reason for hiding this comment

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

No objection to this change personally

@acdlite acdlite merged commit dd8552a into facebook:master Apr 12, 2021
koto pushed a commit to koto/react that referenced this pull request Jun 15, 2021
My personal workflow is to develop against the www-modern release
channel, with the variant flags enabled, because it encompasses the
largest set of features. Then I rely on CI to run the tests against
all the other configurations.

So in practice, I almost always run

```
yarn test -r=www-modern --variant TEST_FILE
```

instead of

```
yarn test TEST_FILE
```

So, I've updated the `yarn test` command to use those options
by default.
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