brief-jewelry-24777
07/14/2023, 6:04 PMfast-nail-55400
07/14/2023, 6:22 PMfast-nail-55400
07/14/2023, 6:23 PMhappy-kitchen-89482
07/14/2023, 8:54 PMhappy-kitchen-89482
07/14/2023, 8:55 PMhappy-kitchen-89482
07/14/2023, 8:55 PMbrief-jewelry-24777
07/14/2023, 9:01 PMbrief-jewelry-24777
07/14/2023, 9:02 PMbrief-jewelry-24777
07/14/2023, 9:06 PMbrief-jewelry-24777
07/14/2023, 9:10 PMrapid-bird-79300
07/14/2023, 9:11 PM2.17.0rc1
).
To note, we do experience performance issues in CI with recomputing of `Find targets from input specs`and Map all targets to their dependents
it's extremely slow without proper pantsd setup.
This is also true in our local environments. If you run ./pants dependents
without making any changes, you will still wait 4-5mins for results. I think it is related to this issue https://github.com/pantsbuild/pants/issues/18911
A way to improve this is to increase pantsd max memory and get more caching benefits. I recommend you try this as well if you have the resources.
In CI, we haven't figured out how to get these benefits, I'd imagine remote caching server would help here but never tried it.
This is how we use cache in CI today:
• We have a dedicated agent queue for CI pants runs (buildkite)
• Every commit on main generates a cache artifact
• A PR CI pulls the nearest cache from base commit sha and runs pants
In this setup, dependency inference is extremely fast although we do face those other bottlenecks mentioned above.
Another idea is just to have a long running agent queue in CI for pants executions and just nuke the cache if it gets too big (as mentioned in docs).brief-jewelry-24777
07/14/2023, 9:13 PMbrief-jewelry-24777
07/14/2023, 9:15 PM⠁ 74.78s Resolve transitive targets
rapid-bird-79300
07/14/2023, 9:16 PMbrief-jewelry-24777
07/14/2023, 9:18 PMhappy-kitchen-89482
07/14/2023, 9:22 PMhappy-kitchen-89482
07/14/2023, 9:23 PMhappy-kitchen-89482
07/14/2023, 9:23 PMhappy-kitchen-89482
07/14/2023, 9:23 PMhappy-kitchen-89482
07/14/2023, 9:24 PMhappy-kitchen-89482
07/14/2023, 9:25 PMhappy-kitchen-89482
07/14/2023, 9:27 PMbrief-jewelry-24777
07/14/2023, 9:37 PMScheduling: Determine Python dependencies for
brief-jewelry-24777
07/14/2023, 9:37 PMbrief-jewelry-24777
07/14/2023, 9:38 PMpants test SOME_FILE
) is super quick (7 seconds) but other times it’s busy Determine Python dependenciesbrief-jewelry-24777
07/14/2023, 9:40 PMbrief-jewelry-24777
07/14/2023, 11:55 PMhappy-kitchen-89482
07/15/2023, 8:40 AMbrief-jewelry-24777
07/17/2023, 6:07 PM