Skip to content

install/aleph: skip serializing optional fields if None - #2591

Merged
cgwalters merged 1 commit into
bootc-dev:mainfrom
Rolv-Apneseth:no-null-aleph
Oct 28, 2026
Merged

cgwalters merged 1 commit into
bootc-dev:mainfrom
Rolv-Apneseth:no-null-aleph

Conversation

@Rolv-Apneseth

Copy link
Copy Markdown
Contributor

This avoids writing out fields with null values. See coreos/bootupd#1166.

@github-actions github-actions Bot added the area/install Issues related to `bootc install` label Oct 27, 2026
@bootc-bot
bootc-bot Bot requested a review from henrywang October 27, 2026 09:38
This avoids writing out fields with `null` values. See
coreos/bootupd#1166.

Signed-off-by: Rolv Apneseth <rolv.apneseth@gmail.com>

@Johan-Liebert1 Johan-Liebert1 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.

Personally not a fan of this as ime it ends up being confusing that sometimes we'll have version and sometimes we won't. I think the actual fix should be in bootupd marking version as Option<String>

@Rolv-Apneseth

Copy link
Copy Markdown
Contributor Author

Personally not a fan of this as ime it ends up being confusing that sometimes we'll have version and sometimes we won't. I think the actual fix should be in bootupd marking version as Option<String>

I don't have a strong opinion, but that is a common pattern with JSON. I only made this PR due to the conversation in coreos/bootupd#1166, since @cgwalters agreed to the "writer" change. This indeed makes no difference to the actual issue in bootupd.

@Rolv-Apneseth

Copy link
Copy Markdown
Contributor Author

@Rolv-Apneseth

Rolv-Apneseth commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Not too sure what would cause the CI failure on test-integration (centos-9, ostree, xfs, grub, bls, unsealed):

    content: Finalizing filesystem root
    content: Unmounting filesystems
    content: Installation complete!
    content: umount: /var/mnt/composefs-native: target is busy.
    content: Connection to localhost closed.
failures.yaml (/var/tmp/tmt/bootc-tmt-1a7u9jws-tmt-plans-integration-plan-60-install-composefs-native/tmt/plans/integration/plan-60-install-composefs-native/execute/data/guest/default-0/tmt/tests/tests/test-60-install-composefs-native-1/failures.yaml)

@jeckersb

Copy link
Copy Markdown
Collaborator

Not too sure what would cause the CI failure on test-integration (centos-9, ostree, xfs, grub, bls, unsealed):

It flakes sometimes, not sure if it's a code race or some sort of infra issue, but I re-ran it and it should hopefully work on retry 🤞

@Rolv-Apneseth

Copy link
Copy Markdown
Contributor Author

Thanks @jeckersb

@cgwalters
cgwalters merged commit d0a449a into bootc-dev:main Oct 28, 2026
94 of 97 checks passed
@Rolv-Apneseth
Rolv-Apneseth deleted the no-null-aleph branch October 28, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/install Issues related to `bootc install`

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants