-
Notifications
You must be signed in to change notification settings - Fork 10.2k
tests: Add make-mirror test implementation #20908
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
base: main
Are you sure you want to change the base?
tests: Add make-mirror test implementation #20908
Conversation
d97e51b to
983fee2
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted filessee 30 files with indirect coverage changes @@ Coverage Diff @@
## main #20908 +/- ##
==========================================
- Coverage 69.21% 69.11% -0.11%
==========================================
Files 422 422
Lines 34831 34841 +10
==========================================
- Hits 24108 24080 -28
- Misses 9327 9353 +26
- Partials 1396 1408 +12 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
Please fix |
983fee2 to
fa0b8f9
Compare
|
Fixed, thanks. |
|
Can you fix pull-etcd-verify? Just run |
fa0b8f9 to
dd829df
Compare
|
/retest |
dd829df to
952c177
Compare
|
/retest |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ronaldngounou, serathius 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 |
fuweid
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.
This test case only works for e2e. I think we should move that into e2e folder instead of common.
The motivation of this PR is to migrate the following tests to common As you say, the current tests only work for e2e since etcd/tests/framework/integration/integration.go Lines 480 to 482 in 952c177
To make the tests work for integration, we need to complete the etcd/etcdctl/ctlv3/command/make_mirror_command.go Lines 142 to 240 in 952c177
But I'm not sure whether this approach is good or not... |
|
Hi @yagikota yeah. It's ok to move that into common. But that change on option doesn't make senses to me, like |
Thanks for sharing your thoughts. Let's wait for updates from @ronaldngounou. |
- Implement mirror test structure
- Add test/common functionality
- Create ctl_v3_make_mirror_test
Signed-off-by: Ronald Ngounou <[email protected]>
Signed-off-by: ronaldngounou <[email protected]>
952c177 to
bc6f293
Compare
|
/test pull-etcd-e2e-386 |
|
@ronaldngounou: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
| return e2e.WithBasePort() | ||
| } | ||
|
|
||
| func ensureE2EClusterContext(c *config.ClusterConfig) *e2e.ClusterContext { |
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.
do we still need this one? I don't see any invoker for this one.
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.
Not necessary since it's redundant with
etcd/tests/framework/e2e/config.go
Line 77 in 852e4d8
| func ensureE2EClusterContext(c *config.ClusterConfig) *ClusterContext { |
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.
Context
This PR contributes to #20612 . The goal is to migrate tests/e2e/ctl_v3_make_mirror_test.go to the common testing framework
co-author: @yagikota
While we were able to migrate the e2e tests, we would like to have a discussion with the maintenairs on how we can migrate the integration tests as providing guidance would require more context about the source code.
cc @ahrtr @serathius
Testing