Open champtar opened 1 year ago
Yeah, the current state is just embarrassing.
I think we need to stop the spinner and or flush stdout and or set the buffering mode to line somewhere.
Mmm...I think rather instead we should buffer stdout/stderr from scripts to an O_TMPFILE
or so, and then display it at the end?
Or I guess, after each script is run, detect if we had any output, and if so then stop spinner, output and then restart.
I think it's already buffered from quickly looking at the code https://github.com/coreos/rpm-ostree/blob/4de52c41c5ec8f348cec9f30613d4e30ff0fbc71/src/libpriv/rpmostree-scripts.cxx#L257 but haven't tried to troubleshoot further as I have a workaround
rpm scripts outputs are often not printed, so we potentially missing important errors or warnings
Host system details Alma 8.8 build host (rpm-ostree 2022.10...)
Expected vs actual behavior
Expected: ALL ouputs from rpm scripts are printed (put
|& cat
after the command)note that when using the workaround the *.post outputs are printed pretty late (should be between post and posttrans lines)
Steps to reproduce it Replace bwrap with a small script to log, look at the logs
As a workaround you can also add
|& cat
after the commandI think we need to stop the spinner and or flush stdout and or set the buffering mode to line somewhere.
Would you like to work on the issue? No