wide-zoo-86070
05/02/2022, 3:27 PMPEX_ROOT
, PANT_LOCAL_STORE_DIR
and PANTS_NAMED_CACHES_DIR
in our CI. With those, we can see the pex cache are used within builds across a single branch, i.e, after the first builds, the following builds on that branch will re-use the pex cache. The question is, given we config the PEX_ROOT
, PANT_LOCAL_STORE_DIR
and PANTS_NAMED_CACHES_DIR
to be the same place across all build, won’t the cache be shared across all builds and branches? For example, if one build on a branch resolves the ‘python-default’ from build-support/lockfile.txt, can it be shared?hundreds-father-404
05/02/2022, 3:30 PMhundreds-father-404
05/02/2022, 3:30 PMPEX_ROOT
. Pants sets that up for you based on PANTS_NAMED_CACHES_DIR
wide-zoo-86070
05/02/2022, 3:33 PMhundreds-father-404
05/02/2022, 3:34 PM./pants
multiple times? If so, it usually is a good idea to improve performance. All the daemon does is keeps the results from prior runs memoized for subsequent runswide-zoo-86070
05/02/2022, 3:39 PMwide-zoo-86070
05/02/2022, 3:40 PMYou can convince yourself of that by locally running a test, and then creating a new branch (w/ no changes) and re-run the same testI am wondering if the location of the files would matter? For example, in local, if I creating another branch (w/o changes) in a different place, will the cache be used? Because in CI, branches are placed in different places. @hundreds-father-404
hundreds-father-404
05/02/2022, 3:42 PM./pants
is located), and that file content is the samewide-zoo-86070
05/02/2022, 3:45 PMwide-zoo-86070
05/02/2022, 3:47 PMhundreds-father-404
05/02/2022, 3:48 PMwide-zoo-86070
05/02/2022, 3:56 PMhundreds-father-404
05/02/2022, 4:00 PMhundreds-father-404
05/02/2022, 4:01 PMwide-zoo-86070
05/02/2022, 4:03 PMwide-zoo-86070
05/02/2022, 4:07 PMwide-zoo-86070
05/02/2022, 4:09 PMhundreds-father-404
05/02/2022, 4:19 PMPANT_LOCAL_STORE_DIR
and PANTS_NAMED_CACHES_DIR
or using the default?wide-zoo-86070
05/02/2022, 4:20 PMwide-zoo-86070
05/02/2022, 4:24 PMwide-zoo-86070
05/02/2022, 5:52 PM