Skip to content

Reuse testing api #193

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

Merged
merged 2 commits into from
Apr 16, 2019
Merged

Conversation

pohly
Copy link
Contributor

@pohly pohly commented Apr 16, 2019

What type of PR is this?
/kind feature

What this PR does / why we need it:

This enables better testing over TCP (dead connection detection) and reuse of the csi-sanity infrastructure in custom test suites.

Special notes for your reviewer:

This extends the API of the package and thus is a minor update.

Does this PR introduce a user-facing change?:

the csi-sanity connection setup can be used in custom test suites

pohly added 2 commits April 16, 2019 16:01
When testing against a driver that is installed elsewhere, for example
inside a virtual machine, we have to use TCP. When that virtual
machine dies without closing the TCP connection, for example because
of a simulated power loss, then gRPC by default only notices the dead
connection when the OS times out the TCP connection, which takes over
10 minutes (on Linux).

The gRPC documentation makes it sound like the keepalive pings are
only needed when there is no active method call, but in practice (with
gRPC v1.19.1 on Linux) such calls hung for over 10 minutes. Activating
the keepalive ping fixed that.
It would be nice to build upon the test set and connection handling
that is already done by csi-sanity when including csi-sanity in a
custom test suite. The only reason why that wasn't possible is that
some of the functionality unnecessarily wasn't marked for exporting.

For an example that depends on these changes, see
intel/pmem-csi#237.
@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Apr 16, 2019
@k8s-ci-robot k8s-ci-robot requested review from jsafrane and lpabon April 16, 2019 14:12
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Apr 16, 2019
@lpabon
Copy link
Member

lpabon commented Apr 16, 2019

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 16, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lpabon, pohly

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit e1f2421 into kubernetes-csi:master Apr 16, 2019
suneeth51 pushed a commit to suneeth51/csi-test that referenced this pull request Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants