hundreds-father-404
03/22/2021, 8:26 PM4210c6c9dece3ff6d0c00b318b880bd6050c3e96
resulted in ./pants lint
hanging with Black, Flake8, and Docformatter - it doesn't finish execution.
Could someone please try running ./pants lint src/python/pants/util/strutil.py --no-process-execution-use-local-cache --no-pantsd
?enough-analyst-54434
03/22/2021, 8:35 PMhundreds-father-404
03/22/2021, 8:39 PM--no-process-execution-use-local-cache
to force the rerunwitty-crayon-22786
03/22/2021, 9:26 PMwitty-crayon-22786
03/22/2021, 9:29 PMhundreds-father-404
03/22/2021, 9:40 PMwitty-crayon-22786
03/22/2021, 9:51 PMwitty-crayon-22786
03/22/2021, 9:51 PMhundreds-father-404
03/22/2021, 9:51 PMwitty-crayon-22786
03/22/2021, 9:52 PMwitty-crayon-22786
03/22/2021, 9:52 PMpy-spy
witty-crayon-22786
03/22/2021, 9:53 PMps -ef | grep black
, for examplewitty-crayon-22786
03/22/2021, 9:54 PMhundreds-father-404
03/22/2021, 9:55 PM$ /opt/homebrew/Cellar/python@3.9/3.9.2_1/Frameworks/Python.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python -sE /private/var/folders/hm/qjjq4w3n0fsb07kp5bxbn8rw0000gn/T/process-execution6Y2Rzi/.cache/pex_root/venvs/3c89ae006bab8f37897fd91a0a2d26ee196c0977/837c093c06bd686fc4cd8a7c11bdb7b9cb3598d4/pex --check --config pyproject.toml src/python/pants/util/strutil.py
Re-execing from /opt/homebrew/opt/python@3.9/bin/python3.9
Re-execing from /Users/eric/.cache/pants/named_caches/pex_root/venvs/3c89ae006bab8f37897fd91a0a2d26ee196c0977/837c093c06bd686fc4cd8a7c11bdb7b9cb3598d4/bin/python3.9
Re-execing from /Users/eric/.cache/pants/named_caches/pex_root/venvs/3c89ae006bab8f37897fd91a0a2d26ee196c0977/837c093c06bd686fc4cd8a7c11bdb7b9cb3598d4/bin/python3.9
Re-execing from /Users/eric/.cache/pants/named_caches/pex_root/venvs/3c89ae006bab8f37897fd91a0a2d26ee196c0977/837c093c06bd686fc4cd8a7c11bdb7b9cb3598d4/bin/python3.9
Re-execing from /Users/eric/.cache/pants/named_caches/pex_root/venvs/3c89ae006bab8f37897fd91a0a2d26ee196c0977/837c093c06bd686fc4cd8a7c11bdb7b9cb3598d4/bin/python3.9
This is the process being runwitty-crayon-22786
03/22/2021, 9:56 PMhundreds-father-404
03/22/2021, 9:57 PMps -ef | grep pants
showed me the 3 processes still running, and one of them was that above one that I postedwitty-crayon-22786
03/22/2021, 9:57 PMps
may not actually repro precisely, because it won’t have the relevant environment variables, etcwitty-crayon-22786
03/22/2021, 9:57 PMwitty-crayon-22786
03/22/2021, 9:57 PM--no-*-cleanup
witty-crayon-22786
03/22/2021, 9:58 PM__run.sh
script, which does set env varshundreds-father-404
03/22/2021, 9:59 PMre-execing
loop. Glad it's something obvious like that! So now to figure out why it's re-execinghundreds-father-404
03/22/2021, 10:12 PM#!/Users/eric/.cache/pants/named_caches/pex_root/venvs/short/c3eb1b0a/bin/python3.9 -sE
if __name__ == "__main__":
import os
import sys
venv_dir = os.path.abspath(os.path.dirname(__file__))
venv_bin_dir = os.path.join(venv_dir, "bin")
shebang_python = '/Users/eric/.cache/pants/named_caches/pex_root/venvs/short/c3eb1b0a/bin/python3.9'
python = os.path.join(venv_bin_dir, os.path.basename(shebang_python))
if sys.executable not in (python, shebang_python):
sys.stderr.write("Re-execing from {}\n".format(sys.executable))
os.execv(python, [python, "-sE"] + sys.argv)
I added logging and got:
python: /private/var/folders/hm/qjjq4w3n0fsb07kp5bxbn8rw0000gn/T/process-execution18NBX4/.cache/pex_root/venvs/3c89ae006bab8f37897fd91a0a2d26ee196c0977/837c093c06bd686fc4cd8a7c11bdb7b9cb3598d4/bin/python3.9
python real_path: /opt/homebrew/Cellar/python@3.9/3.9.2_1/Frameworks/Python.framework/Versions/3.9/bin/python3.9
sys.executable: /Users/eric/.cache/pants/named_caches/pex_root/venvs/3c89ae006bab8f37897fd91a0a2d26ee196c0977/837c093c06bd686fc4cd8a7c11bdb7b9cb3598d4/bin/python3.9
sys.executable real_path: /opt/homebrew/Cellar/python@3.9/3.9.2_1/Frameworks/Python.framework/Versions/3.9/bin/python3.9
enough-analyst-54434
03/25/2021, 5:23 AM