Skip to content

Comments

tests: rebalance heavy integration test groups#4256

Open
tenfyzhong wants to merge 1 commit intopingcap:masterfrom
tenfyzhong:test/rebalance-heavy-it-groups
Open

tests: rebalance heavy integration test groups#4256
tenfyzhong wants to merge 1 commit intopingcap:masterfrom
tenfyzhong:test/rebalance-heavy-it-groups

Conversation

@tenfyzhong
Copy link
Collaborator

@tenfyzhong tenfyzhong commented Feb 24, 2026

What problem does this PR solve?

Issue Number: close #4255

What is changed and how it works?

  • Rebalanced heavy integration test groups in tests/integration_tests/run_heavy_it_in_ci.sh.
  • Moved syncpoint_check_ts and random_drop_message from G05 to G01.
  • Moved in_flight_syncpoint_during_scheduling from G05 to G02.
  • Kept G05 focused on ddl_for_split_tables_with_merge_and_split syncpoint to reduce tail runtime.

Check List

Tests

  • No code

Questions

Will it cause performance regression or break compatibility?

No.

Do you need to update user documentation, design documentation or monitoring documentation?

No.

Release note

None

Summary by CodeRabbit

  • Tests
    • Expanded integration test coverage for MySQL database operations, including additional scenarios for synchronization and failover procedures to enhance overall system reliability.

Move several cases from G05 to G01/G02 in heavy integration tests to avoid a single-group bottleneck.\n\nRef pingcap#4255

Signed-off-by: tenfyzhong <tenfy@tenfy.cn>
@ti-chi-bot ti-chi-bot bot added the release-note-none Denotes a PR that doesn't merit a release note. label Feb 24, 2026
@ti-chi-bot
Copy link

ti-chi-bot bot commented Feb 24, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign tenfyzhong for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found 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

@gemini-code-assist
Copy link

Summary of Changes

Hello @tenfyzhong, 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 aims to improve the efficiency of continuous integration by rebalancing heavy integration test groups. By redistributing specific long-running tests across different groups and consolidating others, the changes are designed to reduce the overall tail runtime of the CI pipeline without impacting test coverage or functionality.

Highlights

  • Test Group Rebalancing: The heavy integration test groups in tests/integration_tests/run_heavy_it_in_ci.sh have been rebalanced to optimize CI execution.
  • Test Relocation to G01: The syncpoint_check_ts and random_drop_message tests were moved from group G05 to G01.
  • Test Relocation to G02: The in_flight_syncpoint_during_scheduling test was moved from group G05 to G02.
  • G05 Focus: Group G05 is now solely focused on ddl_for_split_tables_with_merge_and_split syncpoint to reduce its tail runtime.

🧠 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.

Changelog
  • tests/integration_tests/run_heavy_it_in_ci.sh
    • Rebalanced integration test groups by moving specific tests to optimize CI execution.
Activity
  • No human activity has been recorded on this pull request yet.
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.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 24, 2026

📝 Walkthrough

Walkthrough

The pull request rebalances integration test groups to optimize CI runtime. G01 and G02 are expanded with additional tests, while G05 is narrowed to reduce its execution time, addressing an identified performance bottleneck.

Changes

Cohort / File(s) Summary
Integration Test Group Rebalancing
tests/integration_tests/run_heavy_it_in_ci.sh
Updated test case membership across three groups: appended syncpoint_check_ts and random_drop_message to G01, added in_flight_syncpoint_during_scheduling to G02, and reduced G05 to only ddl_for_split_tables_with_merge_and_split and syncpoint tests to redistribute workload and reduce G05 runtime.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested labels

lgtm, approved, size/XS

Suggested reviewers

  • wk989898
  • lidezhu

Poem

🐰 Tests regrouped with a hop and a skip,
G05's burden takes a lighter trip,
Balancing loads across the CI way,
Pipelines run swift, hip-hip-hooray! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: rebalancing heavy integration test groups.
Description check ✅ Passed The description follows the template with issue reference, changes explanation, test type selection, and answers to template questions including release note.
Linked Issues check ✅ Passed The PR directly addresses issue #4255 by redistributing test cases to rebalance integration test group runtime and reduce G05 as a bottleneck.
Out of Scope Changes check ✅ Passed All changes are limited to rebalancing test groups in run_heavy_it_in_ci.sh with no unrelated modifications or scope creep.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ti-chi-bot ti-chi-bot bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 24, 2026
@tenfyzhong
Copy link
Collaborator Author

/test mysql-integration-heavy-next-gen

@ti-chi-bot
Copy link

ti-chi-bot bot commented Feb 24, 2026

@tenfyzhong: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

/test pull-build
/test pull-cdc-kafka-integration-heavy
/test pull-cdc-kafka-integration-light
/test pull-cdc-mysql-integration-heavy
/test pull-cdc-mysql-integration-light
/test pull-cdc-storage-integration-heavy
/test pull-cdc-storage-integration-light
/test pull-check
/test pull-error-log-review
/test pull-unit-test

The following commands are available to trigger optional jobs:

/test pull-build-next-gen
/test pull-cdc-kafka-integration-heavy-next-gen
/test pull-cdc-kafka-integration-light-next-gen
/test pull-cdc-mysql-integration-heavy-next-gen
/test pull-cdc-mysql-integration-light-next-gen
/test pull-cdc-pulsar-integration-heavy
/test pull-cdc-pulsar-integration-heavy-next-gen
/test pull-cdc-pulsar-integration-light
/test pull-cdc-pulsar-integration-light-next-gen
/test pull-cdc-storage-integration-heavy-next-gen
/test pull-cdc-storage-integration-light-next-gen
/test pull-unit-test-next-gen

Use /test all to run the following jobs that were automatically triggered:

pull-error-log-review
Details

In response to this:

/test mysql-integration-heavy-next-gen

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.

@tenfyzhong
Copy link
Collaborator Author

/test pull-cdc-mysql-integration-heavy-next-gen

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@tests/integration_tests/run_heavy_it_in_ci.sh`:
- Line 37: The test-group string contains a trailing space in the token list
('ddl_for_split_tables_with_failover in_flight_syncpoint_during_scheduling ')
which can produce an empty test name when split; remove the trailing space (or
trim the variable) so the value becomes 'ddl_for_split_tables_with_failover
in_flight_syncpoint_during_scheduling' (or call a trim on the variable before
splitting) to avoid emitting an empty test token.

ℹ️ Review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7e03137 and 7c5f1e2.

📒 Files selected for processing (1)
  • tests/integration_tests/run_heavy_it_in_ci.sh

'ddl_for_split_tables_with_random_move_table syncpoint_check_ts random_drop_message'
# G02
'ddl_for_split_tables_with_failover'
'ddl_for_split_tables_with_failover in_flight_syncpoint_during_scheduling '
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Remove trailing space to avoid an empty test token.

The trailing space in the group string can yield an empty case name depending on how run.sh splits the list; safer to trim it. Line 37.

🧹 Proposed fix
-'ddl_for_split_tables_with_failover in_flight_syncpoint_during_scheduling '
+'ddl_for_split_tables_with_failover in_flight_syncpoint_during_scheduling'
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
'ddl_for_split_tables_with_failover in_flight_syncpoint_during_scheduling '
'ddl_for_split_tables_with_failover in_flight_syncpoint_during_scheduling'
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/integration_tests/run_heavy_it_in_ci.sh` at line 37, The test-group
string contains a trailing space in the token list
('ddl_for_split_tables_with_failover in_flight_syncpoint_during_scheduling ')
which can produce an empty test name when split; remove the trailing space (or
trim the variable) so the value becomes 'ddl_for_split_tables_with_failover
in_flight_syncpoint_during_scheduling' (or call a trim on the variable before
splitting) to avoid emitting an empty test token.

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 rebalances heavy integration test groups to improve CI pipeline performance by reducing tail runtime. The changes are logical and align with the stated goal. I've found a minor formatting issue with a trailing whitespace that should be addressed.

'ddl_for_split_tables_with_random_move_table syncpoint_check_ts random_drop_message'
# G02
'ddl_for_split_tables_with_failover'
'ddl_for_split_tables_with_failover in_flight_syncpoint_during_scheduling '

Choose a reason for hiding this comment

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

medium

There is a trailing whitespace at the end of this line. While it might not cause issues with the current script logic, it's best to remove it for code cleanliness and to prevent potential parsing problems in the future.

Suggested change
'ddl_for_split_tables_with_failover in_flight_syncpoint_during_scheduling '
'ddl_for_split_tables_with_failover in_flight_syncpoint_during_scheduling'

@tenfyzhong
Copy link
Collaborator Author

/test pull-cdc-mysql-integration-heavy-next-gen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: Rebalance integration test groups to reduce G05 runtime

1 participant