-
Notifications
You must be signed in to change notification settings - Fork 601
test: test-all-versions in parallel #2994
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
base: main
Are you sure you want to change the base?
Conversation
2f3cb4a
to
5e1f18c
Compare
bc232f3
to
13500c4
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.
@david-luna, apart from some flaky mongodb tests which fail under stress (and some undici tests that I've fixed already), this tav patch seems to be working and offers a 2x speedup. I'll check with tav maintainers what they think of this approach, and if it's possible to upstream.
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.
thanks! I think for now we can rely on npm run --workspaces
and revisit this if upstreamed.
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.
The mongodb test failures were caused by the missing callback. Now, everything seems to be working!
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.
Nice! is the assignment of process.env.npm_config_legacy_peer_deps
the only difference from upstream?
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.
No, it also isolates the installs from each other by creating synthetic packages outside the scope of the npm monorepo and then linking the installed packages into the node_modules
of the specific npm "workspace".
6933bdd
to
71b88ef
Compare
2ed29b7
to
ac2f4d2
Compare
Which problem is this PR solving?
Speeding up testing all versions by running them in parallel.
Short description of the changes
Patch tav to install packages differently.