tests: remove get_format integration checks#4668
tests: remove get_format integration checks#4668ti-chi-bot[bot] merged 2 commits intopingcap:masterfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (2)
📝 WalkthroughWalkthroughRemoved TiDB Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Code Review
This pull request removes several get_format test cases and their corresponding results from the integration tests to improve environmental stability. It also includes minor whitespace cleanups in the test files. A review comment suggests replacing a remaining GET_FORMAT call inside str_to_date with a literal format string to ensure the test remains fully independent of environment-specific date formats.
| select get_format(DATETIME, 'eur') as a; | ||
| select get_format(TIMESTAMP, 'eur') as a; | ||
| select get_format(DATE, 'TEST') as a; | ||
| select str_to_date('15-01-2001 12:59:59', GET_FORMAT(DATE,'USA')); |
There was a problem hiding this comment.
The PR aims to remove get_format assertions because they are unstable across environments. However, this line still uses GET_FORMAT(DATE, 'USA') as an argument to str_to_date. If the output of GET_FORMAT changes, the result of this query (currently NULL) might also change, leading to continued instability. To fully achieve the goal of environment-independent tests, consider replacing GET_FORMAT(DATE, 'USA') with a literal format string like '%m.%d.%Y'.
select str_to_date('15-01-2001 12:59:59', '%m.%d.%Y');
|
/test pull-cdc-mysql-integration-heavy-next-gen |
- Remove test cases for GET_FORMAT function from date_formats test - Update expected results to reflect removal of these test cases - The function appears to no longer be supported or tested Signed-off-by: tenfyzhong <tenfy@tenfy.cn>
- Removed failing test case for Bug#58005 from both test and result files - The test involved utf8 charset with GET_FORMAT function causing assertion failure - This cleanup eliminates test failures while maintaining other test coverage Signed-off-by: tenfyzhong <tenfy@tenfy.cn>
6eaf20e to
8d8e443
Compare
|
/test all |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lidezhu, wk989898 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
1 similar comment
|
/retest |
|
@tenfyzhong: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
What problem does this PR solve?
Issue Number: close #4667
What is changed and how it works?
This PR removes the
get_formatassertions fromdate_formatsintegration test case.Those checks are not stable across environments and are not required for validating
str_to_datebehavior in this case.Check List
Tests
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
Summary by CodeRabbit