Repository navigation
Shell: "Fix" non-interactive shell stdout - #9258
sourishkrout wants to merge 2 commits into
Conversation
|
Hey, the
Let's discuss (in #8990) first why you need it and see if there's a better solution or if bringing that back is the best long term. |
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Include _type in response Signed-off-by: Sebastian (Tiedtke) Huckleberry <[email protected]>
Signed-off-by: Sebastian (Tiedtke) Huckleberry <[email protected]>
3aba7af to
16adf9d
Compare
|
This PR was closed because it has been stalled for 7 days with no activity. |
Problem
shellandCLIbehave differently when it comes tostdouthandling with TTY attached._type.This PR is attempt to produce a pragmatic fix. However, any reviews/pointers are welcome if the code's not up to standard. I found it quicker to fix the issues than to merely describe the problems.
PS: This is required to preserve Runme's existing Notebook UX/UI integration.
In a nutshell this PR fixes
_typein response as perdagger call.However, is the stdout fixed in the right place? I see several ways to resolve this issue; however, I am not clear about the side effects. Are there tests to write?
Shell stdout always goes to stderr
The Dagger shell always writes to stderr, even the response payload. Following command should discard stdout but doesn't.
Unlike the Dagger CLI which does discard stdout correctly.
Now with this PR's branch build
It redirects it correctly.
Redirected stdout works and matches CLI
Here we go! Please note that the response payload now matches the CLI's with the
_typeincluded. The missing_typeis a spearate issue.