Skip to content

Conversation

@debarshiray
Copy link
Member

@gemini-code-assist
Copy link

Summary of Changes

Hello @debarshiray, 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 is a crucial step in preparing the release-0.0.99.5 stable branch. It involves updating the continuous integration configuration to ensure that critical unit and system tests are executed against this new branch. A significant part of this update includes refreshing the system test environments to utilize the latest Fedora releases, thereby ensuring compatibility and stability with current distributions. Furthermore, the test suite has undergone refactoring to streamline test execution, making it more efficient and robust by centralizing resource provisioning.

Highlights

  • CI/CD Branch Configuration: Several unit and system test jobs in .zuul.yaml are now explicitly configured to run on the release-0.0.99.5 branch, ensuring dedicated testing for this stable branch.
  • Fedora System Test Updates: The system tests have been updated to target newer Fedora versions (42 and 43), replacing older versions (39, 40, and 41) in the CI/CD configuration to maintain compatibility with current distributions.
  • Test Suite Optimization: The Bats test suite has been refactored to improve efficiency by moving container setup and teardown operations to file-level setup_file and teardown_file functions, reducing redundant container creation across individual tests.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Ignored Files
  • Ignored by pattern: .github/workflows/** (4)
    • .github/workflows/arch-images-pr.yaml
    • .github/workflows/arch-images.yaml
    • .github/workflows/ubuntu-images.yaml
    • .github/workflows/ubuntu-tests.yaml
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.

The working directory from which bats(1) is invoked might not be part of
the Toolbx container.  eg., the downstream Fedora CI invokes the tests
as:
  $ cd /path/to/toolbox/test/system
  $ bats .

... and it led to:
  not ok 8 help: Try unknown command (forwarded to host)
  # tags: commands-options
  # (from function `assert_line' in file
      ./libs/bats-assert/src/assert.bash, line 488,
  #  in test file ./002-help.bats, line 135)
  #   `assert_line --index 0
        "Error: unknown command \"foo\" for \"toolbox\""' failed
  #
  # -- line differs --
  # index    : 0
  # expected : Error: unknown command "foo" for "toolbox"
  # actual   : Error: crun: chdir to `/usr/share/toolbox/test/system`:
      No such file or directory: OCI runtime attempted to invoke a
      command that was not found
  # --
  #

containers#1560
containers#1745
(backported from commit 1e90c72)
The system tests can be very I/O intensive, because many of them copy
OCI images from the test suite's image cache directory to its local
container/storage store, create containers, and then delete everything
to run the next test with a clean slate.  This makes them slow.

In the case of these two particular tests, toolbox(1) is supposed to
validate the command line options before trying to find the image.  So,
there's no need to copy the image from the test suite's image cache
directory to its local container/storage store.

Fallout from 32b147b

containers#1595
containers#1745
(backported from commit adc8650)
Fedora 39 reached End of Life on 26th November 2024:
https://docs.fedoraproject.org/en-US/releases/eol/

containers#1602
containers#1745
(backported from commit 0bb4ff8)
@debarshiray debarshiray force-pushed the wip/rishi/prepare-release-0.0.99.5-part-5 branch from 87304fa to acdafef Compare January 27, 2026 18:25
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 prepares a stable branch for a release. The changes primarily focus on updating the CI configuration in .zuul.yaml to target the release-0.0.99.5 branch and test against newer Fedora versions. Additionally, there are several improvements to the BATS test suite, including a significant performance optimization in 206-user.bats by creating test containers once per file instead of for each test case, and other cleanups. The changes are generally good and improve the test infrastructure. I have one suggestion regarding the CI configuration to improve its maintainability.

I am having trouble creating individual review comments. Click here to see my feedback.

.zuul.yaml (20)

medium

Adding branches: release-0.0.99.5 to each job individually is repetitive. For better maintainability, you could use YAML anchors to define the branch configuration once and reuse it across jobs. This would make it easier to manage for future release branches.

@softwarefactory-project-zuul
Copy link

Build succeeded.
https://softwarefactory-project.io/zuul/t/local/buildset/55721c8f054e4657b7086f44a8c77b17

✔️ unit-test SUCCESS in 1m 50s
✔️ unit-test-migration-path-for-coreos-toolbox SUCCESS in 3m 22s
✔️ unit-test-restricted SUCCESS in 1m 49s
✔️ system-test-fedora-rawhide SUCCESS in 2h 13m 04s
✔️ system-test-fedora-41 SUCCESS in 2h 15m 35s
✔️ system-test-fedora-40 SUCCESS in 2h 04m 23s
✔️ system-test-fedora-39 SUCCESS in 1h 40m 53s

@softwarefactory-project-zuul
Copy link

Build succeeded.
https://softwarefactory-project.io/zuul/t/local/buildset/435f93ad9ef449d18699bf658913ac7c

✔️ unit-test SUCCESS in 1m 41s
✔️ unit-test-migration-path-for-coreos-toolbox SUCCESS in 3m 59s
✔️ unit-test-restricted SUCCESS in 1m 55s
✔️ system-test-fedora-rawhide SUCCESS in 1h 45m 20s
✔️ system-test-fedora-41 SUCCESS in 1h 49m 02s
✔️ system-test-fedora-40 SUCCESS in 1h 44m 15s
✔️ system-test-fedora-39 SUCCESS in 1h 38m 58s

@softwarefactory-project-zuul
Copy link

Build succeeded.
https://softwarefactory-project.io/zuul/t/local/buildset/58a8d8ac3e2d4984abd2563504376124

✔️ unit-test SUCCESS in 1m 47s
✔️ unit-test-migration-path-for-coreos-toolbox SUCCESS in 3m 26s
✔️ unit-test-restricted SUCCESS in 1m 52s
✔️ system-test-fedora-rawhide SUCCESS in 1h 38m 20s
✔️ system-test-fedora-41 SUCCESS in 1h 41m 06s
✔️ system-test-fedora-40 SUCCESS in 1h 38m 03s

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.

1 participant