From f7ad2c33a3038151d18b8e7318eb21a8da163101 Mon Sep 17 00:00:00 2001 From: Sandro Bonazzola Date: Fri, 19 Jul 2024 08:59:21 +0200 Subject: [PATCH] automation: drop el8 after centos stream 8 eol Dropping automation on el8 as centos stream 8 reached EOL. Signed-off-by: Sandro Bonazzola --- .github/workflows/check-patch.yml | 69 ---------- .github/workflows/repoclosure-45.yml | 186 +-------------------------- .github/workflows/repoclosure.yml | 85 +----------- 3 files changed, 2 insertions(+), 338 deletions(-) diff --git a/.github/workflows/check-patch.yml b/.github/workflows/check-patch.yml index fa29a94..5c8495a 100644 --- a/.github/workflows/check-patch.yml +++ b/.github/workflows/check-patch.yml @@ -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 diff --git a/.github/workflows/repoclosure-45.yml b/.github/workflows/repoclosure-45.yml index 6aa7b69..1df43e5 100644 --- a/.github/workflows/repoclosure-45.yml +++ b/.github/workflows/repoclosure-45.yml @@ -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 @@ -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: @@ -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: @@ -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 diff --git a/.github/workflows/repoclosure.yml b/.github/workflows/repoclosure.yml index 53ab5c3..417fc37 100644 --- a/.github/workflows/repoclosure.yml +++ b/.github/workflows/repoclosure.yml @@ -12,44 +12,6 @@ on: - cron: '0 6 * * 1' jobs: - copr-ovirt-master-snapshot-el8: - runs-on: ubuntu-latest - container: - image: quay.io/centos/centos:stream8 - - steps: - - name: Enable repositories - run: | - rpm --import https://download.copr.fedorainfracloud.org/results/ovirt/ovirt-master-snapshot/pubkey.gpg - dnf distro-sync -y - dnf --repofrompath=ovirt-master-snapshot,https://download.copr.fedorainfracloud.org/results/ovirt/ovirt-master-snapshot/centos-stream-8-x86_64/ install -y ovirt-release-master - - - 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 Master Snapshot from COPR - run: | - dnf repoclosure --newest --refresh \ - --check copr:copr.fedorainfracloud.org:ovirt:ovirt-master-snapshot \ - --repo appstream \ - --repo baseos \ - --repo extras \ - --repo ovirt-master-centos-opstools-testing \ - --repo ovirt-master-centos-stream-ceph-pacific \ - --repo ovirt-master-centos-stream-gluster10-testing \ - --repo ovirt-master-centos-stream-nfv-openvswitch2-testing \ - --repo ovirt-master-centos-stream-openstack-yoga-testing \ - --repo ovirt-master-centos-stream-ovirt45-testing \ - --repo ovirt-master-copr:copr.fedorainfracloud.org:sac:gluster-ansible \ - --repo ovirt-master-virtio-win-latest \ - --repo powertools - copr-ovirt-master-snapshot-el9: runs-on: ubuntu-latest container: @@ -78,47 +40,6 @@ jobs: --repo ovirt-master-centos-stream-opstools-collectd5-testing \ --repo ovirt-master-centos-stream-ovirt45-testing - - centos-release-ovirt45-el8: - runs-on: ubuntu-latest - container: - image: quay.io/centos/centos:stream8 - - steps: - - name: Enable repositories - run: | - dnf distro-sync -y - dnf --repofrompath=extras-common-testing,https://buildlogs.centos.org/centos/8-stream/extras/x86_64/extras-common/ install -y --nogpgcheck centos-release-ovirt45-testing - dnf config-manager --set-enabled centos-ovirt45-testing - dnf config-manager --set-enabled ovirt-45-upstream-testing - - - 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 CentOS Virtualization SIG - oVirt 45 - testing - run: | - dnf repoclosure --newest --refresh \ - --repo centos-ovirt45 \ - --check centos-ovirt45-testing \ - --repo ovirt-45-upstream \ - --check ovirt-45-upstream-testing \ - --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 - - centos-release-ovirt45-el9: runs-on: ubuntu-latest container: @@ -154,9 +75,7 @@ jobs: name: Report workflow success runs-on: ubuntu-latest needs: - - copr-ovirt-master-snapshot-el8 - copr-ovirt-master-snapshot-el9 - - centos-release-ovirt45-el8 - centos-release-ovirt45-el9 steps: - name: Checkout @@ -177,11 +96,9 @@ jobs: open-issue-on-failure: name: Report workflow failure runs-on: ubuntu-latest - if: ${{ always() && (needs.copr-ovirt-master-snapshot-el8.result=='failure' || needs.centos-release-ovirt45-el8.result=='failure' || needs.copr-ovirt-master-snapshot-el9.result=='failure' || needs.centos-release-ovirt45-el9.result=='failure') }} + if: ${{ always() && (needs.copr-ovirt-master-snapshot-el9.result=='failure' || needs.centos-release-ovirt45-el9.result=='failure') }} needs: - - copr-ovirt-master-snapshot-el8 - copr-ovirt-master-snapshot-el9 - - centos-release-ovirt45-el8 - centos-release-ovirt45-el9 steps: - name: Checkout