1 name: zfs-tests-functional
8 tests-functional-ubuntu:
13 runs-on: ubuntu-${{ matrix.os }}
15 - uses: actions/checkout@v2
17 ref: ${{ github.event.pull_request.head.sha }}
18 - name: Reclaim disk space
20 ${{ github.workspace }}/.github/workflows/scripts/reclaim_disk_space.sh
21 - name: Install dependencies
24 xargs --arg-file=${{ github.workspace }}/.github/workflows/build-dependencies.txt sudo apt-get install -qq
31 ./configure --enable-debug --enable-debuginfo --enable-asan --enable-ubsan --with-config=dist
34 make -j$(nproc) --no-print-directory --silent pkg-utils pkg-kmod
38 # Update order of directories to search for modules, otherwise
39 # Ubuntu will load kernel-shipped ones.
40 sudo sed -i.bak 's/updates/extra updates/' /etc/depmod.d/ubuntu.conf
43 # Workaround for cloud-init bug
44 # see https://github.com/openzfs/zfs/issues/12644
45 FILE=/lib/udev/rules.d/10-cloud-init-hook-hotplug.rules
46 if [ -r "${FILE}" ]; then
47 HASH=$(md5sum "${FILE}" | awk '{ print $1 }')
48 if [ "${HASH}" = "121ff0ef1936cd2ef65aec0458a35772" ]; then
49 # Just shove a zd* exclusion right above the hotplug hook...
50 sudo sed -i -e s/'LABEL="cloudinit_hook"'/'KERNEL=="zd*", GOTO="cloudinit_end"\n&'/ "${FILE}"
51 sudo udevadm control --reload-rules
54 - name: Clear the kernel ring buffer
56 sudo dmesg -c >/var/tmp/dmesg-prerun
57 - name: Report disk space
63 /usr/share/zfs/zfs-tests.sh -vKR -s 3G | scripts/zfs-tests-color.sh
66 - name: Prepare artifacts
69 RESULTS_PATH=$(readlink -f /var/tmp/test_results/current)
70 sudo dmesg > $RESULTS_PATH/dmesg
71 sudo cp /var/log/syslog /var/tmp/dmesg-prerun $RESULTS_PATH/
72 sudo chmod +r $RESULTS_PATH/*
73 # Replace ':' in dir names, actions/upload-artifact doesn't support it
74 for f in $(find /var/tmp/test_results -name '*:*'); do mv "$f" "${f//:/__}"; done
75 - uses: actions/upload-artifact@v2
78 name: Test logs Ubuntu-${{ matrix.os }}
80 /var/tmp/test_results/*
81 !/var/tmp/test_results/current
82 if-no-files-found: ignore