cloud66-oss / trackman

Execute commands as a workflow.
Apache License 2.0
197 stars 8 forks source link

show output #9

Open gingerlime opened 5 years ago

gingerlime commented 5 years ago

Trackman looks great! Thanks for creating it.

I'm looking at using it to parallelize parts of our CI/CD process however, and one thing that I'm missing is the ability to show output for each step.

Currently, I can use show_command but it won't show output. Setting --loglevel debug will show output, but it will be "mixed" between different steps...

I'm wondering if there's a way to "de-mux" the output of each step?

khash commented 5 years ago

Thank you for your suggestion @gingerlime

I think we can certainly relax the logging a bit so you don't need to have a debug log level just to see the process outputs. As for demuxing, we need more time to investigate the options (specially as most of those interfere with the normal Linux pipeline setup many use).

khash commented 4 years ago

@gingerlime a new release is on its way that allows each step to have it's own logging configuration. This means you can split the logs into different files. However splitting them onto different regions of the display is not supported in this release. I guess you can use tmux tail or something similar for that purpose.

gingerlime commented 4 years ago

@khash thank you. It sounds great! Looking forward to it.

khash commented 4 years ago

v1.0.2 with split logging is released https://github.com/cloud66-oss/trackman/releases/tag/1.0.2

gingerlime commented 4 years ago

Hi @khash sorry for the delay, but I only now had a chance to play around with the logs. Overall it works great! Thanks again.

A couple of small things however:

Nothing major, and definitely works great, but just some observations more about the "ergonomics" of it I guess :)

khash commented 4 years ago

@gingerlime thanks for the comments.

gingerlime commented 4 years ago

Hi @khash sorry for the delay. We ended up using gnu parallel instead. It fits our simple use case of running multiple jobs, configurable behaviour on failure, and getting output from each job separately (although it swallows colors, but I guess that's some kind of a TTY limitation? I'm not sure).

trackman definitely looks like a more modern alternative, and I really like what you're doing with it. These limitations make it harder for us to use unfortunately.