diff --git a/.github/workflows/copr_build.yml b/.github/workflows/copr_build.yml index b4bee2a3ce0..b48d63138c2 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-41-x86_64|fedora-42-x86_64|fedora-rawhide-x86_64|centos-stream-8-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 7ff5f1d8a8b..fae97db9794 100755 --- a/contrib/ci/get-matrix.py +++ b/contrib/ci/get-matrix.py @@ -12,51 +12,14 @@ import argparse 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(): - 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 - - -def get_centos_matrix(): - return ['centos-8', 'centos-9'] - - -def get_other_matrix(): - return ['debian-latest'] - - if __name__ == "__main__": parser = argparse.ArgumentParser(description='Get GitHub actions CI matrix') parser.add_argument('--action', action='store_true', help='It is run in GitHub actions mode') args = parser.parse_args() - fedora = sorted(get_fedora_matrix()) - centos = sorted(get_centos_matrix()) - other = sorted(get_other_matrix()) - matrix = { - 'intgcheck': [*fedora, *centos, *other], - 'multihost': [*fedora, *centos], + 'intgcheck': ['centos-9', 'debian-latest'], + 'multihost': ['centos-9'], } print(json.dumps(matrix, indent=2))