Skip to content

[autobackport: sssd-2-9-4] CI: don't specify 'push:'/'pull_request:' branches#8973

Open
sssd-bot wants to merge 2 commits into
SSSD:sssd-2-9-4from
sssd-bot:SSSD-sssd-backport-pr8954-to-sssd-2-9-4
Open

[autobackport: sssd-2-9-4] CI: don't specify 'push:'/'pull_request:' branches#8973
sssd-bot wants to merge 2 commits into
SSSD:sssd-2-9-4from
sssd-bot:SSSD-sssd-backport-pr8954-to-sssd-2-9-4

Conversation

@sssd-bot

Copy link
Copy Markdown
Contributor

This is an automatic backport of PR#8954 CI: don't specify 'push:'/'pull_request:' branches to branch sssd-2-9-4, created by @alexey-tikhonov.

Caution

@alexey-tikhonov The patches did not apply cleanly. It is necessary to resolve conflicts before merging this pull request. Commits that introduced conflict are marked with CONFLICT!.

You can push changes to this pull request

git remote add sssd-bot git@github.com:sssd-bot/sssd.git
git fetch sssd-bot refs/heads/SSSD-sssd-backport-pr8954-to-sssd-2-9-4
git checkout SSSD-sssd-backport-pr8954-to-sssd-2-9-4
git push sssd-bot SSSD-sssd-backport-pr8954-to-sssd-2-9-4 --force

Original commits
b58482f - CI: don't specify 'push:'/'pull_request:' branches
6ffc601 - CI: add retry logic to Bodhi API calls in get-matrix.py

Backported commits

  • ad8fcdf - CONFLICT! CI: don't specify 'push:'/'pull_request:' branches
  • 780ad18 - CONFLICT! CI: add retry logic to Bodhi API calls in get-matrix.py

Conflicting Files Information (check for deleted and re-added files)

  • CONFLICT! CI: don't specify 'push:'/'pull_request:' branches
On branch SSSD-sssd-backport-pr8954-to-sssd-2-9-4
You are currently cherry-picking commit b58482fdd.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   .github/workflows/ci.yml
	both modified:   .github/workflows/static-code-analysis.yml

no changes added to commit (use "git add" and/or "git commit -a")
```* CONFLICT! CI: add retry logic to Bodhi API calls in get-matrix.py

On branch SSSD-sssd-backport-pr8954-to-sssd-2-9-4
You are currently cherry-picking commit 6ffc601.
(fix conflicts and run "git cherry-pick --continue")
(use "git cherry-pick --skip" to skip this patch)
(use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
(use "git add ..." to mark resolution)
both modified: contrib/ci/get-matrix.py

no changes added to commit (use "git add" and/or "git commit -a")


---

**Original Pull Request Body**

and add retry logic to Bodhi API calls in get-matrix.py

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request attempts to update the Fedora matrix retrieval logic in contrib/ci/get-matrix.py but introduces unresolved git conflict markers. The reviewer correctly notes that for this branch, we should retain the static Fedora matrix configuration rather than querying the Bodhi API dynamically, which would also clean up unused imports.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread contrib/ci/get-matrix.py Outdated
Comment on lines +12 to +59
import requests.adapters
import argparse
import os

import urllib3.util

<<<<<<< HEAD
def get_fedora_matrix():
# Fedora 41 and up are using 2.10, F39 is going out of support
return ['fedora-40']
=======

def requests_session():
s = requests.Session()
retry = urllib3.util.Retry(
total=3,
backoff_factor=1,
status_forcelist=[408, 429, 500, 502, 503, 504],
allowed_methods=["GET"],
)
s.mount("https://", requests.adapters.HTTPAdapter(max_retries=retry))
return s


def get_fedora_releases(session, type, exclude=[]):
r = session.get(f'https://bodhi.fedoraproject.org/releases?state={type}', timeout=(10, 30))
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():
session = requests_session()
fedora_stable = get_fedora_releases(session, 'current')
fedora_devel = get_fedora_releases(session, 'pending', exclude=['eln'])
fedora_frozen = get_fedora_releases(session, '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
>>>>>>> 6ffc60137 (CI: add retry logic to Bodhi API calls in get-matrix.py)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The backport contains unresolved git conflict markers (<<<<<<< HEAD, =======, >>>>>>>). Since this is the sssd-2-9-4 branch, we should keep the static Fedora matrix (['fedora-40']) and avoid querying the Bodhi API dynamically (which would pull in newer Fedora versions that use SSSD 2.10+). Resolving this conflict also allows us to remove the unused imports requests.adapters and urllib3.util.

import argparse
import os


def get_fedora_matrix():
    # Fedora 41 and up are using 2.10, F39 is going out of support
    return ['fedora-40']

Reviewed-by: Pavel Březina <pbrezina@redhat.com>
(cherry picked from commit b58482f)
@alexey-tikhonov
alexey-tikhonov force-pushed the SSSD-sssd-backport-pr8954-to-sssd-2-9-4 branch from 780ad18 to d476486 Compare July 20, 2026 13:56
@alexey-tikhonov
alexey-tikhonov marked this pull request as ready for review July 20, 2026 13:57
@alexey-tikhonov alexey-tikhonov added no-backport This should go to target branch only. Waiting for review labels Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-backport This should go to target branch only. Waiting for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants