Skip to content

Commit 6438d5f

Browse files
committed
CI: run ztest on compressed zpool
When running ztest under the CI a common failure mode is for the underlying filesystem to run out of available free space. Since the storage associated with a GitHub-hosted running is fixed, we instead create a pool and use a compressed ZFS dataset to store the ztest vdev files. This significantly increases the available capacity since the data written by ztest is highly compressible. A compression ratio of over 40:1 is conservatively achieved using the default lz4 compression. Autotrimming is enabled to ensure freed blocks are discarded from the backing cipool vdev file. Lastly, the default zloop run time is increased to an hour or up to 12 iterations, and each individual ztest run is increased to 5 minutes. Signed-off-by: Brian Behlendorf <[email protected]>
1 parent dee62e0 commit 6438d5f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/zloop.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@ jobs:
4040
sudo modprobe zfs
4141
- name: Tests
4242
run: |
43-
sudo mkdir -p $TEST_DIR
44-
# run for 10 minutes or at most 6 iterations for a maximum runner
45-
# time of 60 minutes.
46-
sudo /usr/share/zfs/zloop.sh -t 600 -I 6 -l -m 1 -- -T 120 -P 60
43+
truncate -s 1T /var/tmp/vdev
44+
sudo zpool create cipool -m $TEST_DIR -O compression=on -o autotrim=on /var/tmp/vdev
45+
sudo /usr/share/zfs/zloop.sh -t 3600 -I 12 -l -m 1 -- -T 300 -P 60
4746
- name: Prepare artifacts
4847
if: failure()
4948
run: |

0 commit comments

Comments
 (0)