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

progress: fix missing build log output on errors in progress #820

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

mvo5
Copy link
Collaborator

@mvo5 mvo5 commented Feb 5, 2025

This commit fixes a silly mistake from PR#810. The issue is that in #810 we started to collect the osbuild stdout/stderr so that we can show crashes from osbuild or other unexpected output.

However when a stage fails this is reported via the json progress and not directly on stdout/stderr - this was missed when #810 was done.

This commit does a short term fix by collecting the buildlog again and showing it in the error and also updates the test to be more realistic. However we really need a test that actually tests the real behavior, ideally a real osbuild run with a stage error so that we can be sure we capture this (criticial!) functionality.

This commit fixes a silly mistake from PR#810. The issue is that
in osbuild#810 we started to collect the osbuild stdout/stderr so that
we can show crashes from osbuild or other unexpected output.

However when a stage fails this is reported via the json progress
and not directly on stdout/stderr - this was missed when osbuild#810
was done.

This commit does a short term fix by collecting the buildlog again
and showing it in the error and also updates the test to be more
realistic. However we really need a test that actually tests
the real behavior, ideally a real osbuild run with a stage error
so that we can be sure we capture this (criticial!) functionality.
Copy link
Member

@ondrejbudai ondrejbudai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mvo5 mvo5 added this pull request to the merge queue Feb 5, 2025
Merged via the queue into osbuild:main with commit db7b418 Feb 5, 2025
13 of 16 checks passed
@mvo5 mvo5 deleted the tweak-tweak-progress-errors branch February 5, 2025 15:21
mvo5 added a commit to mvo5/image-builder-cli that referenced this pull request Feb 6, 2025
This commit updates the `progress` package to get the latest
fixes, most notably
osbuild/bootc-image-builder#820
mvo5 added a commit to mvo5/image-builder-cli that referenced this pull request Feb 6, 2025
This commit updates the `progress` package to get the latest
fixes, most notably
osbuild/bootc-image-builder#820
supakeen pushed a commit to mvo5/image-builder-cli that referenced this pull request Feb 10, 2025
This commit updates the `progress` package to get the latest
fixes, most notably
osbuild/bootc-image-builder#820
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.

2 participants