Is there a way to speed up running `pants test`? b...
# general
t
Is there a way to speed up running
pants test
? building the
requirements.pex
takes 2-3 minutes for my integration tests that have a lot of dependencies (e.g. 40). The
requirements.pex
is ends up being rebuilt quite often when developing these tests.
w
What version of pants are you on?
f
Maybe https://www.pantsbuild.org/2.21/reference/subsystems/python#run_against_entire_lockfile would help? (by running tests against a single requirements.pex regardless of which parts of it they use)
t
2.21.0
I was wondering if it was possible to somehow disable PEX creation at all. It'd collect all the deps in the sandbox and point python to the right places, but I admit I'm not very familiar with the details here 🙂
usually in our current workflows we avoid creating PEX files and run from e.g. bazel runfiles directly
g
for what I’ve seen, pex creation is essential for pants, that’s how a lot of the sandbox functionality comes from
p
I wonder if the constant rebuilds are due to https://github.com/pantsbuild/pants/pull/20767
🤞 1
h
@thankful-vegetable-72262 Are you seeing requirements rebuilt when you wouldn't expect them to be? Or is it just that you change your lockfile quite often?
👆 1