Is there any support for streaming output from a `...
# plugins
g
Is there any support for streaming output from a
Process
? It's very confusing to debug container builds without any feedback
Copy code
[2023-05-25T08:43:13Z] 08:43:13.59 [INFO] Long running tasks:
[2023-05-25T08:43:13Z]   2739.39s	Fused run of: Unpacking OCI bundle | Running container build command | Repacking OCI bundle
Have I hit a deadlock? Is something trying to be interactive? Is it just repacking 10 GB of Cuda libraries? No-one knows.
1
c
would love to see this fixed 🙂
w
it’s definitely possible of course. primary issue is figuring out what the UI would be.
g
Yeah; definitely not straightforward as you say. Not sure how the output works for Pants, if it could be done like "areas" with streaming output for parallel tasks
c
in my mind, I’ve imagined it that in case you only have a single long running task, the other unused lanes could be used for scrolling output. thinking that most of the time when I wonder what’s going on, there is this one job that is rolling and nothing else.
that’s mostly to show that something is going on, not so much what, unless it’s stuck on something in which case you’d see the last few lines of output..
unless you’re Josh and have 64 cores 😜
g
Yeah. I think maybe having it as a flag essentially forcing single-task execution (for things with log output, anyways) would make sense. And then backends can opt in where ut would make sense, perhaps based on some flag. E.g. I'd only want it for debugging if it forces sequential behavior.
w
apparently i have looked into this before, heh: https://github.com/pantsbuild/pants/issues/8923