diff options
author | Tino Reichardt <[email protected]> | 2023-03-15 18:41:05 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-03-15 10:41:05 -0700 |
commit | b7bc334d135189354a39e099a7cb3ab7776a5b60 (patch) | |
tree | 2abc318c8fb97b7520f00cbcddb99f42af7c8766 /tests | |
parent | f55d6ee818763a78328345c5bee9f38d18b852a6 (diff) |
Split functional testings via github action matrix
This commit changes the workflow of the github actions.
We split the workflow into different parts:
1) build zfs modules for Ubuntu 20.04 and 22.04 (~25m)
2) 2x zloop test (~10m) + 2x sanity test (~25m)
3) functional testings in parts 1..5 (each ~1h)
- these could be triggered, when sanity tests are ok
- currently I just start them all in the same time
4) cleanup and create summary
When everything is fine, the full run with all testings
should be done in around 2 hours.
The codeql.yml and checkstyle.yml are not part in this circle.
The testings are also modified a bit:
- report info about CPU and checksum benchmarks
- reset the debugging logs for each test
- when some error occurred, we call dmesg with -c to get
only the log output for the last failed test
- we empty also the dbgsys
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Tino Reichardt <[email protected]>
Closes #14078
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/zfs-tests/callbacks/zfs_dbgmsg.ksh | 3 | ||||
-rwxr-xr-x | tests/zfs-tests/callbacks/zfs_dmesg.ksh | 3 | ||||
-rwxr-xr-x | tests/zfs-tests/callbacks/zfs_mmp.ksh | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/tests/zfs-tests/callbacks/zfs_dbgmsg.ksh b/tests/zfs-tests/callbacks/zfs_dbgmsg.ksh index be001ad9d..114bc5a0c 100755 --- a/tests/zfs-tests/callbacks/zfs_dbgmsg.ksh +++ b/tests/zfs-tests/callbacks/zfs_dbgmsg.ksh @@ -24,6 +24,9 @@ echo "=================================================================" sudo tail -n $lines /proc/spl/kstat/zfs/dbgmsg +# reset dbgmsg +sudo bash -c "echo > /proc/spl/kstat/zfs/dbgmsg" + echo "=================================================================" echo " End of zfs_dbgmsg log" echo "=================================================================" diff --git a/tests/zfs-tests/callbacks/zfs_dmesg.ksh b/tests/zfs-tests/callbacks/zfs_dmesg.ksh index 3d8191de5..9fee4b044 100755 --- a/tests/zfs-tests/callbacks/zfs_dmesg.ksh +++ b/tests/zfs-tests/callbacks/zfs_dmesg.ksh @@ -23,7 +23,8 @@ echo "=================================================================" echo " Tailing last $lines lines of dmesg log" echo "=================================================================" -sudo dmesg | tail -n $lines +# report and reset afterwards +sudo dmesg -c | tail -n $lines echo "=================================================================" echo " End of dmesg log" diff --git a/tests/zfs-tests/callbacks/zfs_mmp.ksh b/tests/zfs-tests/callbacks/zfs_mmp.ksh index 402e0b03f..d57061438 100755 --- a/tests/zfs-tests/callbacks/zfs_mmp.ksh +++ b/tests/zfs-tests/callbacks/zfs_mmp.ksh @@ -30,6 +30,7 @@ for f in /proc/spl/kstat/zfs/*/multihost; do echo "=================================================================" sudo tail -n $lines $f + sudo bash -c "echo > $f" done echo "=================================================================" |