Hey :wave: is there a way to have Pants stream ba...
# general
s
Hey 👋 is there a way to have Pants stream back
pants test
output as it happens? I'm debugging what seems to be a deadlock in my tests, but it's hard to debug exactly where because I can't see my print statements and it just freezes up with a blank screen. The current command I've been trying without luck:
PANTS_DYNAMIC_UI=False pants test --test-output=all --pytest-args="-s -vv" path/to/my/test_file.py
When I keep the sandbox and do
./__run.sh
, the output is immediately displayed
c
I am pretty sure the results are unfortunately not streamable.
(Internally
test
uses a
Process
to run, but I think streaming is only set up for `InteractiveProcess`es which are different.
Process
doesn't have a flag to set streaming, and I think the streaming is configured on the Rust side of the codebase. When RustRover updates I'll have a look to confirm)
g
^ is unfortunately correct. I have a PR to enable streaming for all workunits, but it's quite rotten as I haven't had time to address the surrounding work. Until that (or an alternative) lands there is no method I know of. (https://github.com/pantsbuild/pants/pull/20369)
s
I see, thanks for the responses