-
Notifications
You must be signed in to change notification settings - Fork 10.2k
e2e: add upgrade test for clusters set up by promoted members #19634
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
9276aeb to
f85f42d
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted filessee 15 files with indirect coverage changes @@ Coverage Diff @@
## main #19634 +/- ##
=======================================
Coverage 68.75% 68.75%
=======================================
Files 419 419
Lines 35790 35790
=======================================
Hits 24608 24608
+ Misses 9765 9763 -2
- Partials 1417 1419 +2 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
Good, got the expected error " |
beb0f6e to
1c611b2
Compare
| switch clusterVersion { | ||
| case e2e.CurrentVersion: | ||
| version, err = e2e.GetVersionFromBinary(e2e.BinPath.Etcd) | ||
| require.NoErrorf(t, err, "failed to get version from binary") | ||
| case e2e.LastVersion: | ||
| if !fileutil.Exist(e2e.BinPath.EtcdLastRelease) { | ||
| t.Skipf("%q does not exist", e2e.BinPath.EtcdLastRelease) | ||
| } | ||
|
|
||
| version, err = e2e.GetVersionFromBinary(e2e.BinPath.EtcdLastRelease) | ||
| require.NoErrorf(t, err, "failed to get version from last release binary") | ||
| default: | ||
| t.Fatalf("unexpected cluster version: %v", clusterVersion) | ||
| } |
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.
It seems that we can remove this code block to simplify the case. It's just getting the version and print it in log message.
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.
updated
1c611b2 to
eaeeccf
Compare
|
@fuweid let's skip/disable the test so we can merge it for now. Once 3.5.20 is out, we can enable it again. |
or wait for 3.5.20 to be released tomorrow or next Monday |
Let us wait for 3.5.20. No need to file two pull requests. Thanks |
| } | ||
| } | ||
|
|
||
| func createNewClusterByPromotingMembers(t *testing.T, clusterVersion *semver.Version, clusterSize int) *e2e.EtcdProcessCluster { |
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 can minor refactor this function as what I did in #19636.
We can create a separate PR to get it reviewed & merged separately
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.
Note: I did some refactoring on this function in #19636, so that it can be reused by my e2e test cases.
8a262f8 to
7caad19
Compare
Signed-off-by: Wei Fu <[email protected]>
7caad19 to
211f9e5
Compare
|
ping @ahrtr @serathius @siyuanfoundation it's ready to review. please take a look. thanks |
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
thx @fuweid
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahrtr, fuweid, siyuanfoundation 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 |
|
Please also backport the PR to 3.6, thx |
It seems that you can only manually backport, because most of the implementation has already been included in 3.6. |
REF: #19557
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.
cc @ahrtr @serathius @siyuanfoundation
Please wait for v3.5.20 release. This case can be pass with latest of release/3.5.