Commit Graph

28436 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
7d8551ad4e Merge pull request #133790 from Jpsassine/fix-leaky-resource-health-test
Fix flaky resource claim metrics test
2025-09-11 04:40:07 -07:00
Kubernetes Prow Robot
4a843fca6f Merge pull request #133272 from drjackild/agnhost-fake-registry-cmd
add fake-registry-server command to agnhost
2025-09-10 19:41:56 -07:00
Yevhen Dubovskoi
3da372354d add fake-registry-server command to agnhost
* command run the limited subset of OCI API and serve static
images from the registry (which are pre-loaded when building an image)
* add pause version to zeitgeist rule for agnhost
* bump version of agnhost to 2.57
2025-09-10 23:31:22 +00:00
Kubernetes Prow Robot
147143e348 Merge pull request #133955 from pacoxu/fix-kubelet-e2e
e2e_node kubelet configuration: merge feature gates and system-reserved items
2025-09-10 15:56:18 -07:00
Kubernetes Prow Robot
6b94b09f0e Merge pull request #130548 from Jefftree/addon-manager-image-bump
Bump addon manager image to v9.1.8
2025-09-10 15:55:56 -07:00
Kubernetes Prow Robot
d433db0782 Merge pull request #133978 from aramase/aramase/i/fix_kms_test_133945
kmsv2: run `TestKMSv2ProviderKeyIDStaleness` tests in parallel
2025-09-10 15:05:55 -07:00
Anish Ramasekar
480fad996d kmsv2: run TestKMSv2ProviderKeyIDStaleness in parallel
This change updates the NowFunc to be per KMS provider instead of global
to the API server. This allows integration tests that use distinct
provider names to run in parallel when simulating key expiry.

Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2025-09-10 14:15:43 -07: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
Kubernetes Prow Robot
5cef241d82 Merge pull request #133218 from nmn3m/kube-controller-manager-statuz
adds a list of available HTTP endpoints for the kube-controller-manag…
2025-09-10 11:48:22 -07:00
Kubernetes Prow Robot
2854e946c3 Merge pull request #131430 from carlory/follow-up-127017
remove v1beta3 flowcontrol from rest storage
2025-09-10 11:48:05 -07:00
Kubernetes Prow Robot
e9eef19379 Merge pull request #129240 from KevinTMtz/evict-terminated-pods-on-disk-pressure
E2e test for cleaning of terminated containers
2025-09-10 11:47:57 -07:00
John-Paul Sassine
dd9917ddce Fix flaky resource claim metrics test
The E2E node test "[DRA] Two resource Kubelet Plugins [Serial] must provide metrics" was failing flakily due to a race condition.

The preceding test, "should not add health status to Pod when feature gate is disabled," was leaking an in-use ResourceClaim. It deleted its pod but did not wait for the Kubelet to finish unprepared the resources, leaving the `dra_resource_claims_in_use` metric at a non-zero value.

This commit makes the cleanup process synchronous so now it  deletes the pod and explicitly waits for the `NodeUnprepareResources` gRPC call to complete making sure resources are released before the test finishes.

Additionally, I fixed  the cleanup logic in the `createHealthTestPodAndClaim` helper function to prevent a `DeviceClass` leak.
2025-09-10 18:21:35 +00:00
Kubernetes Prow Robot
bbd859808d Merge pull request #133921 from dims/update-prometheus-client-golang-and-common-packages
update prometheus' client_golang and common packages
2025-09-10 08:40:06 -07:00
carlory
7e6aafe157 fix intergation test
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-09-10 22:51:41 +08:00
Kubernetes Prow Robot
a9fe67a1dd Merge pull request #133990 from macsko/minor_fixes_in_scheduler
Fix minor inconsistencies in scheduler
2025-09-10 06:58:11 -07:00
Patrick Ohly
83273e21b9 DRA scheduler_perf: clean up usage of steady-state pod scheduling
The steady-state pod scheduling is less suitable for integration tests because
the duration is either short (making the test potentially flaky if nothing gets
scheduled yet due to the time constraint) or long (making the test run too
long). It is more useful for benchmark testcase because of the bounded runtime.

Now a single workload definition can be used in both modes with a configuration
parameter for "steadyState".

Workload definitions get updated accordingly. While at it, their names get
simplified and some (in the case of the main DRA config) redundant testcases
get removed.
2025-09-10 13:47:08 +02:00
Patrick Ohly
9af3e86810 scheduler_perf: detect testcases with no pods scheduled
Some of the DRA testcases schedule pods in a steady state for a certain
duration. They pass even if no pods got scheduled at all because in contrast to
the non-steady-state variants they don't wait for fixed number of pods to be
scheduled. This made them unsuitable for integration testing because a real
problem is not flagged as test failure. Now "zero pods scheduled" is detected
for them.

However, they are still not good integration tests (either run quickly and then
risk being flaky or run for a longer time period and then are slow). Revisiting
how they are used in configurations will be done separately.
2025-09-10 13:47:08 +02:00
Maciej Skoczeń
3dfcda9afd Fix minor inconsistencies in scheduler 2025-09-10 11:40:10 +00:00
Kubernetes Prow Robot
2e13e70d5f Merge pull request #133983 from sunya-ch/simplified-consumable-capacity-integration-test
DRA: Fix ConsumableCapacity shceduler perf test (simplified)
2025-09-10 02:16:14 -07:00
Kubernetes Prow Robot
ae9ff9545a Merge pull request #133981 from mortent/FixPrioritizedListSchedPerfTest
DRA: Fix PrioritizedList scheduler perf test
2025-09-10 02:16:06 -07:00
Sunyanan Choochotkaew
5483c52e10 DRA: Fix ConsumableCapacity shceduler perf test (simplified)
Signed-off-by: Sunyanan Choochotkaew <sunyanan.choochotkaew1@ibm.com>
2025-09-10 13:41:37 +09:00
Kubernetes Prow Robot
d16a15958e Merge pull request #133971 from danwinship/kube-proxy-e2e
Put the nfacct e2e test back under the "KubeProxy" label
2025-09-09 19:30:05 -07:00
Morten Torkildsen
81cb5b7df2 DRA: Fix PrioritizedList scheduler perf test 2025-09-09 22:13:32 +00:00
Davanum Srinivas
e2e7fa1799 switch our usage of expfmt.TextParser 2025-09-09 15:53:48 -04:00
Kubernetes Prow Robot
8548f32a46 Merge pull request #133941 from pohly/scheduler-perf-dra-resourceslices
scheduler_perf: treat ResourceSlice publishing as workload startup
2025-09-09 11:57:56 -07:00
Dan Winship
471256619f Put the nfacct e2e test back under the "KubeProxy" label
So you can skip all kube-proxy-specific tests with a single skip
2025-09-09 11:35:39 -04:00
Patrick Ohly
8b50c77eb6 scheduler_perf: measure DRA setup time
The time required for pulling ResourceSlices into the scheduler is relevant in
two cases:
- The scheduler was (re)started and waits for informers to sync.
- A driver got deployed and needs to inform the scheduler about its devices.

The new workload measures the second scenario. It's indirectly relevant for
the first one because it allows drawing conclusion about the code which is also
involved in the first one.
2025-09-09 15:15:29 +02:00
Kubernetes Prow Robot
1bec132e1e Merge pull request #133939 from pohly/scheduler-perf-testing-B-metrics
scheduler_perf: reset and stop testing.B metrics
2025-09-09 02:59:31 -07:00
Paco Xu
1e3c3934cb e2e_node kubelet configuration: merge feature gates and system-reserved items 2025-09-09 15:19:36 +08:00
Mauricio Poppe
55700685bd Revert "Add retries to node's crictl test" 2025-09-08 20:35:31 -04:00
Patrick Ohly
8ff5cec261 scheduler_perf: block after creating ResourceSlices
After creating ResourceSlices, the workload was allowed to proceed even while
the scheduler was still busy receiving those new ResourceSlices. This blurred
the line between "setup" and "measurement" phase of DRA workloads. It's not
immediately clear how much that affected results, but it is cleaner to block.

This is done by returning the scheduler instance to the main scheduler_perf
loop and then pass the SharedDRAManager into the driver setup operation. There
it can be used to poll until that manager has processed all ResourceSlices.
2025-09-08 19:36:32 +02:00
Patrick Ohly
af6da561dd scheduler_perf: reset and stop testing.B metrics
Before, metrics gathered by testing.B (runtime_seconds,
-benchmem's B/op and allocs/op) covered the entire test case, including
starting the apiserver and the initialization steps of a workload. Now those
metrics are also limited to the period where the workload is configured to
collect metrics.
2025-09-08 19:17:24 +02:00
Kubernetes Prow Robot
90b03f1af0 Merge pull request #133910 from bitoku/fix-graceful-shutdown
Fix GracefulNodeShutdown perma failing test
2025-09-08 07:39:38 -07:00
Kubernetes Prow Robot
08946ca255 Merge pull request #132606 from Peac36/fix/132539
add paths section to scheduler statusz endpoint
2025-09-08 07:39:31 -07:00
Kubernetes Prow Robot
597a684bb0 Merge pull request #133172 from ania-borowiec/move_handle_and_plugin
Move interfaces: Handle and Plugin and related types from kubernetes/kubernetes to staging repo kube-scheduler
2025-09-08 06:05:31 -07:00
Ayato Tokubi
5ed98e97e1 Remove getLocalNode to fix GracefulNodeShutdown e2e.
getLocalNode tried to get a ready node and fails if there's none.
The e2e test sends termination signal to kubelet and it's expected to have no ready nodes. Because of this, the e2e was permafailing.

Signed-off-by: Ayato Tokubi <atokubi@redhat.com>
2025-09-08 12:20:55 +00:00
Nikola
b42b96f518 add paths section to scheduler statusz endpoint
Signed-off-by: Nikola <peac36@abv.bg>
2025-09-08 13:13:42 +03:00
Kubernetes Prow Robot
b508767369 Merge pull request #132655 from ylink-lfs/ci/httpd_removal
ci: remove httpd usage while using agnhost instead
2025-09-05 20:23:24 -07:00
Kubernetes Prow Robot
e8b19be173 Merge pull request #133440 from carlory/deflake-service-tests
deflake e2e test: Services should implement NodePort and HealthCheckNodePort correctly when ExternalTrafficPolicy changes
2025-09-05 14:37:42 -07:00
Kubernetes Prow Robot
ef4add4509 Merge pull request #133356 from mayuka-c/issue-133175
Replace usage of deprecated ErrWaitTimeout with recommended method across all Pkgs
2025-09-05 06:43:34 -07:00
Kevin Torres
86e3ad233f Revert trapping TERM for podWithCommand 2025-09-04 18:46:54 +00:00
Kubernetes Prow Robot
6f093ef292 Merge pull request #133792 from HirazawaUi/lock-AllowOverwriteTerminationGracePeriodSeconds
Lock down AllowOverwriteTerminationGracePeriodSeconds
2025-09-04 09:13:17 -07:00
HirazawaUi
43c3b03685 Lock AllowOverwriteTerminationGracePeriodSeconds 2025-09-04 19:25:26 +08:00
Kubernetes Prow Robot
76ab726b8e Merge pull request #133875 from pohly/apimachinery-apply-flake
apply integration test: fix ordering test flake
2025-09-03 14:03:23 -07:00
Kubernetes Prow Robot
4a79948217 Merge pull request #133473 from roycaihw/psi-cpu-pressure-test
PSI test: add a CPU limit of 500m to cpu-stress-pod
2025-09-03 14:03:15 -07:00
Kubernetes Prow Robot
5dff07fdf9 Merge pull request #133837 from saschagrunert/cni-plugins
Update CNI plugins to v1.8.0
2025-09-03 07:53:15 -07:00
Patrick Ohly
7e9b228ff0 apply integration test: fix ordering test flake
Most of the time the managed fields were returned in the order as expected,
but not always. Semantically the order is irrelevant, so the comparison gets
relaxed to ignore it by normalizing first.
2025-09-03 16:50:42 +02:00
Kubernetes Prow Robot
a76d7e2338 Merge pull request #133867 from pohly/scheduler-perf-create-pods-data-race
scheduler-perf: fix data race in createPodsSteadily
2025-09-03 06:27:21 -07:00
Kubernetes Prow Robot
18c188467d Merge pull request #133438 from saschagrunert/timeout-pod-should-get-evicted
Increase termination timeout for `evicted pods should be terminal` test
2025-09-03 03:53:14 -07:00