Skip to content

Commit 3bb41bd

Browse files
MaisenbacherDigaw
authored andcommitted
CI: add nightly blktests
This introduces blktests which require nvme-cli to the nightly tests. Signed-off-by: Dennis Maisenbacher <[email protected]>
1 parent 34944f2 commit 3bb41bd

File tree

1 file changed

+50
-1
lines changed

1 file changed

+50
-1
lines changed

.github/workflows/run-nightly-tests.yml

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,56 @@ jobs:
1616
repository: "linux-blktests/blktests-ci"
1717
#We don't have to build the kernel here, as we have a cron job running on
1818
#the k8s cluster that builds the linus-master target nightly.
19-
- name: Run in VM
19+
- name: Run blktests in VM
20+
uses: ./.github/actions/kubevirt-action
21+
with:
22+
kernel_version: linus-master
23+
vm_artifact_upload_dir: blktests/results/
24+
run_cmds: |
25+
set -e
26+
set -x
27+
uname -a
28+
29+
sudo dnf install -y gcc clang make util-linux llvm gawk fio udev \
30+
kmod coreutils g++ gzip e2fsprogs xfsprogs f2fs-tools btrfs-progs \
31+
device-mapper-multipath blktrace kernel-headers liburing \
32+
liburing-devel nbd device-mapper ktls-utils dosfstools \
33+
bc libnl3-cli cryptsetup sg3_utils pciutils unzip jq git wget \
34+
meson json-c-devel openssl-devel keyutils-libs-devel dbus-devel \
35+
swig xz-devel libcurl-devel curl libarchive libarchive-devel json-c
36+
37+
# mdadm has a buffer overflow in v4.3 and was fixed with this commit:
38+
# https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=7f960c3bd050e76f8bf0a8a0c8fbdcbaa565fc78
39+
# The Fedora packages ship v4.3.
40+
# We are now compiling and installing mdadm from source with the most
41+
# recent known good commit. The v4.4 release does not compile.
42+
43+
git clone https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git
44+
cd mdadm
45+
git checkout d764c4829947923142a83251296d04edaee7d2f7
46+
make -j$(nproc)
47+
sudo make install
48+
cd -
49+
50+
git clone https://github.com/${{ github.repository }} nvme-cli
51+
cd nvme-cli
52+
scripts/build.sh -b release -c gcc
53+
sudo meson install -C .build-ci
54+
sudo ldconfig /usr/local/lib64
55+
56+
cd -
57+
git clone https://github.com/linux-blktests/blktests.git blktests
58+
59+
cd blktests
60+
make
61+
62+
# Run blktests nvme and md group
63+
cat > config << EF
64+
TEST_DEVS=(${BDEV0})
65+
NVMET_TRTYPES="loop rdma tcp"
66+
EF
67+
sudo ./check nvme md
68+
- name: Run nvme-cli tests in VM
2069
uses: ./.github/actions/kubevirt-action
2170
with:
2271
kernel_version: linus-master

0 commit comments

Comments
 (0)