polite-angle-82480
02/14/2023, 1:01 AMException: Snapshot failed: Failed to digest inputs: Throw { val: Error storing Digest { hash: Fingerprint<c93b26416b75378875d53b1a3a96569ddcbf9ae40b87c5f4cde555f5c625cc71>, size_bytes: 217 }: MDB_CORRUPTED: Located page was wrong type, python_traceback: “Traceback (no traceback):\n <pants native internals>\nException: Error storing Digest { hash: Fingerprint<c93b26416b75378875d53b1a3a96569ddcbf9ae40b87c5f4cde555f5c625cc71>, size_bytes: 217 }: MDB_CORRUPTED: Located page was wrong type”, engine_traceback: [“digest_file”] }Looking around seems like a few people here this as well in CI. The workarounds seem to be either using
--no-pantsd
(didn’t work) or blowing up the cache dir (not a feasible solution for us).polite-angle-82480
02/14/2023, 1:01 AMpolite-angle-82480
02/14/2023, 1:01 AMpolite-angle-82480
02/14/2023, 1:01 AMenough-analyst-54434
02/14/2023, 1:41 AMhappy-kitchen-89482
02/14/2023, 2:37 AMpolite-angle-82480
02/14/2023, 2:40 AMbroad-processor-92400
02/14/2023, 3:40 AMpolite-angle-82480
02/14/2023, 6:27 AMpolite-angle-82480
02/14/2023, 6:27 AMpolite-angle-82480
02/14/2023, 6:27 AMPANTS_NAMED_CACHES_DIR
. Is this right? using S3 to cache PANTS_SETUP_CACHE
can’t be cached since pants needs to actually install itself and PANTS_LOCAL_STORE_DIR
are test results which don’t need to be cached?happy-kitchen-89482
02/14/2023, 7:10 AMhappy-kitchen-89482
02/14/2023, 7:10 AMpolite-angle-82480
02/14/2023, 8:02 PMpolite-angle-82480
02/14/2023, 8:02 PMthousands-continent-27390
06/14/2024, 11:16 PMpolite-angle-82480
06/19/2024, 6:17 PMpants.toml
remote_cache_read = true
remote_cache_write = true
remote_store_address = "<grpc://bazel-remote-cache.sys.enigma.com:80>"
remote_instance_name = "main"
<http://bazel-remote-cache.sys.enigma.com|bazel-remote-cache.sys.enigma.com>
is something we set up.
(I was about to recommend Toolchain which was a managed build/ remote caching service for pants but it no longer exists.)
wrt local caching — it happens automatically and pants handles of it without any additional config.
But from my testing local caching can’t be shared between CI workers — we were getting weird errors in CI that we think are due to shared cachethousands-continent-27390
06/22/2024, 4:36 PM