Skip to content

Minor fixes to rpm builds by packit and spec file. #1704

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

Merged
merged 1 commit into from
Jul 16, 2025

Conversation

smooge
Copy link
Collaborator

@smooge smooge commented Jul 16, 2025

  • This removes epel9 from packit rules as epel9 does not currently build without many additional packages added to the distro.
  • This fixes a breakage in epel10 by adding mailcap as a buildrequires.

Summary by Sourcery

Remove the unsupported epel9 build target in packit config, switch to epel10.0, add mailcap to spec BuildRequires to fix epel10 breakage, and bump the Obsoletes version.

Bug Fixes:

  • Add mailcap to spec file BuildRequires to resolve build failures on epel10

Enhancements:

  • Replace epel9 with epel10.0 in packit configuration
  • Update spec file Obsoletes entry to < 0.11.0-1

* This removes epel9 from packit rules as epel9 does not currently
  build without many additional packages added to the distro.
* This fixes a breakage in epel10 by adding mailcap as a buildrequires.

Signed-off-by: Stephen Smoogen <[email protected]>
Copy link
Contributor

sourcery-ai bot commented Jul 16, 2025

Reviewer's Guide

Streamlined RPM build configurations by removing EPEL 9 in favor of EPEL 10.0 in packit jobs, and resolved a build breakage in EPEL 10 by adding mailcap and updating the Obsoletes version in the spec file.

Class diagram for updated BuildRequires in the spec file

classDiagram
    class SpecFile {
        +make
        +python3-devel
        +podman
        +python3-pytest
        +mailcap
        +Obsoletes: python3-ramalama < 0.11.0-1
    }
Loading

File-Level Changes

Change Details Files
Standardize dist-git branches to epel10.0 and remove epel9
  • Replace epel9 with epel10.0 in packit job triggers
  • Ensure both koji_build and the secondary job reference epel10.0 only
.packit.yaml
Fix spec build requirements and update obsolete version
  • Add mailcap as a BuildRequires to satisfy EPEL 10 dependencies
  • Bump Obsoletes threshold from <0.10.1-2 to <0.11.0-1
rpm/ramalama.spec

Possibly linked issues

  • Configure Renovate #1: The PR removes epel9 from packit rules, directly addressing the propose downstream failure for epel9.

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

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.

Summary of Changes

Hello @smooge, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on improving the reliability and stability of RPM package builds for the ramalama project. It addresses specific build failures by adjusting the packit configuration to refine target distributions and updates the RPM spec file to resolve missing build dependencies and update versioning.

Highlights

  • Packit Configuration Adjustment: Updated .packit.yaml to refine target distribution branches for koji_build and bodhi_update jobs. Specifically, epel9 was removed from the dist_git_branches list and replaced with epel10.0, addressing issues with epel9 builds and clarifying the EPEL 10 target.
  • RPM Spec File Enhancements: Modified rpm/ramalama.spec to include mailcap in BuildRequires, which resolves a reported build breakage in epel10. Additionally, the Obsoletes version for python3-ramalama was updated to reflect a newer baseline.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @smooge - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

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 updates the RPM packaging configuration. It adds a missing build dependency for EPEL 10, bumps the Obsoletes version tag, and updates the packit build targets to remove epel9. The changes to the spec file look correct. However, the update to the packit configuration introduces a potentially invalid and redundant build target (epel10.0), which could cause the build pipeline to fail. I've left comments with details on this.

@@ -79,7 +79,7 @@ jobs:
dist_git_branches: &fedora_targets
- fedora-all
- epel10
- epel9
- epel10.0
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The dist_git_branches list already contains epel10 on the line above. Adding epel10.0 here seems redundant. Furthermore, epel10.0 is not a standard dist-git branch name for EPEL, which is likely to cause this koji_build job to fail. The standard branch name is epel10.

If the intention was just to remove epel9 support, this line should be removed entirely as epel10 is already present.

@@ -92,4 +92,4 @@
dist_git_branches:
- fedora-branched # rawhide updates are created automatically
- epel10
- epel9
- epel10.0
Copy link
Contributor

Choose a reason for hiding this comment

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

high

Similar to the koji_build job configuration, the dist_git_branches list for this propose_downstream job already contains epel10. Adding epel10.0 seems redundant and is likely to cause job failures because epel10.0 is not a standard dist-git branch name. If epel10 is the correct target, this line can be removed.

@rhatdan
Copy link
Member

rhatdan commented Jul 16, 2025

LGTM

@bmahabirbu
Copy link
Collaborator

LGTM too!

@smooge smooge merged commit 683b8fb into containers:main Jul 16, 2025
16 of 38 checks passed
jwieleRH pushed a commit to jwieleRH/ramalama that referenced this pull request Jul 16, 2025
* This removes epel9 from packit rules as epel9 does not currently
  build without many additional packages added to the distro.
* This fixes a breakage in epel10 by adding mailcap as a buildrequires.

Signed-off-by: Stephen Smoogen <[email protected]>
Co-authored-by: Stephen Smoogen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants