-
Notifications
You must be signed in to change notification settings - Fork 753
test: fix flaky test TestForwardTestSuite in next-gen #10203
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
Conversation
Signed-off-by: okjiang <819421878@qq.com>
📝 WalkthroughWalkthroughIntroduces a startup cleanup routine in Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
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)
No actionable comments were generated in the recent review. 🎉 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 |
|
/retest |
Signed-off-by: okjiang <819421878@qq.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #10203 +/- ##
==========================================
+ Coverage 78.63% 78.64% +0.01%
==========================================
Files 520 520
Lines 70089 70104 +15
==========================================
+ Hits 55112 55134 +22
+ Misses 10989 10988 -1
+ Partials 3988 3982 -6
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
/retest |
|
/retest |
server/server.go
Outdated
| // NOTE: `embed.Etcd.Close()` can block for a long time in some failure paths | ||
| // (e.g. when starting a removed member that can never become ready). Avoid | ||
| // blocking the caller (tests may wait for the start error) by stopping the | ||
| // server synchronously and closing the embedded etcd in background. |
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.
You mean "asynchronously"?
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.
Yes
server/server.go
Outdated
| } | ||
| err = s.initMember(newCtx, etcd) | ||
| if err != nil { | ||
| cleanup() |
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.
What about using a defer that checks whether err is nil to decide whether to call cleanup()?
Signed-off-by: okjiang <819421878@qq.com>
|
@niubell: adding LGTM is restricted to approvers and reviewers in OWNERS files. DetailsIn response to this: 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 kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JmPotato, lhy1024, niubell 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 |
|
/pull-error-log-review |
|
/retest |
1 similar comment
|
/retest |
What problem does this PR solve?
Issue Number: Close #10200
What is changed and how does it work?
Check List
Tests
Code changes
Side effects
Related changes
pingcap/docs/pingcap/docs-cn:pingcap/tiup:Release note
Summary by CodeRabbit
Bug Fixes
Tests