-
Notifications
You must be signed in to change notification settings - Fork 10.2k
tests: Migrate grpc tests(e2e/integration) to the common framework #20464
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
tests: Migrate grpc tests(e2e/integration) to the common framework #20464
Conversation
Hi @yagikota. Thanks for your PR. I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
1c8cf5a
to
14c7696
Compare
14c7696
to
9a737f1
Compare
9a737f1
to
de2ae5d
Compare
/ok-to-test |
Great work! Impressive for new contributor, thank you. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted filessee 53 files with indirect coverage changes @@ Coverage Diff @@
## main #20464 +/- ##
==========================================
- Coverage 69.25% 69.14% -0.12%
==========================================
Files 417 418 +1
Lines 34741 34699 -42
==========================================
- Hits 24061 23991 -70
- Misses 9288 9310 +22
- Partials 1392 1398 +6 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Please fix tests |
Hmm, still errors... |
FI fixed all CI errors. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: serathius, yagikota 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 |
Can you squash commits before merge? |
Signed-off-by: Kota <[email protected]>
5a16577
to
1f7163f
Compare
Done. |
What?
Migrate e2e(
tests/e2e/ctl_v3_grpc_test.go
) and integration(tests/integration/grpc_test.go
) tests to the common frameworkAdd
tests/common/grpc_test.go
: unifiedTestAuthority
that delegates to the active runnerIntroduce runner interfaces in
tests/framework/interfaces/interface.go
:TemplateEndpoints
,AssertAuthority
E2E runner updates:
ClusterContext
withEnvVars
andUseUnix
intests/framework/e2e/config.go
EnvVars["GODEBUG"]=http2debug=2
andUseUnix
handling intests/framework/e2e/e2e.go
TemplateEndpoints
andAssertAuthority
(assert via http2 header logs)Integration runner updates:
ClusterContext{UseUnix}
intests/framework/integration/config.go
UseUnix
(flipUseTCP
/UseIP
) intests/framework/integration/integration.go
TemplateEndpoints
andAssertAuthority
(assert viaRecordedRequests()
filter on/etcdserverpb.KV/Put
)Add common helpers:
WithHTTP2Debug
,WithUnixClient
,WithTCPClient
in:tests/common/e2e_test.go
tests/common/integration_test.go
tests/common/unit_test.go
(no-ops where appropriate)Why?
Test Result
E2E
Before Migration
After Migration
Integration
Before Migration
After Migration
Ref