Fix fixcontrol unit test: add missing parameter and test data file#63266
Fix fixcontrol unit test: add missing parameter and test data file#63266Benjamin2037 with Copilot wants to merge 1 commit into
Conversation
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. 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. |
|
Hi @Copilot. Thanks for your PR. I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
|
|
Hi @Copilot. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. 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. |
|
[FORMAT CHECKER NOTIFICATION] Notice: To remove the 📖 For more info, you can check the "Contribute Code" section in the development guide. Notice: To remove the 📖 For more info, you can check the "Contribute Code" section in the development guide. Notice: To remove the For example:
📖 For more info, you can check the "Contribute Code" section in the development guide. |
The fixcontrol unit test was failing due to two issues in the test setup:
Missing third parameter in LoadTestSuiteData call: The
main_test.gofile was callingLoadTestSuiteDatawith only two parameters, but all other test suites in the repository consistently use three parameters withtrueas the third parameter for cascades testing.Missing cascades test data file: When the third parameter is
true, the test framework expects a_xut.jsonfile (cascades output) in addition to the standard_in.jsonand_out.jsonfiles, but this file was missing.Before:
After:
The test was failing with the error:
Changes made:
trueparameter toLoadTestSuiteDatacall to match the pattern used by all other planner testsfix_control_suite_xut.jsonfile by copying the existing output file structure--tags=intestflagThis fix ensures consistency with the test framework patterns used throughout the TiDB codebase and resolves the unit test failure for the fix control functionality.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.