Subprocess stream_output=False
fixes
#1056
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
steam_output=False
, disable dynamic console elements such as the Wait Bar.stream_output=False
...in which case console control will be released anyway now.Related Issues
stream_output=False
is not Respected within a Controlled Console #1055Notes
Looking at the tests and so forth (especially those in
test_Subprocess__run__controlled_console.py
), it seems clear thatstream_output=False
was not expected to actually disable streaming if the console was currently controlled. This was the wrong implementation.....but one that was probably based on the assumption that upstream code would not invoke commands that could not be streamed at the same time the console was controlled (e.g. running an unstreamable command in the Wait Bar). Earlier on, this was probably a reasonable assumption but we've made the framework much more flexible and accommodating since then.Additionally, when #943 updated the default for
stream_output
fromFalse
toTrue
, it probably should have also reconsidered downstream logic assumingstream_output
would usually beFalse
.These changes should help streamline all this now.
PR Checklist: