Skip to content

Retry on Fedora CI Koji build submission failure#3040

Merged
centosinfra-prod-github-app[bot] merged 1 commit intopackit:mainfrom
lbarcziova:koji-retry-build-submission
Mar 4, 2026
Merged

Retry on Fedora CI Koji build submission failure#3040
centosinfra-prod-github-app[bot] merged 1 commit intopackit:mainfrom
lbarcziova:koji-retry-build-submission

Conversation

@lbarcziova
Copy link
Member

Fixes #3003
Assisted-by: Claude Opus 4.6 noreply@anthropic.com

RELEASE NOTES BEGIN

Packit now retries on build submission failure for Fedora CI Koji scratch builds.

RELEASE NOTES END

Fixes packit#3003
Assisted-by: Claude Opus 4.6 <noreply@anthropic.com>
@lbarcziova lbarcziova requested a review from a team as a code owner March 4, 2026 15:14
@lbarcziova lbarcziova requested review from betulependule and removed request for a team March 4, 2026 15:14
@centosinfra-prod-github-app
Copy link
Contributor

Copy link
Contributor

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

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 introduces retry logic for Fedora CI Koji scratch build submissions, which is a great improvement for handling transient failures like network issues or temporary Koji outages. The implementation uses exponential backoff for retries and correctly reports the pending status to the user. The new integration test effectively verifies this retry mechanism. I have one suggestion to improve the retry logging.

Note: Security Review did not run due to the size of the PR.

url=get_koji_build_info_url(koji_build.id),
)
kargs = self.celery_task.task.request.kwargs.copy()
self.celery_task.retry(delay=interval * 60, kargs=kargs)
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

It's good practice to pass the exception to the retry call. This helps with logging and debugging, as Celery will log the exception that caused the retry.

Suggested change
self.celery_task.retry(delay=interval * 60, kargs=kargs)
self.celery_task.retry(ex=ex, delay=interval * 60, kargs=kargs)
References
  1. All errors and exceptions should be logged, with sufficient information for administrators to begin triage. (link)

Copy link
Member

@nforro nforro left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@lbarcziova lbarcziova added the mergeit Merge via Zuul label Mar 4, 2026
@centosinfra-prod-github-app
Copy link
Contributor

@centosinfra-prod-github-app centosinfra-prod-github-app bot merged commit 2b66f57 into packit:main Mar 4, 2026
6 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in Packit pull requests Mar 4, 2026
@lbarcziova lbarcziova deleted the koji-retry-build-submission branch March 5, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mergeit Merge via Zuul

Projects

Development

Successfully merging this pull request may close these issues.

Retry on Fedora CI build submission failure

2 participants