rapid-crayon-8232
03/23/2022, 5:11 PM$HOME/.cache/pants
folder between steps/build for faster execution.
The catch is that even when running a ./pants
goals on only changed targets (with --changed-since=origin/main
), pants starts by downloading all dependencies in the impacted lockfiles, and with a data-science
resolve that can easily get to ~10Gbs of cache to upload/download.
Is there any way around this ? or Am i doing something wrong^^, since it's indeed slower to push/pull 10Gigs of cache each timerapid-crayon-8232
03/23/2022, 5:11 PMwitty-crayon-22786
03/23/2022, 7:03 PM$HOME/.cache/pants/lmdb_store
(for example), you will be able to hit for exact matches, but you wonโt keep a generic PIP cache (under $HOME/.cache/pants/named_caches
), and will need to re-resolve from scratch after requirements changewitty-crayon-22786
03/23/2022, 7:04 PMrapid-crayon-8232
03/23/2022, 7:05 PMwitty-crayon-22786
03/23/2022, 7:10 PMwitty-crayon-22786
03/23/2022, 7:11 PMpolite-garden-50641
03/23/2022, 7:22 PMhappy-kitchen-89482
03/23/2022, 9:07 PMrhythmic-battery-45198
03/23/2022, 9:09 PMlmdb_store
and named_caches
directories. We use self-hosted runners on azure kubernetes. So, ended up mounting a persistent volume in each runner to enable persisting the cache locally between runs. Works well for our specific use case.high-yak-85899
03/23/2022, 9:18 PMhappy-kitchen-89482
03/23/2022, 9:18 PMhappy-kitchen-89482
03/23/2022, 9:18 PMhigh-yak-85899
03/23/2022, 9:19 PMhigh-yak-85899
03/23/2022, 9:19 PMhappy-kitchen-89482
03/23/2022, 9:19 PMrapid-crayon-8232
03/23/2022, 9:21 PMrhythmic-battery-45198
03/24/2022, 1:54 PM