Skip to content

Commit

Permalink
ci: Exclude fedora-38, fedora-41, fedora-42, fedora-rawhide, c8s and …
Browse files Browse the repository at this point in the history
…c10s from build of sssd-2-9
  • Loading branch information
jakub-vavra-cz committed Oct 15, 2024
1 parent f12b15c commit 8324e92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/copr_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
27 changes: 3 additions & 24 deletions contrib/ci/get-matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 8324e92

Please sign in to comment.