Skip to content

Conversation

cgwalters
Copy link
Collaborator

This is the new default, but needs to be turned on for older
versions that are shipped in the Ubuntu used in GHA.

Signed-off-by: Colin Walters walters@verbum.org

Signed-off-by: Colin Walters <walters@verbum.org>
This is the new default, but needs to be turned on for older
versions that are shipped in the Ubuntu used in GHA.

Signed-off-by: Colin Walters <walters@verbum.org>
Copy link

Summary of Changes

Hello @cgwalters, 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 primarily focuses on enhancing compatibility with older virtiofsd versions by introducing a specific fallback argument during its execution. Concurrently, it refactors the QemuConfig API by removing several redundant helper functions and their corresponding tests, aiming to simplify the configuration interface. The changes also consolidate the virtiofsd daemon spawning mechanism to an exclusively asynchronous approach.

Highlights

  • Virtiofsd Compatibility: Added the --inode-file-handles=fallback argument to the virtiofsd command invocation within spawn_virtiofsd_async to ensure compatibility with older virtiofsd versions, specifically those found in Ubuntu GHA environments.
  • QemuConfig Refactoring: Removed several helper methods from the QemuConfig struct, including new_disk_boot, add_virtio_blk_device, and add_virtiofs_mount, along with their associated unit tests. This streamlines the QemuConfig API.
  • Asynchronous Virtiofsd Spawning: The synchronous spawn_virtiofsd function has been removed, consolidating all virtiofsd daemon spawning to the asynchronous spawn_virtiofsd_async function.
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 by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

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 pull request 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. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

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

@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 a compatibility fix for virtiofsd by adding the --inode-file-handles=fallback flag, which is necessary for older versions as noted in the description. The change is well-commented and justified. In addition to this fix, the pull request also performs significant code cleanup by removing several unused functions and their associated tests from QemuConfig. This refactoring simplifies the API and improves the overall maintainability of the code. The changes are well-executed and I see no issues.

@cgwalters cgwalters enabled auto-merge (rebase) October 10, 2025 13:48
@cgwalters cgwalters mentioned this pull request Oct 10, 2025
@cgwalters cgwalters merged commit 4441fd6 into bootc-dev:main Oct 10, 2025
2 checks passed
@cgwalters
Copy link
Collaborator Author

OK, still failing in bootc-dev/bootc#1680 (comment) - but it's really weird that it only fails for fedora-{42,43} but not c{9,10}s. I wonder if there's something guest-specific going on here too.

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