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 more tests for the pod disruption budget endpoints #85819

Merged
merged 1 commit into from Feb 20, 2020

Conversation

nan-yu
Copy link
Contributor

@nan-yu nan-yu commented Dec 2, 2019

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
Add more coverage for the pod disruption budget e2e test

Special notes for your reviewer:
Last e2e test coverage report: #84740 (comment)

Endpoint Tested Update
patchPolicyV1beta1NamespacedPodDisruptionBudgetStatus Untested Tested
readPolicyV1beta1NamespacedPodDisruptionBudgetStatus Untested Tested
replacePolicyV1beta1NamespacedPodDisruptionBudgetStatus Untested Tested
listPolicyV1beta1PodDisruptionBudgetForAllNamespaces Untested Tested
deletePolicyV1beta1CollectionNamespacedPodDisruptionBudget Untested Tested
patchPolicyV1beta1NamespacedPodDisruptionBudget Untested Tested
listPolicyV1beta1NamespacedPodDisruptionBudget Untested Tested
replacePolicyV1beta1NamespacedPodDisruptionBudget Tested Tested
deletePolicyV1beta1NamespacedPodDisruptionBudget Tested Tested
createPolicyV1beta1NamespacedPodDisruptionBudget Tested Tested
readPolicyV1beta1NamespacedPodDisruptionBudget Tested Tested

Does this PR introduce a user-facing change?:

NONE

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Dec 2, 2019
@k8s-ci-robot
Copy link
Contributor

Welcome @nan-yu!

It looks like this is your first PR to kubernetes/kubernetes 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/kubernetes has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added needs-priority Indicates a PR lacks a `priority/foo` label and requires one. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Dec 2, 2019
@k8s-ci-robot
Copy link
Contributor

Hi @nan-yu. 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.

@nan-yu
Copy link
Contributor Author

nan-yu commented Dec 2, 2019

cc @mortent

@mortent
Copy link
Member

mortent commented Dec 2, 2019

/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 Dec 2, 2019
@nan-yu nan-yu changed the title Add more tests for the ../poddisruptionbudgets/{name} endpoint Add more tests for the pod disruption budget endpoints Dec 2, 2019

appsv1 "k8s.io/api/apps/v1"
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corev1 is a better name here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corev1 violates the import-aliases rule 😞

ERROR wrong alias for import "k8s.io/api/core/v1" should be v1 in file test/e2e/apps/disruption.go

"github.com/onsi/ginkgo"
"github.com/onsi/gomega"
"k8s.io/apimachinery/pkg/types"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the two k8s imports to the next block.

@k8s-ci-robot k8s-ci-robot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. and removed needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Dec 2, 2019
@k8s-ci-robot k8s-ci-robot added area/e2e-test-framework Issues or PRs related to refactoring the kubernetes e2e test framework area/test sig/apps Categorizes an issue or PR as relevant to SIG Apps. sig/testing Categorizes an issue or PR as relevant to SIG Testing. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Dec 2, 2019
@RA489
Copy link

RA489 commented Dec 3, 2019

/release-note-none

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Dec 3, 2019
@RA489
Copy link

RA489 commented Dec 3, 2019

/release-note-none

@nan-yu
Copy link
Contributor Author

nan-yu commented Feb 1, 2020

[sig-storage] tests kept failing randomly 😞
/test pull-kubernetes-e2e-gce

@nan-yu
Copy link
Contributor Author

nan-yu commented Feb 3, 2020

/test pull-kubernetes-e2e-gce

@nan-yu
Copy link
Contributor Author

nan-yu commented Feb 3, 2020

[sig-storage] In-tree Volumes [Driver: local][LocalVolumeType: blockfs] [Testpattern: Pre-provisioned PV (default fs)] volumes should allow exec of files on the volume expand_more	1m46s
[sig-api-machinery] ResourceQuota should verify ResourceQuota with best effort scope. [Conformance] expand_more

[sig-storage] test failures again 😞

/test pull-kubernetes-e2e-gce

@nan-yu
Copy link
Contributor Author

nan-yu commented Feb 3, 2020

[sig-apps] DisruptionController evictions: maxUnavailable deny evictions, integer => should not allow an eviction expand_more	10m16s
[sig-storage] Downward API volume should provide podname as non-root with fsgroup [LinuxOnly] [NodeFeature:FSGroup] expand_more	1m0s
[sig-api-machinery] Garbage collector should delete RS created by deployment when not orphaning [Conformance] expand_more

/retest

@nan-yu
Copy link
Contributor Author

nan-yu commented Feb 3, 2020

[sig-storage] In-tree Volumes [Driver: local][LocalVolumeType: dir-bindmounted] [Testpattern: Pre-provisioned PV (default fs)] subPath should support readOnly directory specified in the volumeMount expand_more	1m54s
[sig-api-machinery] Garbage collector should not be blocked by dependency circle [Conformance] expand_more	2m4s
[sig-network] Network should set TCP CLOSE_WAIT timeout expand_more	1m3s
[sig-api-machinery] Garbage collector should delete RS created by deployment when not orphaning [Conformance] expand_mo

/retest

@nan-yu
Copy link
Contributor Author

nan-yu commented Feb 3, 2020

[sig-storage] In-tree Volumes [Driver: gcepd] [Testpattern: Dynamic PV (block volmode)] volumes should store data 

/retest

@nan-yu
Copy link
Contributor Author

nan-yu commented Feb 4, 2020

[sig-storage] In-tree Volumes [Driver: local][LocalVolumeType: block] [Testpattern: Pre-provisioned PV (block volmode)] volumeMode should not mount / map unused volumes in a pod expand_more	52s
[sig-storage] PersistentVolumes-local [Volume type: blockfswithoutformat] One pod requesting one prebound PVC should be able to mount volume and write from pod1 expand_more	35s
[sig-storage] In-tree Volumes [Driver: local][LocalVolumeType: blockfs] [Testpattern: Pre-provisioned PV (default fs)] subPath should be able to unmount after the subpath directory is deleted expand_more	2m39s
[sig-storage] In-tree Volumes [Driver: hostPathSymlink] [Testpattern: Inline-volume (default fs)] subPath should support existing single file [LinuxOnly] expand_more	2m17s
[sig-storage] PersistentVolumes-local [Volume type: blockfswithoutformat] One pod requesting one prebound PVC should be able to mount volume and read from pod1 expand_more	41s
[sig-storage] In-tree Volumes [Driver: local][LocalVolumeType: dir-link-bindmounted] [Testpattern: Pre-provisioned PV (default fs)] subPath should support readOnly file specified in the volumeMount [LinuxOnly] expand_more	1m55s
[sig-storage] In-tree Volumes [Driver: local][LocalVolumeType: blockfs] [Testpattern: Pre-provisioned PV (default fs)] subPath should support non-existent path expand_more

/retest

@nan-yu
Copy link
Contributor Author

nan-yu commented Feb 4, 2020

PR rebased
@kow3ns , can you re-approve it? Thanks!

@nan-yu nan-yu force-pushed the pdb_e2etest branch 2 times, most recently from 2e9bbea to f2b5122 Compare February 18, 2020 19:03
@nan-yu
Copy link
Contributor Author

nan-yu commented Feb 18, 2020

All commits squashed -> Ready to be re-reviewed and merged.

@mortent
Copy link
Member

mortent commented Feb 18, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 18, 2020
@kow3ns
Copy link
Member

kow3ns commented Feb 18, 2020

/approve

@nan-yu
Copy link
Contributor Author

nan-yu commented Feb 19, 2020

/assign @fabriziopandini

@nan-yu
Copy link
Contributor Author

nan-yu commented Feb 19, 2020

@fabriziopandini can you take a look at this PR and approve it? Thanks!

@nan-yu
Copy link
Contributor Author

nan-yu commented Feb 19, 2020

/assign @pohly
/assign @timothysc
/assign @andrewsykim

Copy link
Member

@andrewsykim andrewsykim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve
/lgtm

For test/e2e/framework

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andrewsykim, kow3ns, nan-yu

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 Feb 19, 2020
@nan-yu
Copy link
Contributor Author

nan-yu commented Feb 19, 2020

2/13 Tests Failed
ClusterLoaderV2 expand_less 25m42s
error during /go/src/k8s.io/perf-tests/run-e2e.sh cluster-loader2 --nodes=100 --provider=gce --report-dir=/workspace/_artifacts --testconfig=testing/density/config.yaml --testconfig=testing/load/config.yaml --testconfig=testing/access-tokens/config.yaml --testoverrides=./testing/experiments/enable_prometheus_api_responsiveness.yaml --testoverrides=./testing/experiments/enable_restart_count_check.yaml --testoverrides=./testing/experiments/use_simple_latency_query.yaml --testoverrides=./testing/load/experimental/overrides/enable_configmaps.yaml --testoverrides=./testing/load/experimental/overrides/enable_daemonsets.yaml --testoverrides=./testing/load/experimental/overrides/enable_jobs.yaml --testoverrides=./testing/load/experimental/overrides/enable_pvs.yaml --testoverrides=./testing/load/experimental/overrides/enable_secrets.yaml --testoverrides=./testing/load/experimental/overrides/enable_statefulsets.yaml --testoverrides=./testing/load/gce/throughput_override.yaml (interrupted): signal: interrupt
Timeout expand_less 1h40m0s
kubetest --timeout triggered

/test pull-kubernetes-e2e-gce-100-performance

@k8s-ci-robot k8s-ci-robot merged commit 992aa00 into kubernetes:master Feb 20, 2020
@k8s-ci-robot k8s-ci-robot added this to the v1.18 milestone Feb 20, 2020
@nan-yu nan-yu deleted the pdb_e2etest branch February 20, 2020 00:16
@liggitt liggitt moved this from GA blocking issues to Complete in PodDisruptionBudget Sep 8, 2020
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/e2e-test-framework Issues or PRs related to refactoring the kubernetes e2e test framework area/test cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note-none Denotes a PR that doesn't merit a release note. sig/apps Categorizes an issue or PR as relevant to SIG Apps. 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
Development

Successfully merging this pull request may close these issues.

None yet

8 participants