Skip to content

musa: disable build of whisper.cpp, and update llama.cpp#1745

Merged
mikebonnet merged 1 commit intomainfrom
musa-fix-build
Jul 24, 2025
Merged

musa: disable build of whisper.cpp, and update llama.cpp#1745
mikebonnet merged 1 commit intomainfrom
musa-fix-build

Conversation

@mikebonnet
Copy link
Collaborator

@mikebonnet mikebonnet commented Jul 24, 2025

Updating the musa images to rc4.2.0 requires a newer version of llama.cpp, and broke the whisper.cpp build. For more info see:

#1697

Summary by Sourcery

Update llama.cpp to a newer commit and disable whisper.cpp build for the Musa container

Enhancements:

  • Bump llama.cpp checkout to commit 3f4fc97f1d745f1d5d3c853949503136d419e6de
  • Skip building whisper.cpp when running the Musa container image

Updating the musa images to rc4.2.0 requires a newer version of llama.cpp, and broke
the whisper.cpp build. For more info see:

#1697

Signed-off-by: Mike Bonnet <[email protected]>
@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Jul 24, 2025

Reviewer's Guide

Adjusts the build script to use the updated llama.cpp commit for rc4.2.0 compatibility and disables the whisper.cpp build when building the Musa image to avoid build failures.

Class diagram for build script function changes

classDiagram
    class BuildScript {
      +clone_and_build_llama_cpp()
      +clone_and_build_whisper_cpp()
      +main()
    }
    BuildScript : - llama_cpp_sha updated
    BuildScript : - whisper.cpp build skipped for musa
Loading

File-Level Changes

Change Details Files
Bump llama.cpp commit reference
  • Updated llama_cpp_sha variable to the new commit hash
container-images/scripts/build_llama_and_whisper.sh
Conditionally disable whisper.cpp build for Musa
  • Added check in main() to skip clone_and_build_whisper_cpp when containerfile is 'musa'
container-images/scripts/build_llama_and_whisper.sh

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 @mikebonnet, 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 addresses compatibility requirements for musa images updated to rc4.2.0. It involves updating the llama.cpp dependency to a newer version and, as a direct consequence of this update and the musa environment, disabling the whisper.cpp build for musa to prevent build failures.

Highlights

  • Dependency Update: Updated the llama.cpp dependency to a newer commit SHA (3f4fc97f1d745f1d5d3c853949503136d419e6de) in the build_llama_and_whisper.sh script. This update is necessary for compatibility with musa images rc4.2.0.
  • Conditional Build Logic: Modified the build_llama_and_whisper.sh script to conditionally disable the whisper.cpp build. The build will now be skipped if the containerfile variable is set to musa, in addition to the existing check for s390x architecture. This addresses a build breakage identified with the musa image update.
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 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 or fill out our survey 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 @mikebonnet - I've reviewed your changes - here's some feedback:

  • Consider using a version tag or branch name instead of a hardcoded commit SHA for llama.cpp to simplify future updates.
  • To improve readability, extract the combined s390x/musa build skip check into a descriptive variable or function and add a brief comment explaining why whisper.cpp is disabled for musa.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider using a version tag or branch name instead of a hardcoded commit SHA for llama.cpp to simplify future updates.
- To improve readability, extract the combined s390x/musa build skip check into a descriptive variable or function and add a brief comment explaining why whisper.cpp is disabled for musa.

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.

Summary of Changes

Hello @mikebonnet, 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 addresses compatibility issues arising from updating musa images to rc4.2.0. It resolves a dependency conflict by updating the llama.cpp library to a newer version and prevents a build failure by disabling the whisper.cpp build specifically for the musa container, ensuring the container images can be built successfully with the new musa version.

Highlights

  • llama.cpp update: The llama.cpp checkout SHA has been updated from f667f1e6244e1f420512fa66692b7096ff17f366 to 3f4fc97f1d745f1d5d3c853949503136d419e6de.
  • whisper.cpp build disabled for Musa: The build process for whisper.cpp is now conditionally skipped when building the musa container image, addressing a reported build breakage.
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 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 or fill out our survey 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

@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 @mikebonnet, 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 addresses compatibility issues encountered when updating musa container images to rc4.2.0. It resolves these by bumping the version of llama.cpp used in the build process and conditionally disabling the whisper.cpp build for musa containers, as the latter was breaking the build.

Highlights

  • llama.cpp Version Update: I've updated the llama.cpp checkout SHA from f667f1e6244e1f420512fa66692b7096ff17f366 to 3f4fc97f1d745f1d5d3c853949503136d419e6de in the build script.
  • whisper.cpp Build Disablement for Musa: I've added a condition to disable the whisper.cpp build specifically when the containerfile variable is set to musa. This prevents build failures related to whisper.cpp when updating musa images.
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 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 or fill out our survey 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

@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 llama.cpp dependency to a newer commit and disables the whisper.cpp build for the musa container, as described. The changes are correct and achieve the stated goal. I have one suggestion to improve the shell script's syntax for better readability and consistency with the rest of the file.

@mikebonnet mikebonnet merged commit ceb67ec into main Jul 24, 2025
60 of 62 checks passed
@mikebonnet mikebonnet deleted the musa-fix-build branch July 24, 2025 21:38
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.

2 participants