Commit Graph

16234 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
51e35e61ce Merge pull request #133870 from pohly/build-data-race-detection
build: also support KUBE_RACE for test binaries
2025-10-08 12:57:01 -07:00
Patrick Ohly
9702a2dca2 E2E framework: enable data race detection only if needed
When building the test binary without race detection, we don't
need the post-processing of the JUnit file because it cannot
contain data race reports. This can be done via build tags.
2025-10-08 08:45:21 +02:00
Kubernetes Prow Robot
0dd78f632e Merge pull request #133747 from pohly/dra-e2e-crud-conformance
DRA: CRUD conformance tests
2025-10-02 20:22:56 -07:00
Kubernetes Prow Robot
5c73384abb Merge pull request #134283 from natasha41575/ippr-tests
[InPlacePodVerticalScaling] refactor and increase coverage for pod resize tests
2025-10-02 17:39:10 -07:00
Benjamin Elder
52dec274b3 add TODO to migrate when new metrics mature and old metrics are deprecated 2025-10-02 15:03:29 -07:00
Benjamin Elder
7c529f25f4 add apiserver_validation_declarative_validation_panic_total invariant 2025-10-02 15:00:44 -07:00
Benjamin Elder
84ce0f57f2 add test to verify invariants are fully specified 2025-10-02 14:57:49 -07:00
Benjamin Elder
41ae5cdf4b check invariant metrics after e2e tests 2025-10-02 14:08:08 -07:00
Natasha Sarkar
748510b8ee refactor and increase coverage for pod resize tests 2025-10-02 20:47:40 +00:00
Kubernetes Prow Robot
a412a15109 Merge pull request #134304 from humblec/volume-fixes
Update CSI sidecar container images in test manifest
2025-10-02 13:00:57 -07:00
Patrick Ohly
f95d531b0a DRA: CRUD conformance tests
Promoting real tests turned out to be harder than expected (should be rewritten
to be self-contained, additional reviews, etc.).

They would not achieve 100% endpoint+operation coverage because real tests only
use some of the operations. Therefore each API type has to be covered with
CRUD-style tests which only exercise the apiserver, then maybe additional
functional tests can be added later (depending on time and motivation).

The machinery for testing different API types is meant to be reusable, so it
gets added in the new e2e/framework/conformance helper package.
2025-10-02 17:43:33 +02:00
Patrick Ohly
545526cfe0 DRA E2E: only check ResourceClaims in the test namespace
That was the original intent, but the implementation then ended up checking
ResourceClaims in all namespaces. Depending on timing this was merely
misleading (showing ResourceClaim changes from a different test running in
parallel), but with upcoming CRUD tests which intentionally set an allocation
result without a finalizer it breaks the non-CRUD tests when they check the
those CRUD ResourceClaims.
2025-10-02 16:07:48 +02:00
Kubernetes Prow Robot
c7f910ed1f Merge pull request #133762 from natasha41575/expandQuotaTests
[InPlacePodVerticalScaling] Expand coverage for resourceQuota and limitRanger e2e tests
2025-10-02 00:10:56 -07:00
Jordan Liggitt
af9facf7ba Fix passing runtime.Object to HaveValidResourceVersion check 2025-10-01 10:00:54 -04:00
Kubernetes Prow Robot
81d7612a53 Merge pull request #134330 from michaelasp/rvCmp
Add resource version comparison function in client-go along with conformance
2025-09-30 20:58:16 -07:00
Michael Aspinwall
9757d8d8ef Document 0 as a special case in RV comparison 2025-10-01 03:09:26 +00:00
Michael Aspinwall
84f85712be feat: Add matcher and conformance tests ensuring that RV is uint128 2025-10-01 00:01:50 +00:00
Michael Aspinwall
7c24e62d7c Add additional types for resource version comparison testing 2025-09-30 17:16:07 +00:00
Humble Devassy Chirammal
723d1555a7 test: update CSI sidecar images to latest versions
Update CSI sidecar container images in test manifests:
- livenessprobe: v2.15.0 → v2.17.0
- csi-attacher: v4.8.0 → v4.10.0
- csi-provisioner: v5.1.0 → v5.3.0
- csi-resizer: v1.13.1 → v1.14.0

Signed-off-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
2025-09-30 18:50:08 +05:30
Kubernetes Prow Robot
7353b6a93d Merge pull request #134312 from alaypatel07/gc-resourceclaim-extendedresource
fix resource claims deallocation for extended resource when pod is completed
2025-09-30 01:38:20 -07:00
Michael Aspinwall
37fcfcd29e feat: Add conformance tests for all resources for comparable resource version 2025-09-29 23:32:07 +00:00
Kubernetes Prow Robot
e87a447ca2 Merge pull request #134327 from p0lyn0mial/watchlist-e2e-table-improve
test/e2e/apimachinery/watchlist: select only wellknown secrets for table test
2025-09-29 13:46:16 -07:00
Alay Patel
8a03067211 fix resource claims deallocation for extended resource when pod is completed
Signed-off-by: Alay Patel <alayp@nvidia.com>
2025-09-29 15:15:40 -04:00
Lukasz Szaszkiewicz
212a9c6a60 test/e2e/apimachinery/watchlist: select only wellknown secrets for table test 2025-09-29 13:36:38 +02:00
Jean-Marc François
d559a4afe7 Add configurable tolerance e2e test. 2025-09-26 10:58:20 -04:00
Kubernetes Prow Robot
ad4a8a7e8a Merge pull request #134225 from jsafrane/fix-selinux-test-event
Fix SELinux e2e tests waiting for "container created" event
2025-09-24 05:18:18 -07:00
Kubernetes Prow Robot
08489ee0d8 Merge pull request #134062 from rbiamru/add-nodeconformance-labels
test/e2e/node: add [NodeConformance] label to ConfigMap update test
2025-09-23 15:48:13 -07:00
Jan Safranek
7930c2db4c Fix SELinux e2e tests waiting for "container created" event
A recent PR has changed the content of "Started container" event to "Container started".
Instead of checking the exact event message, check the event source
("kubelet") and reason ("Started"), that should uniquely identify the
event.
2025-09-23 18:08:50 +02:00
Adrian Moisey
ea914d8077 Remove unused WaitForServiceEndpointsNum function
along with the now-unused countEndpointsSlicesNum function
2025-09-21 14:48:13 +02:00
Adrian Moisey
01f7de46f6 Replace deprecated WaitForServiceEndpointsNum call with WaitForEndpointCount 2025-09-21 14:47:03 +02:00
Natasha Sarkar
89b75e998d expand coverage for resource quota and limit ranger tests 2025-09-19 15:44:42 +00:00
Kubernetes Prow Robot
b2f9a821ea Merge pull request #133931 from ardaguclu/fix-flaky-all-logs
Wait the readiness of pods for all the containers generate logs
2025-09-19 04:20:12 -07:00
Arda Güçlü
883b9e570a Wait the readiness of pods for all the containers generate logs 2025-09-19 13:25:50 +03:00
Kubernetes Prow Robot
58715a58da Merge pull request #133620 from zeqian-meng/remove-rbd-image
Remove rbd image and storage class
2025-09-18 18:36:11 -07:00
Heba
36e3adf318 Add e2e test for MaxUnavailable StatefulSet RollingUpdate (#133717)
* Add e2e test for MaxUnavailable rolling update

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>

* Update test/e2e/apps/statefulset.go

Co-authored-by: Maciej Szulik <soltysh@gmail.com>

* Adress feedback comments

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>

* address feedback

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>

* expose poll interval as a param

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>

* Update test/e2e/apps/statefulset.go

Co-authored-by: Maciej Szulik <soltysh@gmail.com>

* Update test/e2e/framework/statefulset/wait.go

Co-authored-by: Maciej Szulik <soltysh@gmail.com>

* fix pollinterval

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>

* update time duration style

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>

---------

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>
Co-authored-by: Maciej Szulik <soltysh@gmail.com>
2025-09-18 03:53:42 -07:00
Jordan Liggitt
4b0eeeb618 Make pod-security-admission honor emulation version 2025-09-17 15:32:32 -04:00
Patrick Ohly
7a62519b36 E2E: treat data races in e2e suite as failures
Ginkgo itself doesn't do this, in which case prun-junit-xml drops the output
and Spyglass wouldn't show the test as failed. If the data race warning is
captured, we now treat that as the failure of a test if it hasn't already
failed for other reasons.

While at it, the entire report cleanup gets moved to our junit package.
2025-09-16 19:34:36 +02:00
rbiamru
1c41cb0550 fix gofmt 2025-09-16 00:46:26 -04:00
rbiamru
842d6d29fc test/e2e/node: promote ConfigMap update test to Conformance 2025-09-16 00:00:25 -04:00
Hemant Kumar
f99cb99a1b Wait for quota to report used before creating pvc
This should avoid races between pvc creation and quota creation
2025-09-15 13:16:22 -04:00
Kubernetes Prow Robot
c10a2932d4 Merge pull request #133952 from pacoxu/fix-image-name
fix CI failure: update pod image using the same one
2025-09-15 00:32:10 -07:00
Amruthan Manjula Anandan
938b23879a test/e2e/node: add [NodeConformance] label to ConfigMap update test 2025-09-15 00:01:08 -04:00
Kubernetes Prow Robot
c475dd271b Merge pull request #134014 from toVersus/fix/downward-api-flake
deflake e2e tests: Pod Level Resources Downward API
2025-09-12 15:24:06 -07:00
Kubernetes Prow Robot
601068b889 Merge pull request #134018 from tico88612/cleanup/new-indexer-informer-watcher-replace
Replace NewIndexerInformerWatcher with NewIndexerInformerWatcherWithLogger
2025-09-12 03:18:08 -07:00
Kubernetes Prow Robot
1d80f35350 Merge pull request #132791 from bitoku/cpu-weight
Update pod resize test to accept new cpu.weight conversion.
2025-09-11 16:20:08 -07:00
Kubernetes Prow Robot
d602326b87 Merge pull request #133363 from yliaog/implicit
Allow implicit extended resource name to be used no matter explicit extendedResourceName field is set or not in device class
2025-09-11 13:40:07 -07:00
ChengHao Yang
029d314e15 Replace NewIndexerInformerWatcher with NewIndexerInformerWatcherWithLogger
Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
2025-09-12 01:44:02 +08:00
Tsubasa Nagasawa
ecff35e2fb deflake e2e tests: set cpu requests to avoid out of cpu
Pod Level Resources Downward API has two test cases. In each
test, a Pod is created with only CPU limits of 1250m specified.
Since CPU limits are set, the CPU requests also default to 1250m.
With a Node capacity of 2000m, two 1250m Pods cannot be scheduled,
which appears to cause the OutOfCpu error.
2025-09-11 21:44:44 +09:00
Kubernetes Prow Robot
78f5d2e6ee Merge pull request #133949 from mauriciopoppe/revert-133476-crictl-parallel
Revert "Add retries to node's crictl test"
2025-09-10 14:14:03 -07:00
Kubernetes Prow Robot
38e21c91b9 Merge pull request #133324 from adrianmoisey/replace-deprecated-WaitForServiceEndpointsNum
Replace deprecated WaitForServiceEndpointsNum with WaitForEndpointCount
2025-09-10 14:13:56 -07:00