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

[ci] combine compiler test runs into single CI job #30650

Closed
wants to merge 1 commit into from

Conversation

kassens
Copy link
Member

@kassens kassens commented Aug 9, 2024

yarn workspaces run test runs tests on all workspace members. All except the babel plugin tests are super cheap and mostly overhead. With the removed first job, total wall time might even be lower.

Copy link

vercel bot commented Aug 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 9, 2024 5:24pm

@react-sizebot
Copy link

react-sizebot commented Aug 9, 2024

Comparing: 0e6d8c3...7c84798

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.js = 6.68 kB 6.68 kB +0.05% 1.82 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 500.37 kB 500.37 kB = 89.80 kB 89.80 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB +0.05% 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 507.50 kB 507.50 kB = 90.96 kB 90.96 kB
facebook-www/ReactDOM-prod.classic.js = 595.24 kB 595.24 kB = 105.55 kB 105.55 kB
facebook-www/ReactDOM-prod.modern.js = 571.54 kB 571.54 kB = 101.75 kB 101.75 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against c2226f4

@kassens kassens requested a review from poteto August 9, 2024 17:00
`yarn workspaces run test` runs tests on all workspace members. All except the babel plugin tests are super cheap and mostly overhead. With the removed first job, total wall time might even be lower.
@kassens
Copy link
Member Author

kassens commented Aug 9, 2024

Oh, this would run tests for the playground which require playwright and so take longer. Never mind.

@kassens kassens closed this Aug 9, 2024
@kassens kassens deleted the pr30650 branch August 9, 2024 17:30
Copy link
Member

@poteto poteto left a comment

Choose a reason for hiding this comment

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

no strong opinions, if this turns out to be faster lets ship it! see my comment though about the playground tests, we need to filter that out somehow. it is actually the long pole for the compiler CI test runs because building the compiler and running it on the playground takes quite a while

@@ -89,4 +72,4 @@ jobs:
path: "**/node_modules"
key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('compiler/**/yarn.lock') }}
- run: yarn install --frozen-lockfile
- run: yarn workspace ${{ matrix.workspace_name }} test
- run: yarn workspaces run test
Copy link
Member

Choose a reason for hiding this comment

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

something annoying about yarn workspaces is that this will run the test command on every package including the playground which is why I originally added that one liner to only find packages in that packages directory

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