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

Adds fields to capture stdout/stderr to experimental_run_in_sandbox #18165

Merged
merged 2 commits into from
Feb 6, 2023

Conversation

chrisjrn
Copy link
Contributor

@chrisjrn chrisjrn commented Feb 3, 2023

This adds stdout= and stderr= fields to experimental_run_in_sandbox, allowing users to include those streams in the output from such a target.

Closes #18087.

@chrisjrn chrisjrn requested review from kaos, thejcannon and stuhood and removed request for kaos February 3, 2023 18:52
@chrisjrn chrisjrn marked this pull request as ready for review February 3, 2023 18:52
@@ -389,6 +389,18 @@ class RunInSandboxArgumentsField(StringSequenceField):
help = f"Extra arguments to pass into the `{RunInSandboxRunnableField.alias}` field."


class RunInSandboxStdoutFilenameField(StringField):
alias = "stdout"
Copy link
Member

Choose a reason for hiding this comment

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

I'm only 80% joking when I say that the fields should be named 1> and 2> respectively 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If only I weren't trying to steer people away from shell concepts :D

@chrisjrn chrisjrn merged commit cc5a436 into pantsbuild:main Feb 6, 2023
@chrisjrn chrisjrn deleted the chrisjrn/18087-capture-stdouts branch February 6, 2023 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

experimental_run_in_sandbox (also esc) should allow for output streams to be captured
2 participants