Skip to content

manifest: add error to Pipeline.serialize() #1882

Merged
supakeen merged 4 commits into
osbuild:mainfrom
mvo5:no-manifests-errs
Sep 19, 2025
Merged

manifest: add error to Pipeline.serialize() #1882
supakeen merged 4 commits into
osbuild:mainfrom
mvo5:no-manifests-errs

Conversation

@mvo5

@mvo5 mvo5 commented Sep 18, 2025

Copy link
Copy Markdown
Contributor

This was suggested by Achilleas in #1879 (comment) - its a start if its liked I can do serialzeEnd() too and go over the "in-between" panics in the various helpers (e.g. anaconda_installer still has some indirect panics).


manifest: add error to Pipeline.serialize()

This commit makes the Pipeline.serialize() add support for
error returns. This diff is purely automatic and does not
change any of the existing panics into errors.


manifest: convert panic() in serialize() to errors

This commit changes the panics() in serialize() to errors.

This commit makes the Pipeline.serialize() add support for
error returns. This diff is purely automatic and does not
change any of the existing panics into errors.
@mvo5 mvo5 requested a review from a team as a code owner September 18, 2025 14:59
@schutzbot

schutzbot commented Sep 18, 2025

Copy link
Copy Markdown
Collaborator

This PR changes the images API or behaviour causing integration failures with image-builder-cli. The next update of the images dependency in image-builder-cli will need work to adapt to these changes.

This is simply a notice. It will not block this PR from being merged.

@mvo5 mvo5 force-pushed the no-manifests-errs branch 2 times, most recently from 5b6fbde to d1d7829 Compare September 18, 2025 15:36
This commit changes the panics() in serialize() to errors.
With the panic() from serialize() gone we see a slightly
different error message now. Adjust for that in the bootc
tests.

@achilleas-k achilleas-k left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Awesome. This has been a long time coming. Let's keep this up!

THANK YOU!
LGTM

@supakeen supakeen added this pull request to the merge queue Sep 19, 2025
Merged via the queue into osbuild:main with commit dddc1ad Sep 19, 2025
25 checks passed
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.

4 participants