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

test: fix integration tests relying on specific byte amounts #322

Merged
merged 1 commit into from
Nov 11, 2022

Conversation

apricote
Copy link
Member

The integration tests for the volume resize feature rely on specific byte amounts that a ext4 filesystem on a fake block device has. The specific amounts recently changed, probably through a new version of mkfs.ext4.

This amount equals the values from our GitHub Actions pipeline, as well as my local machine.

The amounts might need to be changed again in the future if the tests start failing again, we might consider removing tests for the specific amounts, and just check that the resized number is larger than the initial if this happens often.

The integration tests for the volume resize feature rely on specific byte
amounts that a ext4 filesystem on a fake block device has. The specific
amounts recently changed, probably through a new version of mkfs.ext4.

This amount equals the values from our GitHub Actions pipeline, as well
as my local machine.

The amounts might need to be changed again in the future if the tests start
failing again, we might consider removing tests for the specific amounts,
and just check that the resized number is larger than the initial if this
happens often.
@apricote apricote added the bug Something isn't working label Nov 11, 2022
@apricote apricote self-assigned this Nov 11, 2022
@LKaemmerling LKaemmerling merged commit 44b31b6 into main Nov 11, 2022
@LKaemmerling LKaemmerling deleted the fix-integration-tests branch November 11, 2022 18:24
@choffmeister
Copy link
Contributor

choffmeister commented Nov 12, 2022

@apricote Interesting. Didn't think of that back then when I wrote that code. Another idea to relax the test is to just look at the ratio between new and old size, round it and expect it to equal 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants