Commit Graph

24644 Commits

Author SHA1 Message Date
Patrick Ohly
1d11bc4aca e2e framework: provide more guidance to developers
Developers who are unaware of the Ginkgo wrappers in the framework might end up
passing the label decorators directly to Ginkgo. Previously, this led to an
error that was hard to understand without background knowledge:

    Unknown Decorator
    ginkgo.It("must deallocate on non graceful node shutdown", f.WithSerial(), f.WithDisruptive(), f.WithSlow(), func(ctx context.Context) {
    /nvme/gopath/src/k8s.io/kubernetes/test/e2e/dra/dra.go:527
      [It] node was passed an unknown decorator:
      'framework.label{parts:[]string{"Serial"}, extra:""}'

    Learn more at: http://onsi.github.io/ginkgo/#node-decorators-overview

When including a special field that Ginkgo dumps the message gets a bit better:

    Unknown Decorator
    ginkgo.It("must deallocate on non graceful node shutdown", f.WithSerial(), f.WithDisruptive(), f.WithSlow(), func(ctx context.Context) {
    /nvme/gopath/src/k8s.io/kubernetes/test/e2e/dra/dra.go:527
      [It] node was passed an unknown decorator:
      'framework.label{parts:[]string{"Serial"}, extra:"", explanation:"If you see
      this as part of an \"Unknown Decorator\" error from Ginkgo, then you need to
      replace the ginkgo.It/Context/Describe call with the corresponding
      framework.It/Context/Describe or (if available) f.It/Context/Describe."}'

    Learn more at: http://onsi.github.io/ginkgo/#node-decorators-overview
2023-12-08 08:04:18 +01:00
Marko Mudrinić
0ca3089bee Bump distroless-iptables to v0.4.2
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2023-12-06 19:19:46 +01:00
Marko Mudrinić
1c1347a3e7 [go] Bump images, dependencies and versions to go 1.21.5
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2023-12-06 10:36:35 +01:00
Kensei Nakada
74a6a4581f fix by linters 2023-12-02 09:58:34 +00:00
Kensei Nakada
5310abe14a make scheduler_perf usable from other repositories 2023-12-01 12:43:08 +00:00
carlory
08e5e8681d E2E - Sig-autoscaling: Refactor the Autoscaling utils to use gomega.Consistenly according to e2e test framework guidance 2023-12-01 18:02:15 +08:00
Kubernetes Prow Robot
55f2bc1043 Merge pull request #122129 from liggitt/root-conformance
Remove conformance test calls to `/`
2023-11-30 22:16:33 +01:00
Jordan Liggitt
233949e05d Add an integration test to verify root path cleanup 2023-11-30 14:57:21 -05:00
Jordan Liggitt
c769c2db6e Revert conformance test addition of root paths 2023-11-30 14:01:24 -05:00
Dan Williams
a80c3d0301 e2e/openapi: fix test panic when OpenAPI CRD doesn't show up within timeout
Nov 29 22:56:18.559: INFO: Waited 371.058378ms for the sample-apiserver to be ready to handle requests.
  Nov 29 22:56:49.503: INFO: At 0001-01-01 00:00:00 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: { } Scheduled: Successfully assigned e2e-openapiv3-5878/sample-apiserver-deployment-58dfd44dd-gp8nd to ip-10-0-80-91.us-west-2.compute.internal
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:55:53 +0000 UTC - event for sample-apiserver-deployment: {deployment-controller } ScalingReplicaSet: Scaled up replica set sample-apiserver-deployment-58dfd44dd to 1
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:55:53 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd: {replicaset-controller } SuccessfulCreate: Created pod: sample-apiserver-deployment-58dfd44dd-gp8nd
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:55:53 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {multus } AddedInterface: Add eth0 [10.129.2.137/23] from ovn-kubernetes
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:55:53 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {kubelet ip-10-0-80-91.us-west-2.compute.internal} Pulling: Pulling image "quay.io/openshift/community-e2e-images:e2e-3-registry-k8s-io-e2e-test-images-sample-apiserver-1-17-7-F6raNs0YQ76APdUD"
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:55:57 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {kubelet ip-10-0-80-91.us-west-2.compute.internal} Pulling: Pulling image "quay.io/openshift/community-e2e-images:e2e-11-registry-k8s-io-etcd-3-5-7-0-C5nYFPeT0lxaFCao"
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:55:57 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {kubelet ip-10-0-80-91.us-west-2.compute.internal} Started: Started container sample-apiserver
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:55:57 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {kubelet ip-10-0-80-91.us-west-2.compute.internal} Created: Created container sample-apiserver
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:55:57 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {kubelet ip-10-0-80-91.us-west-2.compute.internal} Pulled: Successfully pulled image "quay.io/openshift/community-e2e-images:e2e-3-registry-k8s-io-e2e-test-images-sample-apiserver-1-17-7-F6raNs0YQ76APdUD" in 3.068195738s (3.068206328s including waiting)
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:56:06 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {kubelet ip-10-0-80-91.us-west-2.compute.internal} Pulled: Successfully pulled image "quay.io/openshift/community-e2e-images:e2e-11-registry-k8s-io-etcd-3-5-7-0-C5nYFPeT0lxaFCao" in 9.1810668s (9.18107711s including waiting)
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:56:06 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {kubelet ip-10-0-80-91.us-west-2.compute.internal} Created: Created container etcd
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:56:06 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {kubelet ip-10-0-80-91.us-west-2.compute.internal} Started: Started container etcd
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:56:48 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {kubelet ip-10-0-80-91.us-west-2.compute.internal} Killing: Stopping container sample-apiserver
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:56:48 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {kubelet ip-10-0-80-91.us-west-2.compute.internal} Killing: Stopping container etcd
  Nov 29 22:56:49.570: INFO: POD  NODE  PHASE  GRACE  CONDITIONS
  Nov 29 22:56:49.570: INFO:
  Nov 29 22:56:49.702: INFO: skipping dumping cluster info - cluster too large

k8s.io/kubernetes/test/e2e/apimachinery.glob..func19.3({0x7f470406fbf8, 0xc001c4b530})
	k8s.io/kubernetes@v1.27.1/test/e2e/apimachinery/openapiv3.go:161 +0x6bf
fail [runtime/panic.go:260]: Test Panicked: runtime error: invalid memory address or nil pointer dereference
Ginkgo exit error 1: exit with code 1

Signed-off-by: Dan Williams <dcbw@redhat.com>
2023-11-30 12:56:54 -06:00
ruiwen-zhao
ec9387da08 Remove scrape_error from resource_metrics_test due to deprecation
Signed-off-by: ruiwen-zhao <ruiwen@google.com>
2023-11-28 18:49:04 +00:00
Tim Hockin
9f8f55a6ed Use DBG=1 for conformance verification 2023-11-27 09:12:46 -08:00
carlory
2315d3fed5 uncomment ktesting.AnyToString 2023-11-28 00:35:29 +08:00
kerthcet
e5b86c1034 Fix node update event will miss some potential changes
Signed-off-by: kerthcet <kerthcet@gmail.com>
2023-11-27 15:33:47 +08:00
carlory
57a5db8da3 remove feature-gate APISelfSubjectReview 2023-11-24 16:59:21 +08:00
Antonio Ojea
d203bb54f8 fix flake on conformance e2e test ResourceQuota controller should apply changes to a resourcequota status
The e2e test patch the status of a ResourceQuota resources and tries to
verify the controller reset its status, however, the controller ignores
the updates and only reconcile the objects every a predefined interval,
by default 5 minutes.

Since the test polls for 5 minutes, there are some edge cases that the
time to reconcile the object by the reconcile loop is greater than 5
minutes failing the test.

To take into account the time to reconcile the objects and the reconcile
loop period, we increase by one minute the poll loop.

Change-Id: I30f7fda36cdfb47c543b5b2b120e39f7d6c2442d
2023-11-18 20:23:59 +00:00
Davanum Srinivas
64f8c6939f Replace -E with --setenv for systemd-run parameter
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-11-17 10:50:11 -05:00
Kubernetes Prow Robot
c28c200918 Merge pull request #121790 from pwschuurman/fix-framework-test-describe
Pass External Storage label parameters as individual arguments in framework variadic function
2023-11-17 11:38:35 +01:00
Kubernetes Prow Robot
8254569d50 Merge pull request #121861 from jsturtevant/update-waiting-logic-hpa
Fix issue with client rate limiter when polling
2023-11-15 13:40:48 +01:00
James Sturtevant
c99b5a208d Check error from gomega
Signed-off-by: James Sturtevant <jstur@microsoft.com>
2023-11-14 21:29:56 +00:00
James Sturtevant
49e8c196c3 use framework gomega
Signed-off-by: James Sturtevant <jstur@microsoft.com>
2023-11-14 19:35:04 +00:00
upodroid
6aa3002ad2 add kubeup label instead of a feature label 2023-11-14 08:50:35 -08:00
Patrick Ohly
f9ceab37ca e2e: pass context into pod helper functions
This ensures that progress reports and timeouts work.
2023-11-14 15:57:55 +01:00
cpanato
20853ef120 Bump distroless-iptables to v0.4.2
Signed-off-by: cpanato <ctadeu@gmail.com>
2023-11-14 12:07:03 +01:00
Kubernetes Prow Robot
36930f4cb6 Merge pull request #121707 from aravindhp/fix-node-log-viewer-e2e-test
test: Fix NodeLogQuery tests
2023-11-14 07:18:08 +01:00
James Sturtevant
4b1b9a198a Fix issue with client rate limiter when polling
Signed-off-by: James Sturtevant <jstur@microsoft.com>
2023-11-13 20:00:33 +00:00
Kubernetes Prow Robot
cf7a150bba Merge pull request #121711 from pacoxu/fix-buildx
Fix buildx add --provenance=false for pause image build and windows servercore cache
2023-11-13 20:30:26 +01:00
Kubernetes Prow Robot
478a3fc1f7 Merge pull request #121718 from tkashem/apf-conformance
Promote flowcontrol tests to conformance
2023-11-13 17:36:28 +01:00
Kubernetes Prow Robot
6ba7258a0f Merge pull request #121808 from cpanato/go-update-main
[go] Bump images, dependencies and versions to go 1.21.4
2023-11-13 16:15:44 +01:00
Kubernetes Prow Robot
8e1e957504 Merge pull request #121304 from claudiubelu/e2e-increase-memory-limits
e2e: Increases the memory limit for downward API tests
2023-11-13 16:15:33 +01:00
Patrick Ohly
617f2132fe e2e: avoid redundant labels in JUnit file
Because labels are currently typically added also to the spec texts, we don't
need to write them separately.

This redundancy got introduced in f2cfbf44b1 when registering all inline tags
also as labels.
2023-11-13 08:08:09 +01:00
upodroid
4c06bd5bbb fix bad assumptions in gce network tests 2023-11-10 15:33:33 -06:00
Kubernetes Prow Robot
5ce0bd95cc Merge pull request #121677 from kerthcet/cleanup/remove-evnet
Unregister events in schedulingGates for performance
2023-11-10 05:03:33 +01:00
upodroid
60520b6d4a look for the cm after the lb is created 2023-11-09 20:39:42 -06:00
upodroid
bd4707ac9a fix dns autoscaling test to run with coredns 2023-11-08 22:09:54 -06:00
Kubernetes Prow Robot
8a9b209cb1 Merge pull request #121706 from kannon92/fix-oom-swap-fedora
Skip OOMKilled Jobs if Swap is enabled.
2023-11-09 02:04:45 +01:00
Kubernetes Prow Robot
d26c154984 Merge pull request #121818 from liggitt/authz-config-rbac-anonymous
Test authz config file with RBAC and anonymous auth
2023-11-08 23:04:36 +01:00
Kevin Hannon
475bfa4a63 set LimitedSwap 2023-11-08 15:43:12 -05:00
Jordan Liggitt
b53134f129 Test anonymous and RBAC handling via config file 2023-11-08 14:36:05 -06:00
upodroid
76277f693d create a new KubeUp feature label for tests marked for removal 2023-11-08 09:43:12 -06:00
cpanato
88e124ecaa [go] Bump images, dependencies and versions to go 1.21.4
Signed-off-by: cpanato <ctadeu@gmail.com>
2023-11-08 08:25:30 -06:00
Peter Schuurman
e4fdc96c18 Pass External Storage label parameters as individual arguments in framework variadic function 2023-11-07 22:17:36 -08:00
Kubernetes Prow Robot
246d363ea4 Merge pull request #121700 from kannon92/fix-summary-more
missed a few summary upper limits for major page faults
2023-11-06 20:13:04 +01:00
Gunju Kim
1cd1092dd9 Remove NodeAlphaFeature label from sidecar e2e tests 2023-11-06 19:50:05 +09:00
kerthcet
f77a4543d1 Unregister events in schedulingGates plugin
Signed-off-by: kerthcet <kerthcet@gmail.com>
2023-11-06 10:01:13 +08:00
Kubernetes Prow Robot
24e6b03780 Merge pull request #121708 from aravindhp/add-azure-framework-ssh-provider
framework: add SSH support for Azure
2023-11-04 17:19:13 +01:00
Dan Winship
e48aa09340 Make verify-typecheck.sh only check valid targets for a platform
e.g., don't try to compile kube-proxy on darwin, since we don't build
it there anyway.
2023-11-04 10:24:19 -04:00
Paco Xu
70c9eefff3 add --sbom=false --provenance=false for windows servercore cache build 2023-11-04 21:11:05 +08:00
Kubernetes Prow Robot
9f319c3206 Merge pull request #113374 from ahmedtd/kep-3257-projected-types
Implement ClusterTrustBundlePEM projected volume
2023-11-04 01:44:56 +01:00
Kubernetes Prow Robot
953afbb328 Merge pull request #121193 from sohankunkerkar/kubelet-config-dir
Retarget drop-in kubelet configuration dir feature to Alpha
2023-11-03 23:59:29 +01:00