Skip to content
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

Add Endpoint Slice API Test #100045

Merged
merged 1 commit into from Mar 10, 2021

Conversation

swetharepakula
Copy link
Member

@swetharepakula swetharepakula commented Mar 10, 2021

What type of PR is this?

/kind feature

What this PR does / why we need it:

This PR adds a E2E test that tests all the EndpointSlice APIs.

Does this PR introduce a user-facing change?

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

KEP: EndpointSlice KEP
Enhancement Issue: kubernetes/enhancements#752

/cc @aojea @andrewsykim @thockin @robscott @wojtek-t
/assign @liggitt
/sig network
/sig testing
/priority important-soon

@k8s-ci-robot
Copy link
Contributor

@swetharepakula: GitHub didn't allow me to assign the following users: liggit.

Note that only kubernetes members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

What type of PR is this?

/kind feature

What this PR does / why we need it:

This PR adds a E2E test that tests all the EndpointSlice APIs.

Does this PR introduce a user-facing change?

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

KEP: EndpointSlice KEP
Enhancement Issue: kubernetes/enhancements#752

/cc @aojea @andrewsykim @thockin @robscott @wojtek-t
/assign @LiGgit
/sig network
/sig testing
/priority important-soon

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/test-infra repository.

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/feature Categorizes issue or PR as related to a new feature. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. sig/network Categorizes an issue or PR as relevant to SIG Network. sig/testing Categorizes an issue or PR as relevant to SIG Testing. labels Mar 10, 2021
@k8s-ci-robot k8s-ci-robot added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Mar 10, 2021
@k8s-ci-robot
Copy link
Contributor

@swetharepakula: This issue is currently awaiting triage.

If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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/test-infra repository.

@k8s-ci-robot
Copy link
Contributor

Hi @swetharepakula. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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/test-infra repository.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. area/test labels Mar 10, 2021
@robscott
Copy link
Member

Thanks!

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 10, 2021
@robscott
Copy link
Member

/cc @Riaankl @hh

@k8s-ci-robot k8s-ci-robot requested review from hh and Riaankl March 10, 2021 00:32
@robscott
Copy link
Member

Thanks!

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 10, 2021
@swetharepakula
Copy link
Member Author

/assign @thockin

@thockin
Copy link
Member

thockin commented Mar 10, 2021

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: swetharepakula, thockin

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 10, 2021
@palnabarun
Copy link
Member

Since the PR was lgtm'ed and approved before the Code Freeze was in effect and is just blocked on Prow, I am adding it to the milestone.

/milestone v1.21

@k8s-ci-robot k8s-ci-robot added this to the v1.21 milestone Mar 10, 2021
@k8s-ci-robot k8s-ci-robot merged commit 4740173 into kubernetes:master Mar 10, 2021
@Riaankl
Copy link
Contributor

Riaankl commented Mar 10, 2021

Thank you @swetharepakula for this e2e tests.
In the update of APISnoop it can be seen that 3 additional endpoints are tested.
https://apisnoop.cncf.io/1.21.0/stable/discovery
image

@robscott
Copy link
Member

@Riaankl do you know why that seems to conflict with what was actually added by this test? This test seems to pretty clearly include patch, read, and delete calls. I think we may still be missing replace, but it doesn't seem like we should be missing all of those with this PR in.

@Riaankl
Copy link
Contributor

Riaankl commented Mar 11, 2021

@robscott I do not see any obvious reason why the endpoints do not show up in the logs. And I have little knowledge about Network endpoints.
/cc @johnbelamaric

@johnbelamaric
Copy link
Member

all namespace list and watch should be there too. it's very odd. It would seem to be an apisnoop reporting issue - we should double check the logs and see

@Riaankl
Copy link
Contributor

Riaankl commented Mar 11, 2021

all namespace list and watch should be there too. it's very odd. It would seem to be an apisnoop reporting issue - we should double check the logs and see

Thank you for the quick review @johnbelamaric
We will check the log information in APISnoop to see if something shows up there.

@swetharepakula swetharepakula deleted the eps-ga-conformance branch March 12, 2021 00:43
@swetharepakula
Copy link
Member Author

Just verified that all the endpoints are being tracked now. Thanks @Riaankl & @johnbelamaric !
https://apisnoop.cncf.io/1.21.0/stable/discovery
Screen Shot 2021-03-12 at 1 53 54 PM

@Riaankl
Copy link
Contributor

Riaankl commented Mar 14, 2021

@swetharepakula @robscott
50% is only e2e tested and 50% conformance tested. All should be conformance tested,
We are busy looking at how APISnoop is consuming the data created by these endpoints in the audit logs.
If more action is needed around the tests/promotion I will get back to you.

@swetharepakula
Copy link
Member Author

This PR added coverage for some of the endpoints. We are waiting for the 2 week soak policy to promote to conformance.

@Riaankl
Copy link
Contributor

Riaankl commented Mar 15, 2021

@swetharepakula I can not find the EndpointSlice tests on the test grid.
When are the 2 weeks over for this test?
Please keep in mind that the 1.21 test freeze is on 23 March. It is a requirement that all new GA endpoints must have Conformance tests in the same release that the endpoints graduate.

@Riaankl
Copy link
Contributor

Riaankl commented Mar 15, 2021

all namespace list and watch should be there too. it's very odd. It would seem to be an apisnoop reporting issue - we should double check the logs and see

Thank you for the quick review @johnbelamaric
We will check the log information in APISnoop to see if something shows up there.

@johnbelamaric Thank you for your advice, it turned out to be the way APISnoop consumes these specific endpoints logs.
It now shows up correctly in the logs and the UI.

@swetharepakula
Copy link
Member Author

swetharepakula commented Mar 15, 2021

@Riaankl I am not exactly sure what the difference in the links are but this testgrid link shows the tests: https://testgrid.k8s.io/sig-release-master-blocking#gce-cos-master-default&include-filter-by-regex=EndpointSlice&width=5.

The test started running 3/10/2021 , so it will qualify for conformance on the 24th.

One clarification, is the test freeze on March 23 or March 24th? The release docs say March 24.

@Riaankl
Copy link
Contributor

Riaankl commented Mar 15, 2021

@swetharepakula testgrid is looking good. (got my link wrong)
Yes, 24th is correct, I normally try and close all open points a day before.
Thank you for the GREAT work.
Looking forward to the Promotion.

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. area/test 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. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note-none Denotes a PR that doesn't merit a release note. sig/network Categorizes an issue or PR as relevant to SIG Network. sig/testing Categorizes an issue or PR as relevant to SIG Testing. 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.

None yet

7 participants