Skip to content

Commit

Permalink
automation: drop el8 after centos stream 8 eol
Browse files Browse the repository at this point in the history
Dropping automation on el8 as centos stream 8 reached EOL.

Signed-off-by: Sandro Bonazzola <sandro.bonazzola@gmail.com>
  • Loading branch information
sandrobonazzola committed Jul 19, 2024
1 parent 443caad commit f7ad2c3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 338 deletions.
69 changes: 0 additions & 69 deletions .github/workflows/check-patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,75 +10,6 @@ on:
pull_request:

jobs:
build-el8:

runs-on: ubuntu-latest
container:
image: quay.io/centos/centos:stream8

steps:
- name: Prepare env
run: |
echo ${{ github.base_ref }}
echo ${{ github.ref }}
mkdir -p ${PWD}/tmp.repos/BUILD
dnf distro-sync -y
dnf install -y --setopt=tsflags=nodocs autoconf automake gettext-devel git systemd make git rpm-build
- uses: ovirt/checkout-action@main
with:
fetch-depth: 0

- name: Mark git repo as safe
run: git config --global --add safe.directory $(pwd)

- name: Autoreconf
run: autoreconf -ivf

- name: Configure
run: ./configure

- name: Run distcheck
run: make -j distcheck

- name: Build RPM
run: |
mkdir -p ${PWD}/tmp.repos/SOURCES
cp ovirt-release*.tar.gz ${PWD}/tmp.repos/SOURCES/
SUFFIX=$(date -u +%Y%m%d%H%M%S).git$(git rev-parse --short HEAD)
rpmbuild -D "_topdir ${PWD}/tmp.repos" -D "release_suffix .${SUFFIX}" -ba ovirt-release-master.spec
rpmbuild -D "_topdir ${PWD}/tmp.repos" -D "release_suffix .${SUFFIX}" -ba ovirt-release-host-node.spec
- name: Collect artifacts
run: |
mkdir -p exported-artifacts
find tmp.repos -iname \*rpm -exec mv "{}" exported-artifacts/ \;
mv ./*tar.gz exported-artifacts/
- name: Install master built rpm
# On master the release rpm is named ovirt-release-master
# The build produce also other packages like ovirt-release-host-node
# which require the repos to be enabled by the ovirt-release-master package
# in order to be installable.
run: |
dnf install -y exported-artifacts/ovirt-release-master-4*noarch.rpm
- name: Test project installation
run: |
dnf module enable -y javapackages-tools:201801
dnf module enable -y maven:3.5
dnf module enable -y pki-deps:10.6
dnf module enable -y postgresql:12
dnf module enable -y mod_auth_openidc:2.3
dnf --downloadonly install -y exported-artifacts/*noarch.rpm exported-artifacts/*x86_64.rpm
dnf --downloadonly install -y ovirt-engine ovirt-engine-setup-plugin-websocket-proxy
dnf --downloadonly install -y ovirt-engine-appliance
- name: Upload artifacts
uses: ovirt/upload-rpms-action@main
with:
directory: exported-artifacts

build-el9:
# Building only on master as we don't support el9 in 4.4.
runs-on: ubuntu-latest
Expand Down
186 changes: 1 addition & 185 deletions .github/workflows/repoclosure-45.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ on:
- cron: '0 6 * * 1'

env:
EXTRA_REPOS_EL8: >
--repo appstream
--repo baseos
--repo extras
--repo powertools
--repo centos-ceph-pacific
--repo centos-nfv-openvswitch
--repo centos-opstools
--repo centos-gluster10
--repo ovirt-45-centos-stream-openstack-yoga
EXTRA_REPOS_EL9: >
--repo appstream
--repo baseos
Expand All @@ -41,170 +30,6 @@ env:
--pkg ovirt-engine-appliance
jobs:
centos-release-ovirt45-stream8:
runs-on: ubuntu-latest
container:
image: quay.io/centos/centos:stream8

steps:
- name: Enable repositories
run: |
dnf distro-sync -y
dnf install -y centos-release-ovirt45
- name: Enable required modules
run: |
dnf module enable -y javapackages-tools:201801
dnf module enable -y maven:3.5
dnf module enable -y pki-deps:10.6
dnf module enable -y postgresql:12
dnf module enable -y mod_auth_openidc:2.3
dnf module enable -y ruby:3.0
- name: Run repoclosure on oVirt 4.5 CBS released content
run: |
dnf repoclosure --newest --refresh \
--check centos-ovirt45 \
--repo ovirt-45-upstream \
$EXTRA_REPOS_EL8
- name: Run repoclosure on oVirt 4.5 resource.ovirt.org content
# We need to check only packages which are stored exclusively on resources.ovirt.org and omit packages,
# which are newly built on CBS due to bug in repoclosure around having different package versions on multiple
# repositories
run: |
dnf repoclosure --newest --refresh \
--check ovirt-45-upstream \
--repo centos-ovirt45 \
$EXTRA_REPOS_EL8 \
$NON_CBS_PACKAGES
centos-release-ovirt45-rocky-linux-8:
runs-on: ubuntu-latest
container:
image: rockylinux:8
steps:
- name: Enable repositories
run: |
# On Rocky, extras contains broken centos-release-nfv package
dnf install -y dnf-plugins-core
dnf config-manager --set-disabled extras
cat >/etc/yum.repos.d/CentOS-Stream-Extras.repo <<'EOF'
[cs8-extras]
name=CentOS Stream $releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=8-stream&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/8-stream/extras/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official
EOF
cat >/etc/yum.repos.d/CentOS-Stream-Extras-common.repo <<'EOF'
[cs8-extras-common]
name=CentOS Stream $releasever - Extras common packages
mirrorlist=http://mirrorlist.centos.org/?release=8-stream&arch=$basearch&repo=extras-extras-common
#baseurl=http://mirror.centos.org/$contentdir/8-stream/extras/$basearch/extras-common/
gpgcheck=1
enabled=1
gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Extras
EOF
echo "8-stream" > /etc/yum/vars/stream
dnf distro-sync -y
dnf install -y centos-release-ovirt45
- name: Enable required modules
run: |
dnf module enable -y javapackages-tools:201801
dnf module enable -y maven:3.5
dnf module enable -y pki-deps:10.6
dnf module enable -y postgresql:12
dnf module enable -y mod_auth_openidc:2.3
dnf module enable -y ruby:3.0
dnf module enable -y jaxb:4
- name: Run repoclosure on oVirt 4.5 CBS released content
run: |
dnf repoclosure --newest --refresh \
--check centos-ovirt45 \
--repo ovirt-45-upstream \
$EXTRA_REPOS_EL8
- name: Run repoclosure on oVirt 4.5 resource.ovirt.org content
# We need to check only packages which are stored exclusively on resources.ovirt.org and omit packages,
# which are newly built on CBS due to bug in repoclosure around having different package versions on multiple
# repositories
run: |
dnf repoclosure --newest --refresh \
--check ovirt-45-upstream \
--repo centos-ovirt45 \
$EXTRA_REPOS_EL8 \
$NON_CBS_PACKAGES
centos-release-ovirt45-alma-linux-8:
runs-on: ubuntu-latest
container:
image: almalinux:8
steps:
- name: Enable repositories
run: |
cat >/etc/yum.repos.d/CentOS-Stream-Extras.repo <<'EOF'
[cs8-extras]
name=CentOS Stream $releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=8-stream&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/8-stream/extras/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official
EOF
cat >/etc/yum.repos.d/CentOS-Stream-Extras-common.repo <<'EOF'
[cs8-extras-common]
name=CentOS Stream $releasever - Extras common packages
mirrorlist=http://mirrorlist.centos.org/?release=8-stream&arch=$basearch&repo=extras-extras-common
#baseurl=http://mirror.centos.org/$contentdir/8-stream/extras/$basearch/extras-common/
gpgcheck=1
enabled=1
gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Extras
EOF
echo "8-stream" > /etc/yum/vars/stream
dnf distro-sync -y
dnf install -y centos-release-ovirt45
- name: Enable required modules
run: |
dnf module enable -y javapackages-tools:201801
dnf module enable -y maven:3.5
dnf module enable -y pki-deps:10.6
dnf module enable -y postgresql:12
dnf module enable -y mod_auth_openidc:2.3
dnf module enable -y ruby:3.0
dnf module enable -y jaxb:4
- name: Run repoclosure on oVirt 4.5 CBS released content
run: |
dnf repoclosure --newest --refresh \
--check centos-ovirt45 \
--repo ovirt-45-upstream \
$EXTRA_REPOS_EL8
- name: Run repoclosure on oVirt 4.5 resource.ovirt.org content
# We need to check only packages which are stored exclusively on resources.ovirt.org and omit packages,
# which are newly built on CBS due to bug in repoclosure around having different package versions on multiple
# repositories
run: |
dnf repoclosure --newest --refresh \
--check ovirt-45-upstream \
--repo centos-ovirt45 \
$EXTRA_REPOS_EL8 \
$NON_CBS_PACKAGES
centos-release-ovirt45-stream9:
runs-on: ubuntu-latest
container:
Expand All @@ -228,9 +53,6 @@ jobs:
name: Report workflow success
runs-on: ubuntu-latest
needs:
- centos-release-ovirt45-stream8
- centos-release-ovirt45-rocky-linux-8
- centos-release-ovirt45-alma-linux-8
- centos-release-ovirt45-stream9

steps:
Expand All @@ -253,15 +75,9 @@ jobs:
name: Report workflow failure
runs-on: ubuntu-latest
if: ${{ always() && (
needs.centos-release-ovirt45-stream8.result=='failure' ||
needs.centos-release-ovirt45-stream9.result=='failure' ||
needs.centos-release-ovirt45-rocky-linux-8.result=='failure' ||
needs.centos-release-ovirt45-alma-linux-8=='failure'
needs.centos-release-ovirt45-stream9.result=='failure'
) }}
needs:
- centos-release-ovirt45-stream8
- centos-release-ovirt45-rocky-linux-8
- centos-release-ovirt45-alma-linux-8
- centos-release-ovirt45-stream9
steps:
- name: Checkout
Expand Down
Loading

0 comments on commit f7ad2c3

Please sign in to comment.