Skip to content

Comments

feat(tekton/v0): add Tekton triggers and templates for CI/CD workflows#3768

Merged
ti-chi-bot[bot] merged 8 commits intomainfrom
feature/migrate-v0-tekton-triggers
Sep 26, 2025
Merged

feat(tekton/v0): add Tekton triggers and templates for CI/CD workflows#3768
ti-chi-bot[bot] merged 8 commits intomainfrom
feature/migrate-v0-tekton-triggers

Conversation

@wuhuizuo
Copy link
Contributor

This pull request introduces Tekton CI/CD resource definitions to the repository, expanding the documentation and adding several reusable Tekton TriggerTemplates for building components across multiple platforms. The changes improve support for modern CI/CD workflows and clarify the organization of pipeline resources.

Tekton CI/CD Integration:

  • Added /tekton as a top-level directory for Tekton static resource definitions in the documentation, and documented naming conventions and resource organization for pipelines, tasks, and triggers. [1] [2]

New TriggerTemplates for Component Builds:

  • Added build-component-all-platforms.yaml, a TriggerTemplate to launch builds for a component across Linux (amd64/arm64) and Darwin (amd64/arm64) platforms, with parameterization for git source, build profile, registry, resources, and credentials.
  • Added build-component-single-platform.yaml, a TriggerTemplate to launch a build for a single specified platform, supporting Linux and Darwin, with flexible parameters and workspace configuration.
  • Added build-component.yaml, a TriggerTemplate for building a component on Linux (amd64/arm64), parameterized for git source, profile, registry, and resource requirements.

CI Helper Task Integration:

  • Added ci-helper-for-pr.yaml, a TriggerTemplate for running a helper CI task on pull requests, passing PR metadata and GitHub credentials.

Documentation Updates:

  • Added a README to clarify the purpose of the new public trigger template folder in Tekton resources.

@ti-chi-bot
Copy link

ti-chi-bot bot commented Sep 26, 2025

I Skip it since the diff size(152542 bytes > 80000 bytes) is too large

@ti-chi-bot ti-chi-bot bot added the size/XXL label Sep 26, 2025
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @wuhuizuo, 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 significantly expands the CI/CD infrastructure by integrating Tekton triggers and templates. It introduces a structured approach to defining Tekton resources, enabling automated, parameterized builds for various components across multiple platforms and profiles. The changes also include new triggers for artifact management, repository maintenance, and comprehensive documentation, streamlining the development and release workflows.

Highlights

  • Tekton CI/CD Integration: Introduced a new top-level /tekton directory for static resource definitions, along with comprehensive documentation on naming conventions and resource organization for pipelines, tasks, and triggers, enhancing support for modern CI/CD workflows.
  • New Multi-Platform Build TriggerTemplates: Added several reusable Tekton TriggerTemplates, including build-component-all-platforms.yaml for building components across Linux (amd64/arm64) and Darwin (amd64/arm64), build-component-single-platform.yaml for single-platform builds, and build-component.yaml for Linux-specific builds, all highly parameterized for flexibility.
  • CI Helper and Artifact Management TriggerTemplates: Integrated ci-helper-for-pr.yaml for running helper CI tasks on pull requests, and added templates for image/artifact handling like image-push.yaml, push-oci-artifact-to-fileserver.yaml, and push-oci-artifact-to-tiup.yaml to streamline artifact promotion and distribution.
  • Automated Repository Maintenance TriggerTemplates: Created specialized TriggerTemplates for automated tasks such as bump-placeholder-version-in-readme.yaml, sync-owners-for-hotfix-branch.yaml, update-gomod-fix-ladp-for-hotfix-branch.yaml, and bump-tikv-cargo-pkg-version.yaml to manage versioning, ownership, and dependency updates across various repositories.
  • Extensive Event-Driven Triggers: Implemented a wide array of new Tekton Triggers configured for various GitHub events (branch push, PR, tag/branch creation) and Harbor image push events, covering numerous repositories and build profiles (community, enterprise, failpoint, next-gen, FIPS) to automate CI/CD pipelines.
  • Enhanced Documentation for Triggers: Added a detailed README.md within the triggers directory, outlining the directory structure, how to test CEL interceptors, key trigger types, build profiles, common parameters, and guidelines for adding new triggers, significantly improving clarity and maintainability.
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
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 introduces a comprehensive set of Tekton resources for CI/CD workflows, including TriggerTemplates and Triggers. The changes are well-structured and cover a wide range of build scenarios across different platforms and components. I've identified a few issues, including a critical correctness problem in a generic build template, some bugs related to parameter passing, and several opportunities for improvement in terms of consistency, efficiency, and maintainability. Overall, this is a great addition that modernizes the CI/CD infrastructure.

@ti-chi-bot
Copy link

ti-chi-bot bot commented Sep 26, 2025

I Skip it since the diff size(152501 bytes > 80000 bytes) is too large

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@ti-chi-bot
Copy link

ti-chi-bot bot commented Sep 26, 2025

I Skip it since the diff size(152551 bytes > 80000 bytes) is too large

@ti-chi-bot
Copy link

ti-chi-bot bot commented Sep 26, 2025

I Skip it since the diff size(152547 bytes > 80000 bytes) is too large

@ti-chi-bot
Copy link

ti-chi-bot bot commented Sep 26, 2025

I Skip it since the diff size(153673 bytes > 80000 bytes) is too large

@wuhuizuo
Copy link
Contributor Author

/approve

@ti-chi-bot
Copy link

ti-chi-bot bot commented Sep 26, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wuhuizuo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added the approved label Sep 26, 2025
@ti-chi-bot ti-chi-bot bot merged commit 8c85514 into main Sep 26, 2025
3 checks passed
@ti-chi-bot ti-chi-bot bot deleted the feature/migrate-v0-tekton-triggers branch September 26, 2025 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant