keith / rules_multirun

Bazel rules for running multiple commands in parallel in a single bazel invocation
Apache License 2.0
65 stars 13 forks source link

[FR] Ability to buffer output rather than interleave #32

Closed alexeagle closed 4 months ago

alexeagle commented 4 months ago

When using jobs != 1 then commands are run in parallel, and their output steps on each other as they each write bytes to stdout. This makes sense for long-lived servers, but when the commands are short, I'd like an option to buffer their output, then print that output neatly when the command terminates.

keith commented 4 months ago

This is a great idea, I don't know why I didn't think of this before. I think the default should probably be this mode and not the interleaving mode, wdyt? that version is done in https://github.com/keith/rules_multirun/pull/36