Skip to content
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

test: add more info for TestDisableSchedulingServiceFallback #8946

Merged
merged 3 commits into from
Dec 26, 2024

Conversation

bufferflies
Copy link
Contributor

@bufferflies bufferflies commented Dec 23, 2024

What problem does this PR solve?

Issue Number: ref #8926

What has changed and how does it work?

Check List

Tests

  • Unit test

Code changes

Side effects

Related changes

Release note

None.

Signed-off-by: bufferflies <[email protected]>
@ti-chi-bot ti-chi-bot bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note-none Denotes a PR that doesn't merit a release note. labels Dec 23, 2024
Copy link
Contributor

ti-chi-bot bot commented Dec 23, 2024

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 dco-signoff: yes Indicates the PR's author has signed the dco. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 23, 2024
Copy link

codecov bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.27%. Comparing base (c2f72ac) to head (b4a4b4f).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8946      +/-   ##
==========================================
- Coverage   76.32%   76.27%   -0.06%     
==========================================
  Files         463      463              
  Lines       70474    70474              
==========================================
- Hits        53792    53751      -41     
- Misses      13339    13375      +36     
- Partials     3343     3348       +5     
Flag Coverage Δ
unittests 76.27% <ø> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Signed-off-by: bufferflies <[email protected]>
@bufferflies bufferflies added the require-LGT1 Indicates that the PR requires an LGTM. label Dec 24, 2024
@bufferflies bufferflies marked this pull request as ready for review December 24, 2024 07:13
@bufferflies bufferflies changed the title WIP: fix flaky test Test: fix flaky test Dec 24, 2024
@ti-chi-bot ti-chi-bot bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 24, 2024
Comment on lines 263 to 266
testutil.Eventually(re, func() bool {
re.NotNil(suite.pdLeader.GetServer())
re.NotNil(suite.pdLeader.GetServer().GetRaftCluster())
return suite.pdLeader.GetServer().GetRaftCluster().IsSchedulingControllerRunning()
Copy link
Contributor

Choose a reason for hiding this comment

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

how about return suite.pdLeader.GetServer()!=nil && suite.pdLeader.GetServer().GetRaftCluster()!=nil && suite.pdLeader.GetServer().GetRaftCluster().IsSchedulingControllerRunning()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just want to see who is nil.

Copy link
Contributor

Choose a reason for hiding this comment

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

re.NotNil also will make test unstable

Copy link
Contributor

Choose a reason for hiding this comment

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

how about change titile to test: add more info for TestDisableSchedulingServiceFallback?

@bufferflies bufferflies changed the title Test: fix flaky test test: add more info for TestDisableSchedulingServiceFallback Dec 25, 2024
@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Dec 25, 2024
@ti-chi-bot ti-chi-bot bot removed the lgtm label Dec 26, 2024
Copy link
Contributor

ti-chi-bot bot commented Dec 26, 2024

@bufferflies: You cannot manually add or delete the reviewing state labels, only I and the tursted members have permission to do so.

In response to adding label named lgtm.

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.

@bufferflies
Copy link
Contributor Author

/merge

Copy link
Contributor

ti-chi-bot bot commented Dec 26, 2024

@bufferflies: We have migrated to builtin LGTM and approve plugins for reviewing.

👉 Please use /approve when you want approve this pull request.

The changes announcement: Proposal: Strengthen configuration change approval.

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.

@@ -106,7 +106,7 @@ 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)
re.NoError(err)
re.NoError(err, "error: %v", err)
Copy link
Member

Choose a reason for hiding this comment

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

If it fails, it will print the error. So why do you add this?🤔

Copy link
Contributor

ti-chi-bot bot commented Dec 26, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lhy1024, okJiang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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 ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Dec 26, 2024
Copy link
Contributor

ti-chi-bot bot commented Dec 26, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-12-25 08:59:17.989162082 +0000 UTC m=+1638548.077964625: ☑️ agreed by lhy1024.
  • 2024-12-26 07:27:56.554771196 +0000 UTC m=+1719466.643573736: ☑️ agreed by okJiang.

@ti-chi-bot ti-chi-bot bot merged commit 4d8009d into tikv:master Dec 26, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved dco-signoff: yes Indicates the PR's author has signed the dco. lgtm release-note-none Denotes a PR that doesn't merit a release note. require-LGT1 Indicates that the PR requires an LGTM. 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.

3 participants