Skip to content

Conversation

Ugzuzg
Copy link
Contributor

@Ugzuzg Ugzuzg commented Aug 21, 2025

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.

Copy link
Contributor Author

@Ugzuzg Ugzuzg Sep 4, 2025

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

@Ugzuzg

thanks! I think for now we can rely on npm run --workspaces and revisit this if upstreamed.

Copy link
Contributor Author

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!

Copy link
Contributor

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?

Copy link
Contributor Author

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".

watson/test-all-versions#26

@Ugzuzg Ugzuzg force-pushed the nx-tav branch 4 times, most recently from 6933bdd to 71b88ef Compare September 4, 2025 18:42
@Ugzuzg Ugzuzg changed the title test: trying out nx tav parallel patch test: test-all-versions in parallel Sep 4, 2025
@Ugzuzg Ugzuzg force-pushed the nx-tav branch 3 times, most recently from 2ed29b7 to ac2f4d2 Compare September 9, 2025 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.