gentle-flower-25372
04/22/2025, 3:15 PMdockerfile_parser.pex takes forever and never finishes?
14387.86s Building dockerfile_parser.pex from <resource://pants.backend.docker.subsystems/dockerfile.lock>careful-address-89803
04/24/2025, 3:27 AMgentle-flower-25372
04/24/2025, 3:30 AM-ldebug and --keep-sandboxes=always and couldn't see anything interesting in the sandbox.careful-address-89803
04/24/2025, 3:35 AMgentle-flower-25372
04/24/2025, 3:36 AMcareful-address-89803
04/24/2025, 3:48 AMgentle-flower-25372
04/24/2025, 3:50 AMgentle-flower-25372
04/24/2025, 3:50 AMcareful-address-89803
04/24/2025, 3:56 AM> tree
.
βββ dockerfile.lock
βββ dockerfile_parser.pex
β βββ __main__.py
β βββ __pants_df_parser.py
β βββ __pex__
β β βββ __init__.py
β βββ pex -> __main__.py
β βββ PEX-INFO
βββ pex
βββ __run.sh
βββ source_files
βββ __pants_df_parser.pygentle-flower-25372
04/24/2025, 3:57 AMcareful-address-89803
04/24/2025, 4:07 AM./pex --output-file dockerfile_parser.pex --venv prepend --seed verbose --venv-site-packages-copies --python /usr/bin/python3.9 --entry-point __pants_df_parser --no-pre-install-wheels '--sources-directory=source_files' --lock dockerfile.lock --no-pypi '--index=<https://pypi.org/simple/>' --manylinux manylinux2014 --layout packed
can you try running that from inside the sandbox?gentle-flower-25372
04/24/2025, 4:08 AMgentle-flower-25372
04/24/2025, 5:57 PMcareful-address-89803
04/24/2025, 8:02 PMgentle-flower-25372
04/24/2025, 8:03 PMgentle-flower-25372
04/24/2025, 8:04 PMgentle-flower-25372
04/24/2025, 8:04 PMorange-chef-95850
04/24/2025, 10:50 PMpants --keep-sandboxes=always -ldebug --pex-verbosity=9 package base-images/fips-golang:docker-build-arm64
The process hangs at this log message:
Building dockerfile_parser.pex from <resource://pants.backend.docker.subsystems/dockerfile.lock>
When inspecting the sandbox prepared for this step, the structure looks like this:
.
βββ dockerfile.lock
βββ pex
βββ source_files
βββ __pants_df_parser.py
According to the logs, the command being executed inside the sandbox is:
/home/ssm-user/.cache/nce/244e442a2bba37173b243362ceb6a425f667e7d22b86fab91862cdbfdc540ebb/bindings/venvs/2.24.1/bin/python3.9 ./pex \
--tmpdir .tmp \
--jobs 2 \
-vvvvvvvvv \
--no-emit-warnings \
--pip-version 24.2 \
--python-path "/home/ssm-user/.local/bin:/home/ssm-user/bin:/mise/shims:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin" \
--output-file dockerfile_parser.pex \
--venv prepend \
--seed verbose \
--venv-site-packages-copies \
--python /usr/bin/python3.9 \
--entry-point __pants_df_parser \
--no-pre-install-wheels \
--sources-directory=source_files \
--lock dockerfile.lock \
--no-pypi \
--index=<https://aws>:<TOKEN>@altana-<ECR-AWS-ACCOUNT>.<http://d.codeartifact.us-east-1.amazonaws.com/pypi/altana/simple|d.codeartifact.us-east-1.amazonaws.com/pypi/altana/simple> \
--manylinux manylinux2014 \
--layout packed
If I run this exact command manually in the sandbox, it completes successfully and creates the dockerfile_parser.pex file. No errors are reported.
However, when invoked via pants package, the process hangs and no additional logs seem to be generated. Iβve tried increasing verbosity, enabling sandbox preservation, etc., but I canβt find any useful clues in the logs.
A strong suspect here is the Go runtime installed via mise. Specifically:
β’ With Go 1.23.2 installed via mise β Pants hangs on this operation.
β’ With Go 1.23.2 installed from raw binaries β the operation completes successfully.
We would ideally like to keep using mise, so weβre trying to identify the real root cause here.
Is there a way to enable deeper logging for whatever subprocess (possibly Go-related) is causing this hang? Or any recommendation on how to troubleshoot further?
I have full sandbox snapshots and logs available and happy to dig into anything further you suggest.
Thanks a lot in advance!gentle-flower-25372
04/26/2025, 4:09 AMgentle-flower-25372
04/26/2025, 4:09 AMgentle-flower-25372
04/26/2025, 4:36 AMeval "$(
mise exec -- env \
| grep -E '^(GOBIN|GOROOT|PATH)=' \
| sed 's/^/export /'
)"careful-address-89803
05/04/2025, 7:25 PM