Skip to content

test: add more storage integration tests#1608

Merged
ti-chi-bot[bot] merged 10 commits into
masterfrom
wk989898-patch-5
Aug 6, 2025
Merged

test: add more storage integration tests#1608
ti-chi-bot[bot] merged 10 commits into
masterfrom
wk989898-patch-5

Conversation

@wk989898
Copy link
Copy Markdown
Collaborator

@wk989898 wk989898 commented Aug 4, 2025

What problem does this PR solve?

Issue Number: ref #442 close #1448

What is changed and how it works?

Keep the same as the old arch, TiDBOnly DDL event should also replicate the downstream.

Check List

Tests

  • Unit test
  • Integration test

Questions

Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?

Release note

`None`.

@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented Aug 4, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@ti-chi-bot ti-chi-bot Bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 4, 2025
Copy link
Copy Markdown

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

Summary of Changes

Hello @wk989898, 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 primarily focuses on enhancing the robustness of the storage component by adding a substantial number of new integration tests and re-organizing existing ones within the run_heavy_it_in_ci.sh script. The aim is to provide more comprehensive coverage for various storage-related operations, particularly around CSV data handling, complex DDL scenarios, and failover mechanisms.

Highlights

  • Expanded Storage Test Coverage: I've significantly expanded the integration test suite for storage functionalities by adding numerous new test cases. These include new tests for CSV storage updates, various DDL operations (such as table splitting, merging, and random moves), and additional failover and merge table scenarios.
  • Test Re-categorization: I've re-categorized the canal_json_storage_basic and canal_json_storage_partition_table tests. They are now exclusively run within the storage_groups and have been removed from the pulsar_groups, streamlining their execution context.
  • Minor Test Group Reordering: I've made a minor reordering of existing tests within storage_groups G00 for better consistency.
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 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 or fill out our survey 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.

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
Copy Markdown

@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 adds several new integration tests to the storage_groups in the heavy integration test suite. It also cleans up the pulsar_groups by removing two storage-specific tests. The changes align with the goal of expanding storage test coverage.

I've identified a couple of minor style issues regarding the alphabetical sorting of test cases within groups, which would improve consistency and maintainability.

# G05
# 'move_table drop_many_tables'
'drop_many_tables'
'move_table drop_many_tables'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

For consistency and better maintainability, it's good practice to keep the test cases within each group sorted alphabetically. I noticed that group G00 was sorted in this PR, which suggests this is the desired convention. This group should also be sorted alphabetically.

Suggested change
'move_table drop_many_tables'
'drop_many_tables move_table'

'cdc default_value'
# G07
'resolve_lock force_replicate_table'
'merge_table resolve_lock force_replicate_table'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

For consistency and better maintainability, it's good practice to keep the test cases within each group sorted alphabetically. I noticed that group G00 was sorted in this PR, which suggests this is the desired convention. This group should also be sorted alphabetically.

Suggested change
'merge_table resolve_lock force_replicate_table'
'force_replicate_table merge_table resolve_lock'

@ti-chi-bot ti-chi-bot Bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 4, 2025
@wk989898 wk989898 marked this pull request as ready for review August 4, 2025 09:12
@ti-chi-bot ti-chi-bot Bot added release-note-none Denotes a PR that doesn't merit a release note. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Aug 4, 2025
@ti-chi-bot ti-chi-bot Bot added the lgtm label Aug 5, 2025
@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented Aug 5, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 3AceShowHand

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
Copy link
Copy Markdown

ti-chi-bot Bot commented Aug 5, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-08-05 08:28:18.583470509 +0000 UTC m=+343208.726231674: ☑️ agreed by 3AceShowHand.

@wk989898
Copy link
Copy Markdown
Collaborator Author

wk989898 commented Aug 5, 2025

/retest-required

2 similar comments
@wk989898
Copy link
Copy Markdown
Collaborator Author

wk989898 commented Aug 5, 2025

/retest-required

@wk989898
Copy link
Copy Markdown
Collaborator Author

wk989898 commented Aug 6, 2025

/retest-required

@wk989898
Copy link
Copy Markdown
Collaborator Author

wk989898 commented Aug 6, 2025

/retest-required

@wk989898
Copy link
Copy Markdown
Collaborator Author

wk989898 commented Aug 6, 2025

/retest-required

@ti-chi-bot ti-chi-bot Bot merged commit 2ceec4d into master Aug 6, 2025
14 of 15 checks passed
@ti-chi-bot ti-chi-bot Bot deleted the wk989898-patch-5 branch August 6, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ddl_attribute case cannot pass the integration test kafka

2 participants