worried-painter-31382
09/01/2022, 1:42 PMpants
invocations in pythons subprocess
. So far it had worked ok, but using
[python-repos]
indexes = [
'<https://aws>:%(env.CODE_ARTIFACT_TOKEN)s@<our-python-repo>/simple
]
and adding the appropriate platform to the pex_binary
causes
subprocess.run(f'./pants package {dockerfile} --dynamic-ui=False', shell=True, text=True, env=os.environ)
to hang.
Running ./pants package <the-dockerfile>
works, so it's something specific to subprocess
worried-painter-31382
09/01/2022, 1:44 PMpython-repos
section causes everything to work ok, and also that using the python-repos
section outside of subprocess
works ok.worried-painter-31382
09/01/2022, 1:49 PMpantsd
seem to help, am I hitting some resource contention?bitter-ability-32190
09/01/2022, 1:51 PMworried-painter-31382
09/01/2022, 1:55 PMbitter-ability-32190
09/01/2022, 1:55 PMworried-painter-31382
09/01/2022, 2:08 PM./pants package
run? Right now I use image_sha = result.split('Docker image ID:')[1].strip()
from the subprocess run.bitter-ability-32190
09/01/2022, 3:15 PMworried-painter-31382
09/01/2022, 3:24 PMbitter-ability-32190
09/01/2022, 3:25 PM