Skip to content

Conversation

@wuhuizuo
Copy link
Contributor

@wuhuizuo wuhuizuo commented Jan 12, 2026

This pull request removes the CDC integration test jobs for both Kafka and MySQL from the Tiflow project's CI/CD pipeline. It deletes the associated Jenkins job DSL definitions, pipeline scripts, and Kubernetes pod templates, as well as updates the Prow job configuration to stop referencing these periodic jobs. This effectively disables the periodic CDC integration tests for the latest branch of Tiflow.

Removal of CDC Integration Test Jobs:

  • Deleted the Jenkins job DSL files for periodic CDC integration tests for both Kafka and MySQL (periodics_cdc_integration_kafka_test.groovy and periodics_cdc_integration_mysql_test.groovy). [1] [2]
  • Removed the corresponding pipeline scripts that defined the test logic and stages for Kafka and MySQL CDC integration tests (periodics_cdc_integration_kafka_test.groovy and periodics_cdc_integration_mysql_test.groovy under pipelines/pingcap/tiflow/latest/). [1] [2]

Cleanup of Kubernetes Resources:

  • Deleted the Kubernetes pod templates used for running the CDC integration tests for Kafka and MySQL (pod-periodics_cdc_integration_kafka_test.yaml and pod-periodics_cdc_integration_mysql_test.yaml). [1] [2]

Prow Job Configuration Update:

  • Updated prow-jobs/kustomization.yaml to remove the reference to pingcap_tiflow_latest-periodics.yaml, which included the removed periodic jobs.

Copy link

@ti-chi-bot ti-chi-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have already done a preliminary review for you, and I hope to help you do a better job.

Summary

This pull request reverts periodic pipelines for CDC Kafka integration tests introduced in PR #3268. The primary action involves deleting pipeline configuration files and related references across multiple files. The approach is straightforward, primarily focused on removing the affected files and cleaning up references to ensure consistency in the remaining configuration files. Overall, the quality of the PR is decent as it correctly removes the files and addresses dependencies, but there is a minor concern regarding merge conflict markers in prow-jobs/kustomization.yaml.


Critical Issues

  • Merge Conflict Markers
    • File: prow-jobs/kustomization.yaml
    • Lines: 87-88
    • Issue: The file contains unresolved merge conflict markers (<<<<<<< HEAD), which could cause issues during deployment or runtime if not addressed.
    • Suggested Solution: Resolve the merge conflict by removing the conflict markers and ensuring the correct configuration is retained. For example:
      configMapGenerator:
        - pingcap_tiflow_latest-postsubmits.yaml=pingcap/tiflow/latest-postsubmits.yaml

Code Improvements

  • Redundant Comment in Removed Files
    • Files: All deleted files
    • Issue: While the files are being deleted, they contain redundant or outdated comments (e.g., "Keep small than 400 lines" in pipelines/pingcap/tiflow/latest/periodics_cdc_integration_kafka_test.groovy). This is not directly impactful but worth considering for future PRs.
    • Suggested Solution: Ensure comments in pipelines/scripts are current and relevant before introducing them in future pipelines.

Best Practices

  • Documentation for Reason of Revert

    • Location: PR description
    • Issue: The reason for reverting the changes is missing in the PR description ([insert reason if any, otherwise remove this line]). This omission can reduce traceability and understanding of why these pipelines were removed.
    • Suggested Solution: Update the PR description to clearly explain the reason for the revert (e.g., "The periodic pipelines were causing unexpected failures in CDC Kafka integration tests").
  • Testing Coverage

    • Location: General
    • Issue: No indication is provided regarding whether the removal of these pipelines has been tested or validated to ensure no unintended side effects.
    • Suggested Solution: Add a note in the PR description confirming that the removal was validated (e.g., "All affected configurations were tested to ensure no unintended impact on the CI/CD system.").

Additional Notes

No issues regarding naming conventions, style deviations, or code duplication were found, as the PR primarily involves deletions. Addressing the merge conflict markers and improving documentation would ensure this PR is ready for merging.

@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 completely reverts a previous change that introduced periodic pipelines for CDC Kafka integration tests. The primary objective is to remove all associated configuration and script files, effectively disabling these automated tests from running periodically. This action streamlines the CI/CD setup by removing test infrastructure that is no longer desired or functional, though the specific underlying reason for the revert is not detailed.

Highlights

  • Revert of CDC Kafka Integration Tests: This pull request fully reverts the changes introduced by PR feat(tiflow): add periodics pipeline for cdc kafka test #3268, which originally added periodic pipelines for CDC Kafka integration tests.
  • Removal of Jenkins Job Definition: The Jenkins Job DSL script (jobs/pingcap/tiflow/latest/periodics_cdc_integration_kafka_test.groovy) that defined the periodic Kafka integration test has been removed.
  • Deletion of Pipeline Scripts and Pod Templates: The Jenkins Pipeline script (pipelines/pingcap/tiflow/latest/periodics_cdc_integration_kafka_test.groovy) and its corresponding Kubernetes Pod template (pipelines/pingcap/tiflow/latest/pod-periodics_cdc_integration_kafka_test.yaml) for the Kafka integration test have been deleted.
  • Prow Job Configuration Update: The Prow job definition file (prow-jobs/pingcap/tiflow/latest-periodics.yaml) for the periodic Kafka test has been removed, and the prow-jobs/kustomization.yaml file was updated to remove its reference.
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 reverts the addition of the periodic CDC Kafka integration test pipeline. The file deletions appear to be correct for this revert. However, there is a critical issue in prow-jobs/kustomization.yaml which contains merge conflicts that must be resolved. I have provided a specific comment and suggestion to fix this issue. Please address the conflict to ensure the revert is clean and the configuration is valid.

Copy link

@ti-chi-bot ti-chi-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have already done a preliminary review for you, and I hope to help you do a better job.

Summary

This PR reverts the addition of CDC Kafka integration test pipelines introduced in PR #3268. The changes involve removing configuration files, pipeline definitions, and associated test artifacts. The approach is a clean removal of all related files and references, including Groovy scripts, YAML configurations, and updates to the Prow jobs' kustomization file. Overall, the removal is straightforward, but attention should be given to ensure no unintended dependencies or references are left behind.


Critical Issues

  • File Reference Left in prow-jobs/kustomization.yaml:
    • File: prow-jobs/kustomization.yaml, Line 88
    • Issue: The removal of pingcap_tiflow_latest-periodics.yaml is correct, but there is still a redundant second reference to pingcap_tiflow_latest-postsubmits.yaml (duplicated line).
    • Why It's an Issue: Duplicate entries can lead to errors in job configuration generation and confusion during maintenance.
    • Suggested Solution:
      - pingcap_tiflow_latest-postsubmits.yaml=pingcap/tiflow/latest-postsubmits.yaml
      Remove the duplicate second occurrence of this line.

Code Improvements

  • Removal of Related Dependencies:
    • File: prow-jobs/kustomization.yaml
    • Issue: Ensure all other dependencies or jobs referencing the deleted files (pingcap_tiflow_latest-periodics.yaml, pingcap/tiflow/latest/periodics_cdc_integration_kafka_test.groovy) are cleared across the repository.
    • Why It's an Issue: Leftover references elsewhere could lead to runtime issues for job configuration or errors in Jenkins or Prow pipelines.
    • Suggested Solution: Perform a full-text search across the codebase to identify any lingering references to the deleted files, especially in related job definitions or documentation.

Best Practices

  • Documentation Update:
    • Issue: The PR description mentions "[insert reason if any]" as a placeholder text. The rationale for the revert should be clearly documented for transparency and to avoid confusion for collaborators.
    • Why It's an Issue: Lack of clarity in the reason for reverting can hinder understanding during code reviews or future debugging.
    • Suggested Solution: Update the PR description with the actual reason for the revert (e.g., stability issues, unused pipelines, etc.).

No further issues related to testing, naming conventions, or style guidelines were identified based on the provided diff.

@ti-chi-bot ti-chi-bot bot removed the size/XL label Jan 12, 2026
Copy link

@ti-chi-bot ti-chi-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have already done a preliminary review for you, and I hope to help you do a better job.

Summary

This PR reverts the addition of periodic pipelines for CDC Kafka and MySQL integration tests introduced in PR #3268. The approach involves removing associated pipeline definitions, configurations, and Kubernetes pod templates. The changes appear straightforward, with no major technical issues in the revert itself. However, some critical considerations for reverting pipelines include ensuring that any dependent systems or teams are informed and that any deleted configurations do not inadvertently impact other workflows.


Critical Issues

None identified directly in this revert PR. However, the reason for the revert is missing in the PR description, which can lead to confusion for maintainers and stakeholders. This could indirectly become an issue if the revert impacts other workflows or teams.


Code Improvements

  1. Missing Reason for Reversion
    • File: N/A (PR description issue)
    • Issue: The PR description mentions "[insert reason if any, otherwise remove this line]" but does not clarify the reason for this revert. This could lead to uncertainty about why these pipelines were removed and whether the revert is temporary or permanent.
    • Suggested Solution: Update the PR description to include a rationale for the revert. If there is no specific reason, clearly state that it's being reverted due to general cleanup or other non-technical reasons.

Best Practices

  1. Testing Coverage and Impact Assessment

    • File: N/A
    • Issue: Reverting the periodic pipelines may affect test coverage for CDC Kafka and MySQL integration. If these pipelines were actively used, their removal could reduce automated testing or impact the CI/CD system.
    • Suggested Solution: Ensure that alternative testing pipelines or manual testing workflows are in place to cover the removed tests. Document any such replacements or plans in the project README or related documentation.
  2. Documentation Updates

    • File: N/A
    • Issue: The removal of pipeline definitions and configurations might need corresponding updates in project documentation to avoid confusion.
    • Suggested Solution: Verify and update documentation (e.g., CI/CD guides, README files) to reflect the absence of these pipelines.
  3. Style Consistency in kustomization.yaml

    • File: prow-jobs/kustomization.yaml (lines 85–92)
    • Issue: There are duplicate references to pingcap_tiflow_latest-postsubmits.yaml. While this is unrelated to the revert, it is worth cleaning up as part of general maintenance.
    • Suggested Solution: Remove the duplicate reference to pingcap_tiflow_latest-postsubmits.yaml to ensure clarity and consistency.
      configMapGenerator:
        - pingcap_tiflow_latest-postsubmits.yaml=pingcap/tiflow/latest-postsubmits.yaml
  4. Impact on Downstream Systems

    • File: Deleted files
    • Issue: Files such as pod-periodics_cdc_integration_kafka_test.yaml and pod-periodics_cdc_integration_mysql_test.yaml define resource configurations for Kubernetes pods. Their removal could inadvertently affect other dependent systems or integrations.
    • Suggested Solution: Confirm that no downstream systems rely on these pod configurations. If dependencies exist, communicate the changes and coordinate updates.

Summary of Recommendations

  • Clearly document the reason for this revert in the PR description.
  • Ensure testing coverage is not compromised due to pipeline removal.
  • Update related documentation to reflect these changes.
  • Clean up duplicate entries in kustomization.yaml.
  • Verify the impact of pod configuration removal on downstream systems.

@ti-chi-bot ti-chi-bot bot added the size/XXL label Jan 12, 2026
Copy link

@ti-chi-bot ti-chi-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have already done a preliminary review for you, and I hope to help you do a better job.

Summary

This pull request reverts changes introduced in PR #3268 related to periodic pipelines for CDC Kafka and MySQL integration tests. The approach involves removing configurations, pipeline definitions, and associated files entirely, along with cleaning references in the prow-jobs/kustomization.yaml file. The PR is straightforward and cleanly removes all related files and references. However, the lack of explanation for the revert reason limits understanding of the motivation behind this change.


Critical Issues

  • Missing Reason for Revert:
    • File: PR description
    • Issue: The reason for reverting the changes is not specified, which could lead to confusion or lack of transparency for future maintainers.
    • Solution: Update the PR description to include a detailed justification for reverting these pipelines, such as issues encountered, performance concerns, or project scope changes.

Code Improvements

  • Potential Broken Functionality from Missing References:
    • File: prow-jobs/kustomization.yaml (line 88)
    • Issue: Removing the reference to pingcap_tiflow_latest-periodics.yaml without verifying its usage in other dependent components could introduce issues if other configurations rely on it indirectly.
    • Solution: Conduct a thorough audit of dependent configurations or systems that might reference the deleted file to ensure no unintended consequences. If necessary, add a comment in the PR or codebase indicating the change was verified.

Best Practices

  • Documentation and Comments:

    • Files: All deleted files
    • Issue: The removal of periodics_cdc_integration_kafka_test and periodics_cdc_integration_mysql_test pipelines doesn't include documentation updates to explain why these pipelines are no longer needed, which could confuse future contributors.
    • Solution: Update the documentation (e.g., README or related pipeline documentation) to clearly indicate the removal of these pipelines and provide the rationale.
  • Testing Coverage Gaps:

    • Files: All deleted files
    • Issue: If these pipelines were used for integration testing, removing them could lead to reduced testing coverage for CDC Kafka and MySQL scenarios.
    • Solution: Ensure that alternative pipelines or testing mechanisms are in place to cover the gaps left by removing these tests. If no alternative exists, document the risk in the PR description.

Suggested Updates to PR Description

This PR reverts the changes introduced by PR #3268, which added periodic pipelines for CDC Kafka and MySQL integration tests. The changes are being reverted due to [insert reason, e.g., performance issues, project scope changes, or functionality not needed].

Key updates:
- Removed all pipeline definitions and configurations related to CDC Kafka and MySQL integration tests.
- Cleaned up references in `prow-jobs/kustomization.yaml` to ensure consistency.
- Verified no other systems or configurations rely on the deleted files.

Impact:
- Reduced testing coverage for CDC Kafka and MySQL scenarios. Ensure alternative testing mechanisms are in place to maintain coverage.
- No functional dependencies detected during verification; however, further audits may be necessary.

Rationale:
[Provide detailed explanation for the revert here.]

Copy link

@ti-chi-bot ti-chi-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have already done a preliminary review for you, and I hope to help you do a better job.

Summary

This pull request reverts the changes introduced by PR #3268, which added periodic pipelines for CDC Kafka and MySQL integration tests. The approach involves removing the related pipeline files and updating references in the prow-jobs/kustomization.yaml. Overall, the changes are straightforward and primarily involve deletion of configuration files and pipelines, with no new functionality introduced. The quality of the PR is acceptable for its scope, but there are no details provided regarding the reason for the revert, which might be important for future context.


Critical Issues

Missing Reason for Reversion

  • Files: PR description
  • Issue: The PR description does not include a reason for reverting PR #3268. Without this, team members or contributors may lack context about why the integration tests are being removed, which could lead to confusion or repeated mistakes.
  • Suggestion: Update the PR description to include the explicit reason for reverting PR #3268. For example:
    The changes are being reverted because the periodic pipelines caused frequent failures in unrelated tests and were deemed unreliable.
    
    If the reason is confidential, at least indicate that it is internal.

Code Improvements

Incomplete Cleanup in prow-jobs/kustomization.yaml

  • Files: prow-jobs/kustomization.yaml, lines 87–89
  • Issue: References to pingcap_tiflow_latest-periodics.yaml were removed, but other references related to deleted files such as pingcap_tiflow_latest-postsubmits.yaml or other configurations remain untouched. Ensure all references to removed pipelines or jobs are cleaned to prevent dangling configurations.
  • Suggestion: Verify all references to deleted files in the repository and clean them up systematically. For example:
    configMapGenerator:
      files:
        - pingcap_tiflow_latest-postsubmits.yaml
        - pingcap_tiflow_latest-presubmits.yaml
        ...
    Confirm if latest-postsubmits.yaml or others are affected by the deletion and remove them if necessary.

Best Practices

Lack of Documentation for Reverted Functionality

  • Files: All deleted pipeline files
  • Issue: While the pipelines were deleted, there is no accompanying documentation explaining why the integration tests were removed and whether alternative testing strategies will be introduced.
  • Suggestion: Add comments or a README update in the repository detailing the revert decision. For example:
    ## Removed Pipelines
    The periodic Kafka and MySQL integration tests were removed as they caused instability in the CI process. Future testing strategies for CDC integrations may be implemented using alternative approaches.

No Explicit Testing or Verification Mentioned

  • Files: PR description
  • Issue: There is no indication that the removal of these pipelines has been tested to ensure no unintended impacts on the remaining CI/CD configurations.
  • Suggestion: Include a note in the PR description confirming that the removal has been tested (e.g., CI runs successfully without these pipelines). For example:
    The removal was tested by running the existing CI/CD pipelines, and no issues were observed.
    

Additional Notes

  • If the revert is temporary, it would be helpful to include an explanation of when or under what conditions the pipelines might be reintroduced.
  • Ensure that the removal of these files does not break compatibility with external systems relying on them (e.g., Jenkins, Kubernetes).

@wuhuizuo wuhuizuo changed the title Revert "feat(tiflow): add periodics pipeline for cdc kafka test" opt: remove useless periodic CI jobs Jan 12, 2026
Copy link

@ti-chi-bot ti-chi-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have already done a preliminary review for you, and I hope to help you do a better job.

Summary

This pull request removes the periodic CDC integration test jobs for Kafka and MySQL from the Tiflow project's CI/CD pipeline. The approach involves deleting Jenkins job DSL definitions, Kubernetes pod templates, associated pipeline scripts, and updating the Prow job configuration to eliminate references to these jobs. The implementation is straightforward and effectively cleans up unused resources. The quality of the changes is consistent, but there are areas where additional cleanup and verification could enhance the robustness of the removal.


Critical Issues

  • None Identified: The changes focus on removing unused CI/CD configurations and do not introduce new functionality or dependencies that could result in bugs or vulnerabilities.

Code Improvements

  1. Residual References in Documentation or Related Scripts:

    • File: pipelines/pingcap/tiflow/latest/periodics_cdc_integration_kafka_test.groovy (and similar files for MySQL)
    • Issue: Documentation comments such as REF: https://<your-jenkins-server>/plugin/job-dsl/api-viewer/index.html and associated references are removed in code, but ensure no related scripts or documentation elsewhere still reference this job (e.g., external documentation, README files, or monitoring scripts).
    • Suggestion: Audit the repository for any lingering references to these jobs outside the deleted files.
  2. Configuration Updates:

    • File: prow-jobs/kustomization.yaml, prow-jobs/pingcap/tiflow/latest-periodics.yaml
    • Issue: While the periodic jobs are being removed, confirm that no other Prow jobs rely on configurations or resources defined in these files (e.g., shared secrets or global settings).
    • Suggestion: Cross-check if secrets like github-token or volume definitions in periodics.yaml are used elsewhere in non-deleted jobs.

Best Practices

  1. Testing Coverage:

    • File: Entire PR scope
    • Issue: No tests or validation scripts have been provided to ensure the removed jobs and configurations do not affect existing workflows.
    • Suggestion: Run a dry-run of the updated CI/CD pipeline to verify that removing these jobs does not cause errors for non-related jobs. Document this verification process for future reference.
  2. Audit for Dependency Cleanup:

    • File: pipelines/pingcap/tiflow/latest/pod-periodics_cdc_integration_kafka_test.yaml and similar files
    • Issue: Ensure that any Docker images, Kubernetes namespaces, or pod templates explicitly created for these jobs are not reused elsewhere.
    • Suggestion: Identify and decommission these resources from the environment (e.g., remove associated namespaces or images from registries).
  3. Commenting and Documentation:

    • File: Entire PR scope
    • Issue: The PR description provides detailed information about the changes but lacks inline comments explaining why these jobs were removed or their historical purpose.
    • Suggestion: Add a short note in the commit message or repository documentation explaining the rationale behind the removal of these jobs (e.g., deprecated or redundant functionality).
  4. Consistent Formatting:

    • File: prow-jobs/kustomization.yaml
    • Issue: Some commented-out lines remain inconsistent after removal (e.g., indentation or spacing for configMapGenerator entries).
    • Suggestion: Ensure consistent formatting for readability:
      configMapGenerator:
        files:
          - pingcap_tidb_release-6.4-presubmits.yaml=pingcap/tidb/release-6.4-presubmits.yaml

Follow-Up Recommendations

  • Repository Audit: Conduct a secondary review of the repository to ensure no indirect dependencies exist on the removed jobs (especially in shared libraries or scripts).
  • Monitoring Pipeline Stability: After merging, monitor CI/CD stability for any unintended side effects from the removal of these jobs.

@wuhuizuo
Copy link
Contributor Author

@copilot help to fix the conflicts

Copy link
Contributor

Copilot AI commented Jan 13, 2026

@wuhuizuo I've opened a new pull request, #4085, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link

@ti-chi-bot ti-chi-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have already done a preliminary review for you, and I hope to help you do a better job.

Summary

This pull request removes the CDC integration test jobs for Kafka and MySQL from the CI/CD pipeline of the Tiflow project. The approach involves deleting Jenkins job DSL definitions, pipeline scripts, Kubernetes pod templates, and references in Prow job configurations. While the PR effectively disables these periodic jobs, it also cleans up associated resources thoroughly. The changes are straightforward and well-documented, but a few areas could be improved for clarity and maintainability.


Critical Issues

No critical issues were identified, as the changes are primarily deletions and do not introduce new functionality or dependencies. However, downstream impact should be assessed to ensure the removal does not inadvertently affect other parts of the CI/CD pipeline or testing workflow.


Code Improvements

  1. Downstream Dependencies Check

    • File: prow-jobs/kustomization.yaml, all removed periodic job references.
    • Issue: The removal of jobs and configurations might affect other components dependent on these resources, such as shared Prow job configurations or generic scripts.
    • Suggestion: Conduct a dependency audit to ensure no other jobs or processes rely on the removed resources. Add a note in the PR description confirming this has been done.
  2. Documentation Update for Testing Policy

    • Issue: The removal of periodic CDC integration tests might need updates in documentation or README files describing the CI/CD pipeline, particularly around testing strategy for CDC components.
    • Suggestion: Update any relevant documentation to explicitly state that Kafka and MySQL CDC periodic tests are no longer part of the pipeline and outline the rationale behind their removal.

Best Practices

  1. Prow Configuration Cleanup Validation

    • File: prow-jobs/kustomization.yaml, line numbers vary based on removed references.
    • Issue: Ensure the removal of references does not leave orphaned or unused configuration files in the repository.
    • Suggestion: Execute a validation script or manual checks to confirm that the kustomization.yaml file is still consistent after these changes.
  2. Commit History and Message

    • Issue: The commit message and PR description could include more details on why the periodic jobs were deemed unnecessary (e.g., low utilization, redundancy, or cost optimization).
    • Suggestion: Append a rationale to the PR description and commit messages to provide historical context for future maintainers.
  3. Testing Coverage Gap Analysis

    • Issue: The removal of these tests might create gaps in testing CDC-related functionalities, particularly integration scenarios.
    • Suggestion: Ensure that alternative test mechanisms (e.g., on-demand tests or unit tests) are available to cover the removed scenarios. If they exist, reference them in the PR description for clarity.

Suggested Improvements

Dependency Audit Example:

grep -r "periodics_cdc_integration_kafka_test" ./ci-scripts ./docs ./config
grep -r "periodics_cdc_integration_mysql_test" ./ci-scripts ./docs ./config

Documentation Update Example:

### Testing Strategy Update
As of [commit XYZ], the periodic CDC integration tests for Kafka and MySQL have been removed from the CI/CD pipeline. These tests were deemed redundant and replaced by on-demand or pull-request-triggered tests for CDC functionality. See [link to testing policy] for details.

Conclusion

This PR provides a clean removal of specific periodic jobs and their associated resources. However, ensuring the downstream impact is fully assessed, documentation is updated, and testing gaps are addressed will enhance the overall maintainability and clarity of the project.

Copy link

@ti-chi-bot ti-chi-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have already done a preliminary review for you, and I hope to help you do a better job.

Summary

This pull request removes outdated periodic CDC integration test jobs for Kafka and MySQL from the Tiflow CI/CD pipeline, along with their associated Jenkins job definitions, Kubernetes pod templates, and Prow job configurations. The approach involves complete deletion of related files and references, simplifying the CI configuration. The PR is well-structured for its purpose, with no functional additions or alterations to the core application. However, some cleanup or clarifications in the documentation and configuration files can be addressed for better maintainability.


Critical Issues

No critical issues identified. The removal of files and references is straightforward and does not introduce logical errors, security vulnerabilities, or broken functionality.


Code Improvements

  1. Residual References in kustomization.yaml

    • File: prow-jobs/kustomization.yaml, lines 51–113.
    • Issue: While the PR removes references to CDC-related periodic jobs, residual references may exist in the kustomization.yaml. Ensure all related entries (e.g., pingcap_tidb_release-6.5-periodics.yaml) are completely removed to avoid confusion in future updates.
    • Suggestion:
      Ensure all unused periodic job references are removed from this file:
      configMapGenerator:
        - pingcap_tidb_release-6.4-presubmits.yaml=pingcap/tidb/release-6.4-presubmits.yaml
        ...
        # Remove any residual references to deleted periodic jobs here.
  2. Unused Environment Variables

    • File: Deleted Kubernetes pod templates (pod-periodics_cdc_integration_kafka_test.yaml and pod-periodics_cdc_integration_mysql_test.yaml).
    • Issue: Environment variables like KAFKA_SSL_KEYSTORE_PASSWORD, KAFKA_ZOOKEEPER_CONNECT, MYSQL_ALLOW_EMPTY_PASSWORD, etc., were defined but not used. Consider documenting or archiving their usage for future reference if these variables are critical.
    • Suggestion: Archive a list of these environment variables in a central documentation file for future reuse if needed.

Best Practices

  1. Documentation Updates

    • File: None specified; general recommendation.
    • Issue: No documentation update is included to explain the removal of CDC integration tests. Contributors unfamiliar with the removal may not understand the rationale or alternative testing strategies.
    • Suggestion: Add details to the project's README.md or CI/CD documentation, explaining the removal and whether alternative integration testing strategies (e.g., on-demand or feature-specific jobs) exist.
  2. Testing Gaps

    • File: None specified; general recommendation.
    • Issue: The removal of periodic jobs for CDC integration tests reduces the overall testing coverage for the Kafka and MySQL CDC features. This could lead to unnoticed regressions if no alternative testing mechanism is implemented.
    • Suggestion: Ensure that integration tests for CDC functionality are covered in other CI/CD workflows (e.g., presubmit or postsubmit jobs). Consider adding lightweight on-demand jobs for critical branches.
  3. Commit Message Refinement

    • File: Commit history (meta-level feedback).
    • Issue: The commit message title ("opt: remove useless periodic CI jobs") is concise but lacks clarity on the scope of the removal.
    • Suggestion: Use a more descriptive title, e.g., ci: remove periodic CDC integration tests for Kafka and MySQL. This improves traceability and understanding of changes in the commit log.

Conclusion

The PR effectively removes unused CI/CD jobs, simplifying the pipeline configuration without introducing functional risks. Addressing residual references, documenting the removal rationale, and ensuring testing gaps are covered would improve maintainability and clarity. Beyond these suggestions, the PR is ready for merging.

@wuhuizuo
Copy link
Contributor Author

/approve

@ti-chi-bot ti-chi-bot bot added the approved label Jan 13, 2026
@ti-chi-bot ti-chi-bot bot merged commit c14bb55 into main Jan 13, 2026
5 checks passed
@ti-chi-bot ti-chi-bot bot deleted the revert-pr-3268 branch January 13, 2026 09:05
@ti-chi-bot
Copy link

ti-chi-bot bot commented Jan 13, 2026

@wk989898: adding LGTM is restricted to approvers and reviewers in OWNERS files.

Details

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ti-chi-bot
Copy link

ti-chi-bot bot commented Jan 13, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wk989898, 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

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.

3 participants