clever-father-91273
04/11/2023, 3:11 PMtest
, lint
, check
, and publish
commands as separate steps of a CloudBuild pipeline. When I run the same steps locally, they execute in a 3-5 seconds, thanks to some clever caching I assume. But on the cloud, it can easily take more than 10 minutes. I noticed from the logs that the most time is spent on Pants overhead rather then the actions of linting or testing themselves. For instance, pytest takes 15s to run the tests, but the entire pants test
command needs 7 minutes to build the requirements.pex files etc.
I'm wondering how can I make it faster:
• Is it possible to run e.g. testing and linting in parallel? I cannot make it work, I'm getting the same error as the one discussed here
• Is there anything I can do other than parallelization to accelerate individual pants commands, e.g. via caching?polite-garden-50641
04/11/2023, 3:21 PMhappy-kitchen-89482
04/11/2023, 3:32 PMclever-father-91273
04/11/2023, 3:41 PM