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

Fix unlimited-sized fake device graphs (bsc#1221222) #1375

Merged
merged 2 commits into from
Mar 12, 2024

Conversation

shundhammer
Copy link
Contributor

@shundhammer shundhammer commented Mar 12, 2024

Bugzilla

https://bugzilla.suse.com/show_bug.cgi?id=1221222

Problem

Build failure of yast-storage-ng with the latest SWIG bindings.

Cause

The unit tests use DiskSize::unlimited in the YAML files for many test scenarios for LVs, and that results in a value -1 which clashes with the libstorage function prototype that expects unsigned long long for create_lvm_lv().

Obviously SWIG decides at runtime (!) which C++ function to call, and now the checks appear to be stricter: A -1 worked well until this version; it had obviously converted it to the bit pattern of the expected unsigned type, in this case resulting in 16 EiB - 1. Now that doesn't work anymore.

Fix

Don't use unlimited for LVM LVs in the YAML fake device graphs; that's unrealistic and not possible in real life anyway.

This fix is limited purely to unit test data. There is no code change.

Related PRs

@coveralls
Copy link

coveralls commented Mar 12, 2024

Coverage Status

coverage: 97.81%. remained the same
when pulling e8f9426 on huha-no-unlimited-lvs
into b3e7d0d on master.

Copy link
Member

@aschnell aschnell left a comment

Choose a reason for hiding this comment

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

LGTM

@shundhammer shundhammer merged commit 92516eb into master Mar 12, 2024
13 checks passed
@shundhammer shundhammer deleted the huha-no-unlimited-lvs branch March 12, 2024 14:29
@yast-bot
Copy link

❌ Internal Jenkins job #1149 failed

@shundhammer
Copy link
Contributor Author

Submitted manually to Factory:

https://build.opensuse.org/request/show/1157596

@yast-bot
Copy link

✔️ Internal Jenkins job #1150 successfully finished
✔️ Created OBS submit request #1157604

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