Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Remove Fedora 41 and 42 from matrix on sssd-2-8 #7570

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-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
Expand Down
41 changes: 2 additions & 39 deletions contrib/ci/get-matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
Loading