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
Fix test_build_devtools CI job to run test-build-devtools #17631
Conversation
This fixes a problem that occurs after renaming a package.
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 6e60342:
|
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 9cea553:
|
This should fix the createRoot error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
@@ -278,7 +278,7 @@ jobs: | |||
- run: | |||
environment: | |||
RELEASE_CHANNEL: stable | |||
command: yarn test-build --maxWorkers=2 | |||
command: yarn test-build-devtools --maxWorkers=2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol whoops
? [pathToBabelPluginReplaceConsoleCalls] | ||
: []; | ||
const sourceOnlyPlugins = []; | ||
if (process.env.NODE_ENV === 'development' && !isInDevToolsPackages) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
@@ -542,7 +543,7 @@ describe('InspectedElementContext', () => { | |||
// eslint-disable-next-line no-undef | |||
big_int={BigInt(123)} | |||
data_view={dataView} | |||
date={new Date(123)} | |||
date={new Date(exampleDateISO)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦♂
OK this one should actually fix it. |
Hm...looks like this has been broken for a while (since the stable/experimental stuff was split out) and we just haven't noticed? I think to build a version of React that DevTools can consume now we would need to run:
(Or just download the latest experimental CI artifact, which might be better.) |
Do you mean we need to change the CI command to do this too? |
Since DevTools and its tests depend on the I think to do this, we'd need to make |
On CI, we already have |
This is what I did in 2049b94. |
Ohh I see what you're saying. That this wouldn't be sufficient. |
Yeah, I think to get tests passing we need to use the experimental build command. Then I'll I'll follow up on the rest of this (the actual build/release process) as part of #17629 |
Thanks Dan! <3 |
My "pleasure"! |
We're testing the wrong thing in this job. Probably bad copy paste.
As a result, regressions like #17599 creep in.
First commit is a small fix that fixes running it locally after a package got renamed. (The command crashed for me locally otherwise, which made verifying the fix annoying.)
The second commit makes the right command run on CI. It fails, as expected.
The third commit fixes #17630.