From 8324e92d82d385eca4f1f5e2a9cb09a97a3e86d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20V=C3=A1vra?= Date: Mon, 9 Sep 2024 11:58:21 +0200 Subject: [PATCH] ci: Exclude fedora-38, fedora-41, fedora-42, fedora-rawhide, c8s and c10s from build of sssd-2-9 --- .github/workflows/copr_build.yml | 2 +- contrib/ci/get-matrix.py | 27 +++------------------------ 2 files changed, 4 insertions(+), 25 deletions(-) diff --git a/.github/workflows/copr_build.yml b/.github/workflows/copr_build.yml index e0b5ef35e4e..93dcf4b7d55 100644 --- a/.github/workflows/copr_build.yml +++ b/.github/workflows/copr_build.yml @@ -70,7 +70,7 @@ jobs: with: coprcfg: ${{ steps.copr.outputs.coprcfg }} filter: "fedora-.+-x86_64|centos-stream-.*-x86_64" - exclude: "fedora-eln-.+" + exclude: "fedora-eln-.+|fedora-38-x86_64|fedora-41-x86_64|fedora-42-x86_64|fedora-rawhide-x86_64|centos-stream-10-x86_64" - name: Create copr project uses: next-actions/copr/create-project@master diff --git a/contrib/ci/get-matrix.py b/contrib/ci/get-matrix.py index a5ff57813bf..959f282f417 100755 --- a/contrib/ci/get-matrix.py +++ b/contrib/ci/get-matrix.py @@ -13,34 +13,13 @@ import os -def get_fedora_releases(type, exclude=[]): - r = requests.get(f'https://bodhi.fedoraproject.org/releases?state={type}') - r.raise_for_status() - - versions = [x['version'] for x in r.json()['releases'] if x['id_prefix'] == 'FEDORA'] - versions = list(set(versions) - set(exclude)) - versions.sort() - - return versions - - def get_fedora_matrix(): - # Current fedora devel (41, 42) have sssd 2.10 - # so it makes no sense to try to install sssd 2.9 there. - fedora_stable = get_fedora_releases('current') - # fedora_devel = get_fedora_releases('pending', exclude=['eln']) - # fedora_frozen = get_fedora_releases('frozen', exclude=['eln']) - - matrix = [] - matrix.extend(['fedora-{0}'.format(x) for x in fedora_stable]) - # matrix.extend(['fedora-{0}'.format(x) for x in fedora_devel]) - # matrix.extend(['fedora-{0}'.format(x) for x in fedora_frozen]) - - return matrix + # Fedora 41 and up are using 2.10, Fedora 38 and older are EOL + return ['fedora-39', 'fedora-40'] def get_centos_matrix(): - return ['centos-8', 'centos-9'] + return ['centos-9'] def get_other_matrix():