-
Notifications
You must be signed in to change notification settings - Fork 10.2k
[test] Add e2e downgrade automatic cancellation test #19399
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
995bf3e to
60e8a40
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted filessee 25 files with indirect coverage changes @@ Coverage Diff @@
## main #19399 +/- ##
==========================================
+ Coverage 68.75% 68.83% +0.07%
==========================================
Files 419 421 +2
Lines 35790 35855 +65
==========================================
+ Hits 24608 24680 +72
+ Misses 9763 9749 -14
- Partials 1419 1426 +7 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
60e8a40 to
11357be
Compare
ahrtr
left a comment
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.
LGTM
|
@henrybear327 can you please rebase this PR ? I just merged #19398 |
11357be to
c0f2170
Compare
Saw and done as you posted! |
c0f2170 to
43e04f9
Compare
ahrtr
left a comment
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.
Please resolve the comments
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: henrybear327 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
43e04f9 to
a18de65
Compare
7baf245 to
f39e84e
Compare
3.5 has the auto downgrade cancellation as well, so this test case still makes sense. @fuweid @henrybear327 https://github.com/etcd-io/etcd/blob/release-3.5/server/etcdserver/server.go#L2724 |
But 3.5 doesn't have the downgrade status query API. So this PR should be independent to #19451. So there is no need to wait for that PR. @fuweid @henrybear327 @siyuanfoundation |
So ... is the conclusion to still merge this PR or no? Sorry that I am pretty lost during these exchanges. |
YES. It's nice to merge this PR before next Tuesday. But it isn't a blocker for 3.6.0-rc.1. |
24d1fc1 to
42e29c2
Compare
42e29c2 to
65ae06d
Compare
Got it! I have rebased it now, but I will likely complete addressing all comments and incorporating changes regarding cancellation status by Monday noon (as I am out on both days on the weekend). Marking the PR as a draft now. |
65ae06d to
d004d39
Compare
d004d39 to
a927742
Compare
|
/retest |
|
Ready for a final pass! |
a927742 to
8799e72
Compare
8799e72 to
8785910
Compare
|
/retest |
8785910 to
a514ebe
Compare
| t.Log("Removing learner to test membership") | ||
| _, err = cc.MemberRemove(context.Background(), resp.Member.ID) | ||
| require.NoError(t, err) | ||
| beforeMembers, beforeKV := getMembersAndKeys(t, cc) |
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.
I think we should add writeKVs() before this, and in the other tests too.
| } | ||
|
|
||
| t.Log("Downgrade should be disabled") | ||
| e2e.ValidateDowngradeInfo(t, epc, &pb.DowngradeInfo{Enabled: false}) |
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.
This validation does not seem very useful since the DowngradeInfo would always be false in 3.5. Which means we probably do not need this test ...
Verify that the downgrade can be cancelled automatically when the downgrade is completed (using `no inflight downgrade job`` as the indicator) Please see: etcd-io#19365 (comment) Reference: etcd-io#17976 Signed-off-by: Chun-Hung Tseng <[email protected]>
a514ebe to
9013a7f
Compare
Verify that the downgrade can be cancelled automatically when the downgrade is completed (using
no inflight downgrade jobas the indicator)Please see #19365 (comment)
Reference: #17976
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.
Close #17976