Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable pantsd when piping output for internal script #10810

Merged
merged 2 commits into from Sep 18, 2020

Conversation

asherf
Copy link
Member

@asherf asherf commented Sep 17, 2020

Problem

pants hangs when running w/ pantsd and tyring to pipe the output to another program.
this causes this script to hang. see https://pantsbuild.slack.com/archives/C0D7TNJHL/p1600380688158100

Solution

Don't use pantsd when generating a constaints file.

@@ -6,6 +6,6 @@ constraints_file=3rdparty/python/constraints.txt

VENV=$(mktemp -d -t pants_lockfile_venv.XXXXX)
python3 -m venv "${VENV}"
"${VENV}/bin/pip" install -r <(./pants --tag=-lockfile_ignore dependencies --type=3rdparty ::)
"${VENV}/bin/pip" install -r <(./pants --no-pantsd --tag=-lockfile_ignore dependencies --type=3rdparty ::)
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please reference #10438 in a TODO here.

@coveralls
Copy link

coveralls commented Sep 17, 2020

Coverage Status

Coverage remained the same at 0.0% when pulling 3862d2b on asherf:responses into 8f4e398 on pantsbuild:master.

@Eric-Arellano Eric-Arellano changed the title Disable pantsd when piping output. Disable pantsd when piping output for internal script Sep 18, 2020
@Eric-Arellano Eric-Arellano merged commit 519a6cc into pantsbuild:master Sep 18, 2020
@asherf asherf deleted the responses branch September 18, 2020 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants