mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-01-25 10:12:13 +03:00
CI: zfs-test-packages: Add in new repos
Test install from our new repos: zfs-latest, zfs-legacy, zfs-2.3, zfs-2.2, from the zfs-test-packages workflow. This on-demand workflow is use to verify that the zfs RPMs in the repos are correct. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes #17956
This commit is contained in:
parent
d12eb47d96
commit
cdbe788a39
18
.github/workflows/scripts/qemu-test-repo-vm.sh
vendored
18
.github/workflows/scripts/qemu-test-repo-vm.sh
vendored
@ -42,7 +42,10 @@ function test_install {
|
|||||||
sudo sed -i "s;baseurl=http://download.zfsonlinux.org;baseurl=$host;g" /etc/yum.repos.d/zfs.repo
|
sudo sed -i "s;baseurl=http://download.zfsonlinux.org;baseurl=$host;g" /etc/yum.repos.d/zfs.repo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sudo dnf -y install $args zfs zfs-test
|
if ! sudo dnf -y install $args zfs zfs-test ; then
|
||||||
|
echo "$repo ${package}...[FAILED] $baseurl" >> $SUMMARY
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
# Load modules and create a simple pool as a sanity test.
|
# Load modules and create a simple pool as a sanity test.
|
||||||
sudo /usr/share/zfs/zfs.sh -r
|
sudo /usr/share/zfs/zfs.sh -r
|
||||||
@ -70,16 +73,19 @@ almalinux*)
|
|||||||
name=$(curl -Ls $url | grep 'dnf install' | grep -Eo 'zfs-release-[0-9]+-[0-9]+')
|
name=$(curl -Ls $url | grep 'dnf install' | grep -Eo 'zfs-release-[0-9]+-[0-9]+')
|
||||||
sudo dnf -y install https://zfsonlinux.org/epel/$name$(rpm --eval "%{dist}").noarch.rpm 2>&1
|
sudo dnf -y install https://zfsonlinux.org/epel/$name$(rpm --eval "%{dist}").noarch.rpm 2>&1
|
||||||
sudo rpm -qi zfs-release
|
sudo rpm -qi zfs-release
|
||||||
test_install zfs $ALTHOST
|
for i in zfs zfs-kmod zfs-testing zfs-testing-kmod zfs-latest \
|
||||||
test_install zfs-kmod $ALTHOST
|
zfs-latest-kmod zfs-legacy zfs-legacy-kmod zfs-2.2 \
|
||||||
test_install zfs-testing $ALTHOST
|
zfs-2.2-kmod zfs-2.3 zfs-2.3-kmod ; do
|
||||||
test_install zfs-testing-kmod $ALTHOST
|
test_install $i $ALTHOST
|
||||||
|
done
|
||||||
;;
|
;;
|
||||||
fedora*)
|
fedora*)
|
||||||
url='https://raw.githubusercontent.com/openzfs/openzfs-docs/refs/heads/master/docs/Getting%20Started/Fedora/index.rst'
|
url='https://raw.githubusercontent.com/openzfs/openzfs-docs/refs/heads/master/docs/Getting%20Started/Fedora/index.rst'
|
||||||
name=$(curl -Ls $url | grep 'dnf install' | grep -Eo 'zfs-release-[0-9]+-[0-9]+')
|
name=$(curl -Ls $url | grep 'dnf install' | grep -Eo 'zfs-release-[0-9]+-[0-9]+')
|
||||||
sudo dnf -y install -y https://zfsonlinux.org/fedora/$name$(rpm --eval "%{dist}").noarch.rpm
|
sudo dnf -y install -y https://zfsonlinux.org/fedora/$name$(rpm --eval "%{dist}").noarch.rpm
|
||||||
test_install zfs $ALTHOST
|
for i in zfs zfs-latest zfs-legacy zfs-2.2 zfs-2.3 ; do
|
||||||
|
test_install $i $ALTHOST
|
||||||
|
done
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
echo "##[endgroup]"
|
echo "##[endgroup]"
|
||||||
|
|||||||
2
.github/workflows/zfs-qemu-packages.yml
vendored
2
.github/workflows/zfs-qemu-packages.yml
vendored
@ -73,7 +73,7 @@ jobs:
|
|||||||
.github/workflows/scripts/qemu-3-deps.sh ${{ matrix.os }}
|
.github/workflows/scripts/qemu-3-deps.sh ${{ matrix.os }}
|
||||||
|
|
||||||
- name: Build modules or Test repo
|
- name: Build modules or Test repo
|
||||||
timeout-minutes: 30
|
timeout-minutes: 60
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
if [ "${{ github.event.inputs.test_type }}" == "Test repo" ] ; then
|
if [ "${{ github.event.inputs.test_type }}" == "Test repo" ] ; then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user