brash-baker-91190
04/23/2021, 4:30 PM16:26:31.31 [WARN] Completed: lint - isort failed (exit code 2).
.cache/pex_root/venvs/d8105fd40948579fedc63bb8ddd363d251b7db7a/5dc7bde7966ce85a9f3820e78694dc0e8d63768d/pex: line 7: syntax error near unexpected token `('
.cache/pex_root/venvs/d8105fd40948579fedc63bb8ddd363d251b7db7a/5dc7bde7966ce85a9f3820e78694dc0e8d63768d/pex: line 7: ` venv_dir = os.path.abspath(os.path.dirname(__file__))'
I'm working on getting access to the build nodes to dig in further, but it looks like after the failing pants run that pex_root
directory isn't present anymore, making it tricky to debug. Any ideas on how I might be able to debug this? Thanks 🙇happy-kitchen-89482
04/23/2021, 4:48 PM--no-process-execution-local-cleanup
happy-kitchen-89482
04/23/2021, 4:49 PM__run.sh
script will execute the processhappy-kitchen-89482
04/23/2021, 4:49 PMhappy-kitchen-89482
04/23/2021, 4:49 PMhappy-kitchen-89482
04/23/2021, 4:50 PMhappy-kitchen-89482
04/23/2021, 4:53 PMvenv_dir = os.path.abspath(os.path.dirname(__file__))
line 7 is in the __main__.py
that pex synthesizes to make its venv runnable.happy-kitchen-89482
04/23/2021, 4:54 PMsyntax error near unexpected token
is a bash errorhappy-kitchen-89482
04/23/2021, 4:54 PMhappy-kitchen-89482
04/23/2021, 4:55 PMhappy-kitchen-89482
04/23/2021, 4:55 PMbrash-baker-91190
04/23/2021, 4:56 PMbrash-baker-91190
04/23/2021, 5:10 PMpex_root
is directly in the .cache
directory.
In CI, I'm using a pants.ci.toml
file with the following contents:
local_store_dir = ".cache/pants/lmdb_store"
named_caches_dir = ".cache/pants/named_caches"
pants_ignore = [
".cache/pants/named_caches",
".cache/pants/lmdb_store",
]
But otherwise, I don't think I'm doing anything else different.hundreds-father-404
04/23/2021, 5:12 PMhundreds-father-404
04/23/2021, 5:13 PMhundreds-father-404
04/23/2021, 5:14 PMbrash-baker-91190
04/23/2021, 5:15 PM/var/lib/buildkite-agent/builds/default-i-XXXXXXXXXXXXXXXXX-1/grapl/testing
brash-baker-91190
04/23/2021, 5:18 PMhundreds-father-404
04/23/2021, 5:21 PMbrash-baker-91190
04/23/2021, 5:23 PMbrash-baker-91190
04/23/2021, 5:23 PMhundreds-father-404
04/23/2021, 5:24 PMhundreds-father-404
04/23/2021, 5:24 PMbrash-baker-91190
04/23/2021, 5:25 PMbrash-baker-91190
04/23/2021, 5:26 PMbrash-baker-91190
04/23/2021, 5:26 PMhundreds-father-404
04/23/2021, 5:27 PMbrash-baker-91190
04/23/2021, 5:27 PMbrash-baker-91190
04/24/2021, 3:16 AM/builds/1/cache
, /builds/2/cache
, etc. This in turn means that the shebang lines in the cached PEX venvs will also have this agent specificity. It seems I will now need a cache per agent to ensure that the restored caches have PEX venvs that refer to the appropriate path (while experimenting with this, I had some builds that failed because they were using a cache with shebang lines that pointed to a nonexistent path).
At the end of the day, it's not a big deal (S3 storage for the caches is cheap, and I don't know that I'm going to have more than a handful of agents on any given box), but it was an interesting realization. I'm not mentioning this to request any kind of change in Pants or anything, just more of an FYI. Thanks again for the assistance on this; I really appreciate it!happy-kitchen-89482
04/24/2021, 11:37 PMhundreds-father-404
04/24/2021, 11:39 PMenough-analyst-54434
04/26/2021, 2:47 AMenough-analyst-54434
04/26/2021, 3:17 AM/var/cache/pants
for each agent (this is safe to do, named caches must be concurrency safe) and then if you can't sync a cache from a global location, symlink that directory into an agent-local location.brash-baker-91190
04/26/2021, 12:34 PMenough-analyst-54434
04/26/2021, 5:45 PMbrash-baker-91190
04/26/2021, 5:46 PMenough-analyst-54434
05/07/2021, 3:54 PMbrash-baker-91190
05/07/2021, 3:57 PMenough-analyst-54434
05/07/2021, 4:18 PM