Skip to content

Conversation

@vojtechtrefny
Copy link
Member

The biggest change is using some extra pbkdf parameters when creating LUKS format to speedup the crypto tests and for other tests making sure we don't create more disks than needed.

On my machine on master the entire test suite currently takes about 2000 seconds, with these changes it's around 1400 seconds so 10 minutes less.

Only two test cases for the crypto plugin need two disks, we don't
need to create two disks for all test cases.
Creating a LUKS format can be very slow so merging some of the
similar test cases to one can speed up the tests significantly.
Some PBKDF parameters are valid for LUKS1 as well, we just cannot
pass the extra parameters directly to crypt_format with LUKS1.
For tests cases like resize or status we can create LUKS with
pbkdf2 and minimal iterations to speed up the tests significantly.
Two disks are needed just for a single btrfs multidevice test case
Most of the test cases don't need the spare so lets just use two
disks for most of the tests.
No need to create the array three times just to test different
ways to activate it.
No need to wait for resync with RAID0 and it doesn't change
anything for this test case.
Two disks are needed just for one partition table test case.
@vojtechtrefny vojtechtrefny force-pushed the master_libblockdev-test-speedup branch from 68fab24 to 7eb0832 Compare August 13, 2025 13:10
Mostly cosmetic stuff (indentation, unused variables...) but it
also found few real issues like two test cases with the same name
(so one of them wouldn't be executed).
Copy link
Member

@tbzatek tbzatek left a comment

Choose a reason for hiding this comment

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

Nice cleanup!

@vojtechtrefny vojtechtrefny merged commit 4a213b7 into storaged-project:master Aug 15, 2025
42 of 47 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.

2 participants