Skip to content
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

ci: add installation test for Talos Linux #5109

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

zhangzujian
Copy link
Member

Pull Request

What type of this PR

Examples of user facing changes:

  • Features
  • Bug fixes
  • Docs
  • Tests

Which issue(s) this PR fixes

Fixes #(issue-number)

@zhangzujian zhangzujian added the ci label Mar 28, 2025
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.

Hello @zhangzujian, 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!

Summary of Changes

This pull request introduces installation tests for Talos Linux, an operating system designed for Kubernetes. The changes primarily involve modifications to the Makefile to include Talos-specific targets and configurations. I've added a new talos.mk file which defines the steps for creating a Talos cluster, preparing images, and installing Kube-OVN on it. Additionally, I've made some adjustments to the kind.mk file to consolidate the untaint-control-plane target.

Highlights

  • Talos Linux Support: Adds support for creating and testing Kube-OVN installations on Talos Linux clusters.
  • Makefile Modifications: Updates the Makefile to include talos.mk and consolidate untaint-control-plane target in kind.mk.
  • Image Preparation: Introduces steps to prepare and mirror necessary images for Talos cluster creation.
  • Cluster Creation: Adds targets for creating and destroying Talos clusters using talosctl.

Changelog

  • Makefile
    • Includes talos.mk for Talos-specific targets.
    • Moves untaint-control-plane target to kind.mk for consolidation.
    • Fixes a bug in docker_rm_container to use -q flag for quiet output.
  • kind.mk
    • Adds untaint-control-plane target for untainting control plane nodes.
    • Consolidates kind related make targets
  • talos.mk
    • Introduces targets for creating a Talos cluster, preparing images, and installing Kube-OVN.
    • Defines variables for Talos cluster name, registry mirror, and related configurations.
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.


Did you know?

Talos Linux is named after Talos, the giant bronze automaton from Greek mythology who protected Crete.

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 installation tests for Talos Linux, enhancing the CI process. The changes involve modifications to the Makefile and the addition of a new talos.mk file. Overall, the changes seem well-structured and aim to provide a more robust testing environment. However, there are a few areas that could benefit from further review and refinement.

Summary of Findings

  • Inconsistent use of docker ps flags: The Makefile uses different flags for docker ps in docker_rm_container definition. It's better to keep it consistent for readability and maintainability.
  • Duplication of untaint-control-plane target: The untaint-control-plane target is defined in both Makefile and kind.mk. This duplication should be resolved to avoid redundancy and potential inconsistencies.
  • Missing newline at end of file: The talos.mk file is missing a newline character at the end of the file. Adding a newline character is important for POSIX compliance.

Merge Readiness

The pull request introduces valuable testing infrastructure for Talos Linux. However, before merging, it's crucial to address the identified issues, particularly the duplication of the untaint-control-plane target and the inconsistent use of docker ps flags. Addressing these points will improve the code's maintainability and reduce potential errors. I am unable to directly approve this pull request, and users should have others review and approve this code before merging.

@coveralls
Copy link

coveralls commented Mar 28, 2025

Pull Request Test Coverage Report for Build 14191733364

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.004%) to 21.805%

Totals Coverage Status
Change from base Build 14188288034: -0.004%
Covered Lines: 10263
Relevant Lines: 47068

💛 - Coveralls

@zhangzujian zhangzujian force-pushed the talos branch 5 times, most recently from c43745f to 0563377 Compare April 1, 2025 08:12
@zhangzujian zhangzujian changed the title ci: add installation test for Talos Linux ci: add overlay installation test for Talos Linux Apr 1, 2025
@zhangzujian zhangzujian changed the title ci: add overlay installation test for Talos Linux ci: add installation test for Talos Linux Apr 1, 2025
Signed-off-by: zhangzujian <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants