mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 18:11:00 +03:00
b7bc334d13
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 <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de> Closes #14078
39 lines
1.1 KiB
Bash
Executable File
39 lines
1.1 KiB
Bash
Executable File
#!/bin/ksh -p
|
|
|
|
#
|
|
# This file and its contents are supplied under the terms of the
|
|
# Common Development and Distribution License ("CDDL"), version 1.0.
|
|
# You may only use this file in accordance with the terms of version
|
|
# 1.0 of the CDDL.
|
|
#
|
|
# A full copy of the text of the CDDL should have accompanied this
|
|
# source. A copy of the CDDL is also available via the Internet at
|
|
# http://www.illumos.org/license/CDDL.
|
|
#
|
|
|
|
#
|
|
# Copyright (c) 2017 by Lawrence Livermore National Security.
|
|
# All rights reserved.
|
|
#
|
|
|
|
# $1: number of lines to output (default: 40)
|
|
typeset lines=${1:-40}
|
|
typeset history=$(</sys/module/zfs/parameters/zfs_multihost_history)
|
|
|
|
if [ $history -eq 0 ]; then
|
|
exit
|
|
fi
|
|
|
|
for f in /proc/spl/kstat/zfs/*/multihost; do
|
|
echo "================================================================="
|
|
echo " Last $lines lines of $f"
|
|
echo "================================================================="
|
|
|
|
sudo tail -n $lines $f
|
|
sudo bash -c "echo > $f"
|
|
done
|
|
|
|
echo "================================================================="
|
|
echo " End of zfs multihost log"
|
|
echo "================================================================="
|