Skip to content
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

osbuild: do not assume osbuild stage messages have a final \n #1201

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented Feb 7, 2025

[draft as this needs coresponding image-builder-cli/bib changs]

This commit tweaks the osbuild monitor code to deal correctly with messages from osbuild stage that may not contain a final newline. So far the code assumed this and stripped the final newline when storing the message in the status. But sometimes there are messages without a final \n (e.g. when messages get very long). So just put the message in verbatim and let the caller do a "print" instead of a "println" when processing the messages (arguably the trim for traces was always strong).

This commit tweaks the osbuild monitor code to deal correctly
with messages from osbuild stage that may not contain a final
newline. So far the code assumed this and stripped the final
newline when storing the message in the status. But sometimes
there are messages without a final \n (e.g. when messages get
very long). So just put the message in verbatim and let the
caller do a "print" instead of a "println" when processing
the messages (arguably the trim for traces was always strong).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant