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

buildconfig: disable tests for undecoded keys for now #656

Merged
merged 3 commits into from
Sep 25, 2024

Conversation

mvo5
Copy link
Collaborator

@mvo5 mvo5 commented Sep 24, 2024

This commit partially reverts PT#549 to unblock filesystem
customizations in bib.

This is a short term fix and we should revert and do something
smarter like osbuild/images#951 or see
if we can do better in the toml unmarshaling. But to unblock
toml customizations this is a (IMHO) reasonable first step.

Closes: #655

This commit adds a failing regression test for the following
customization:
```toml
[[customizations.filesystem]]
mountpoint = "/"
minsize = 1000
```
which yields an error now:
```
2024/09/24 09:08:34 error: cannot build manifest: cannot read config: cannot decode "/config.toml": unknown keys found: [customizations.filesystem.mountpoint customizations.filesystem.minsize customizations.filesystem.mountpoint customizations.filesystem.minsize]
```
This adds another layer of defense for issue#655, i.e. have a
hand craftet toml that integration tests with bib as a smoke
test.
@mvo5 mvo5 requested a review from ondrejbudai September 24, 2024 14:01
@mvo5
Copy link
Collaborator Author

mvo5 commented Sep 24, 2024

An alterative upstream fix: BurntSushi/toml#426 (might be too naive, let's hear the maintainer :)

This commit partially reverts PT#549 to unblock filesystem
customizations in bib.

This is a short term fix and we should revert and do something
smarter like osbuild/images#951 or see
if we can do better in the toml unmarshaling. But to unblock
toml customizations this is a (IMHO) reasonable first step.

Closes: osbuild#655
@mvo5 mvo5 force-pushed the short-term-fix-issue-655 branch from 1c728d7 to 4701613 Compare September 25, 2024 09:22
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.

Yeah, this is reasonable, thanks!

@ondrejbudai ondrejbudai added this pull request to the merge queue Sep 25, 2024
Merged via the queue into osbuild:main with commit f2ecdec Sep 25, 2024
8 of 10 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.

bib failed to build out config.toml with customizations.filesystem.mountpoint
2 participants