-
Notifications
You must be signed in to change notification settings - Fork 728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mcs: speed up and stabilize tests #7417
Conversation
Signed-off-by: Ryan Leung <[email protected]>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest LGTM
@@ -96,6 +96,10 @@ func (suite *serverTestSuite) TestAllocID() { | |||
func (suite *serverTestSuite) TestAllocIDAfterLeaderChange() { | |||
re := suite.Require() | |||
re.NoError(failpoint.Enable("github.com/tikv/pd/pkg/mcs/scheduling/server/fastUpdateMember", `return(true)`)) | |||
pd2, err := suite.cluster.Join(suite.ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why modify this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
previous:
--- PASS: TestServerTestSuite (35.10s)
--- PASS: TestServerTestSuite/TestAllocID (0.29s)
--- PASS: TestServerTestSuite/TestAllocIDAfterLeaderChange (1.83s)
--- PASS: TestServerTestSuite/TestDynamicSwitch (0.77s)
--- PASS: TestServerTestSuite/TestForwardRegionHeartbeat (5.19s)
--- PASS: TestServerTestSuite/TestForwardStoreHeartbeat (0.19s)
--- PASS: TestServerTestSuite/TestPrimaryChange (0.37s)
--- PASS: TestServerTestSuite/TestSchedulerSync (3.94s)
--- PASS: TestServerTestSuite/TestStoreLimit (5.71s)
after:
--- PASS: TestServerTestSuite (27.96s)
--- PASS: TestServerTestSuite/TestAllocID (0.29s)
--- PASS: TestServerTestSuite/TestAllocIDAfterLeaderChange (10.34s)
--- PASS: TestServerTestSuite/TestDynamicSwitch (0.78s)
--- PASS: TestServerTestSuite/TestForwardRegionHeartbeat (5.20s)
--- PASS: TestServerTestSuite/TestForwardStoreHeartbeat (0.19s)
--- PASS: TestServerTestSuite/TestPrimaryChange (0.39s)
--- PASS: TestServerTestSuite/TestSchedulerSync (3.95s)
--- PASS: TestServerTestSuite/TestStoreLimit (5.72s)
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #7417 +/- ##
==========================================
- Coverage 74.21% 74.21% -0.01%
==========================================
Files 451 451
Lines 49385 49385
==========================================
- Hits 36652 36650 -2
- Misses 9461 9462 +1
- Partials 3272 3273 +1
Flags with carried forward coverage won't be shown. Click here to find out more. |
/merge |
@rleungx: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger
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 ti-community-infra/tichi repository. |
This pull request has been accepted and is ready to merge. Commit hash: 9ee6b01
|
close tikv#7399 Signed-off-by: Ryan Leung <[email protected]>
What problem does this PR solve?
Issue Number: Close #7399.
What is changed and how does it work?
Check List
Tests
Release note