-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Avoid extra package install #35184
Avoid extra package install #35184
Conversation
8db5529
to
7cd9f60
Compare
8e6a3d0
to
3554e75
Compare
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.
This sounds great if we can get it to work!
❤️ 💚 💙 💛 💜
"private": true, | ||
"dependencies": { | ||
"@rails/ujs": "file:../../../../actionview", | ||
"@rails/webpacker": "^4.0.0-rc.7", |
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.
Could/should this point at the git repo instead?
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.
👍 Totally agree. I fixed.
3554e75
to
c2da060
Compare
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.
Looks like this cut off the run time by 10-15 minutes or 25% by my estimation! 😄❤️
9556120
to
46d6544
Compare
Some tests are running yarn install during the test. The directory used for isolation test is not subject to yarn workspace, and it occurs because the required package is not installed. In order to avoid this, I fixed all necessary packages to be installed before run test and use symlink to `node_modules`. This is a bit complicated, as `yarn install` needs to be run in a specific directory before running the test. However, running `yarn install` every time run the test is expensive when testing locally and should be avoided.
24ee928
to
cd34f00
Compare
OK, this approach works and cut off the run time about 10 minutes.(as kaspth mentioned already :) |
Fantastic work, @y-yagi! I wonder if we could eventually make |
I have been running individual tests a lot these days, this patch speeds things up significantly. 🙌 |
Some tests are running yarn install during the test.
The directory used for the isolation test is not subject to yarn workspace, and it occurs because the required package is not installed.
In order to avoid this, I fixed all necessary packages to be installed before run test and use a symlink to
node_modules
.This is a bit complicated, as
yarn install
needs to be run in a specific directory before running the test.However, running
yarn install
every time run the test is expensive when testing locally and should be avoided.