-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
main,osbuildprogress: add --progress=text
support (COMPOSER-2394)
#525
Conversation
As you already mentioned in the comment, I also think that the progress (at least the object itself) should have indefinite levels to be generic. And the progress should definitely include "Generating manifest" |
The way I think it should work is similar to a "logger" it should always exist and just be handed over (directly or indirectly/globally) |
ID string `json:"id"` | ||
} `json:"pipeline"` | ||
} `json:"context"` | ||
Progress struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to add "build_result"result
here if/once osbuild/osbuild#1831 is merged
This PR is stale because it has been open 30 days with no activity. Remove "Stale" label or comment or this will be closed in 7 days. |
This PR is stale because it has been open 30 days with no activity. Remove "Stale" label or comment or this will be closed in 7 days. |
This adds a new `bootc-image-builder` mode that makes use of the osbuild json-seq progress information. It will display some user friendly progress information.
Switch the progress output to `chegggaaa/pb/v3` and tweak the progress. Still open questions about the message output and error handling.
osbuild will send the build result to stdout in a non-json format. By using the --monitor-fd this won't affect the progress handling.
--progress=text
support--progress=text
support (COMPOSER-2394)
Thanks, yeah, that is excellent feedback. This version was a draft and mostly to explore the space. I created #743 and osbuild/images#1047 now which are cleaned up versions based on this PR and address your points. I will close this one in favor of the other two. |
This adds a new
bootc-image-builder
mode that makes use of theosbuild json-seq progress information. It will display some
user friendly progress information. It can be tested via:
It looks like this right now:
It uses
chegggaaa/pb/v3
- but there are still open questions about the message output and error handling.Draft because:
no syncronisation between cmd.Wait() and the progress reader reading output, this also needs to get fixed via e.g. a waitgroup so that both the cmd needs to finish and the stdout read gets an EOF before we continue as otherwise the last progress messages may get lostosbuild currently prints random non-json at the end of a run, we need to fix that or deal with it gracefullyNeeds main,monitor: fix total steps in progress reporting osbuild#1826 for correct reporting