7 Commits

Author SHA1 Message Date
joshjms
e3a8d9d98f refactor: migrate bench command to cobra
Signed-off-by: joshjms <joshjms1607@gmail.com>
2025-07-31 00:37:32 +08:00
Mustafa Elbehery
55e2494a55 chore(CI): add goimports to linter
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
2025-06-15 21:51:36 +02:00
Mustafa Elbehery
bf4a727b92 fix QF1004, QF1011, ST1006, ST1016 and ST1023 issues
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
Co-authored-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-05-19 23:25:26 +02:00
Thomas Jungblut
c27eedcf80 Add basic XFS powerfailure tests
This also introduces mkfs options, in case we need to accomodate for
non-default parameters here in the future.

Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2024-03-13 10:18:52 +01:00
Wei Fu
49eb212fa8 tests/robustness: switch to kill if no panic after 10sec
If file doesn't grow in 10 sec, bbolt won't trigger the following
errors:

* lackOfDiskSpace
* mapError
* resizeFileError
* unmapError

We should switch to kill instead of waiting for panic. In order to
trigger these errors, we should increase value size to 512.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-01-04 16:17:29 +08:00
Wei Fu
4c3a80b2c0 tests: Update TestRestartFromPowerFailure
Update case with a combination of EXT4 filesystem's commit setting and
unexpected exit event. That EXT4 filesystem's commit is to sync all its data
and metadata every seconds. The kernel can help us sync even if that
process has been killed. With different commit setting, we can simulate
that case that kernel syncs half part of dirty pages before power
failure. And for unexpected exit event, we can kill that process
randomly or panic at failpoint instead of fixed code path.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-01-02 21:29:46 +08:00
Wei Fu
300e72ab8a tests/robustness: init with powerfailure case
Add `Robustness Test` pipeline for robustness test cases.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-12-08 09:48:57 +08:00