Skip to content

chore(deps): revert k8s.io/* module group to v0.34.x#1753

Open
gshaibi wants to merge 3 commits into
mainfrom
shaibi/downgrade-k8s-version-to-0.34.3
Open

chore(deps): revert k8s.io/* module group to v0.34.x#1753
gshaibi wants to merge 3 commits into
mainfrom
shaibi/downgrade-k8s-version-to-0.34.3

Conversation

@gshaibi

@gshaibi gshaibi commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Description

Reverts the Kubernetes dependency bump from #1472 / #1466 back to the proven-good pre-upgrade baseline:

  • k8s.io/* module group → v0.34.3 (kube-scheduler v0.34.1, others v0.34.1/.2 as before the bump)
  • k8s.io/kubernetesv1.34.2
  • sigs.k8s.io/controller-runtimev0.22.3

The original bump required code adaptations to 0.35 upstream API breakages; this PR reverts those:

  • Scheduler framework types sourced from k8s.io/kubernetes/pkg/scheduler/framework again (the heavy types — Handle, PreFilterResult, NodeInfoLister, etc. — that don't exist in k8s.io/kube-scheduler/framework at v0.34).
  • controller-runtime webhooks back to NewWebhookManagedBy(mgr).For(obj) with runtime.Object type-cast boilerplate (no typed generics).
  • DRA feature gate set via featureutil.DefaultMutableFeatureGate (SetFromMap) instead of the process-wide atomic.Bool flag introduced for the GA-locked 1.35 gate. The unrelated NodeResourceTopology feature gate is preserved.

Build-time pins reverted as well (hygiene — the ±1 version skew guarantee means these aren't correctness-critical):

  • envtest 1.34.0, setup-envtest release-0.22
  • default kind tag v1.34.0

The e2e runtime-compat matrix (1.35/1.36) and SUPPORT.md are intentionally left unchanged — KAI still runs against newer clusters.

Related Issues

Fixes #

Checklist

  • Self-reviewed
  • Added/updated tests (if needed) — reverted DRA feature-gate tests to the upstream-gate form
  • Updated documentation (if needed)

Breaking Changes

None.

Additional Notes

Verified locally: go build ./..., go vet ./... (compiles all test binaries), and unit tests for the affected packages (feature_gates, cache, dynamicresources, predicates, k8s_internal, v2alpha2 webhook) all pass; gofmt clean.

Revert the bump in #1472 / #1466. Restore the pre-upgrade dependency
baseline: k8s.io/* to v0.34.3 (kube-scheduler v0.34.1),
k8s.io/kubernetes to v1.34.2, and sigs.k8s.io/controller-runtime to
v0.22.3.

Reverts the API adaptations made for the 0.35 upstream:
- scheduler framework types sourced from k8s.io/kubernetes/pkg/scheduler/framework again
- controller-runtime webhooks back to NewWebhookManagedBy(mgr).For(obj) with runtime.Object casts
- DRA feature gate set via featureutil DefaultMutableFeatureGate instead of the process-wide flag

Also reverts build-time pins: envtest 1.34.0 / setup-envtest release-0.22
and the default kind tag v1.34.0.

Signed-off-by: Guy Shaibi <gshaibi@gmail.com>
@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 98390da7-04e6-4297-b7ec-0fe9f8bf79e2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch shaibi/downgrade-k8s-version-to-0.34.3

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

gshaibi added 2 commits June 24, 2026 13:01
SetDRAFeatureGate returns an error again after the k8s v0.34 revert;
handle it at the binder app entrypoint to satisfy errcheck.

Signed-off-by: Guy Shaibi <gshaibi@gmail.com>
controller-gen embeds version-dependent godoc from the k8s API types
(taint toleration operators, DRA driver vendor docs); revert the CRD
manifests to the v0.34 output to satisfy the generated-code drift check.

Signed-off-by: Guy Shaibi <gshaibi@gmail.com>
@gshaibi gshaibi force-pushed the shaibi/downgrade-k8s-version-to-0.34.3 branch from cd264a9 to c00dfb8 Compare June 24, 2026 10:21
@github-actions

Copy link
Copy Markdown

📊 Performance Benchmark Results

Comparing PR (shaibi/downgrade-k8s-version-to-0.34.3) vs main branch — click to expand
goos: linux
goarch: amd64
pkg: github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions
cpu: AMD EPYC 7763 64-Core Processor                
                                    │ main-bench.txt │           pr-bench.txt            │
                                    │     sec/op     │   sec/op     vs base              │
AllocateAction_SmallCluster-4            108.3m ± 0%   108.4m ± 5%       ~ (p=0.818 n=6)
AllocateAction_MediumCluster-4           135.2m ± 0%   135.2m ± 1%       ~ (p=1.000 n=6)
AllocateAction_LargeCluster-4            204.2m ± 1%   205.0m ± 5%       ~ (p=0.310 n=6)
ReclaimAction_SmallCluster-4             103.3m ± 0%   103.4m ± 0%       ~ (p=0.240 n=6)
ReclaimAction_MediumCluster-4            106.1m ± 0%   106.2m ± 1%       ~ (p=0.937 n=6)
PreemptAction_SmallCluster-4             104.4m ± 0%   104.5m ± 0%       ~ (p=0.937 n=6)
PreemptAction_MediumCluster-4            117.7m ± 1%   117.7m ± 1%       ~ (p=0.485 n=6)
ConsolidationAction_SmallCluster-4       125.0m ± 1%   125.4m ± 1%       ~ (p=0.937 n=6)
ConsolidationAction_MediumCluster-4      284.1m ± 1%   285.9m ± 2%       ~ (p=0.485 n=6)
FullSchedulingCycle_SmallCluster-4       106.1m ± 0%   105.9m ± 0%       ~ (p=0.093 n=6)
FullSchedulingCycle_MediumCluster-4      120.7m ± 1%   120.2m ± 2%       ~ (p=0.310 n=6)
FullSchedulingCycle_LargeCluster-4       158.1m ± 1%   158.3m ± 1%       ~ (p=0.485 n=6)
ManyQueues_MediumCluster-4               139.7m ± 1%   138.7m ± 1%       ~ (p=0.310 n=6)
GangScheduling_MediumCluster-4           158.0m ± 2%   157.1m ± 2%       ~ (p=0.240 n=6)
geomean                                  134.6m        134.6m       -0.01%

                                    │ main-bench.txt │            pr-bench.txt            │
                                    │      B/op      │     B/op      vs base              │
AllocateAction_SmallCluster-4           2.314Mi ± 1%   2.305Mi ± 1%       ~ (p=0.065 n=6)
AllocateAction_MediumCluster-4          11.95Mi ± 0%   11.92Mi ± 0%  -0.25% (p=0.002 n=6)
AllocateAction_LargeCluster-4           40.04Mi ± 0%   39.96Mi ± 0%  -0.19% (p=0.002 n=6)
ReclaimAction_SmallCluster-4            948.5Ki ± 0%   941.4Ki ± 1%       ~ (p=0.065 n=6)
ReclaimAction_MediumCluster-4           3.094Mi ± 0%   3.063Mi ± 0%  -0.98% (p=0.002 n=6)
PreemptAction_SmallCluster-4            1.348Mi ± 1%   1.333Mi ± 1%  -1.09% (p=0.004 n=6)
PreemptAction_MediumCluster-4           5.938Mi ± 0%   5.894Mi ± 0%  -0.75% (p=0.002 n=6)
ConsolidationAction_SmallCluster-4      10.03Mi ± 0%   10.01Mi ± 0%  -0.11% (p=0.004 n=6)
ConsolidationAction_MediumCluster-4     88.78Mi ± 0%   88.73Mi ± 0%  -0.06% (p=0.002 n=6)
FullSchedulingCycle_SmallCluster-4      1.483Mi ± 1%   1.481Mi ± 1%       ~ (p=0.394 n=6)
FullSchedulingCycle_MediumCluster-4     7.020Mi ± 0%   6.989Mi ± 0%  -0.44% (p=0.002 n=6)
FullSchedulingCycle_LargeCluster-4      22.38Mi ± 0%   22.31Mi ± 0%  -0.32% (p=0.002 n=6)
ManyQueues_MediumCluster-4              16.44Mi ± 0%   16.41Mi ± 0%  -0.20% (p=0.002 n=6)
GangScheduling_MediumCluster-4          17.21Mi ± 0%   17.15Mi ± 0%  -0.32% (p=0.002 n=6)
geomean                                 7.405Mi        7.373Mi       -0.43%

                                    │ main-bench.txt │           pr-bench.txt            │
                                    │   allocs/op    │  allocs/op   vs base              │
AllocateAction_SmallCluster-4            36.03k ± 0%   36.04k ± 0%  +0.05% (p=0.006 n=6)
AllocateAction_MediumCluster-4           302.8k ± 0%   302.8k ± 0%       ~ (p=0.188 n=6)
AllocateAction_LargeCluster-4            1.266M ± 0%   1.266M ± 0%       ~ (p=0.180 n=6)
ReclaimAction_SmallCluster-4             8.912k ± 0%   8.930k ± 0%  +0.20% (p=0.002 n=6)
ReclaimAction_MediumCluster-4            28.05k ± 0%   28.07k ± 0%  +0.07% (p=0.002 n=6)
PreemptAction_SmallCluster-4             15.18k ± 0%   15.15k ± 0%  -0.22% (p=0.002 n=6)
PreemptAction_MediumCluster-4            54.94k ± 0%   54.76k ± 0%  -0.33% (p=0.002 n=6)
ConsolidationAction_SmallCluster-4       130.1k ± 0%   130.0k ± 0%  -0.07% (p=0.002 n=6)
ConsolidationAction_MediumCluster-4      1.282M ± 0%   1.282M ± 0%  -0.03% (p=0.002 n=6)
FullSchedulingCycle_SmallCluster-4       21.55k ± 0%   21.57k ± 0%  +0.10% (p=0.002 n=6)
FullSchedulingCycle_MediumCluster-4      164.7k ± 0%   164.7k ± 0%  +0.02% (p=0.024 n=6)
FullSchedulingCycle_LargeCluster-4       666.2k ± 0%   666.2k ± 0%  +0.00% (p=0.004 n=6)
ManyQueues_MediumCluster-4               341.3k ± 0%   341.3k ± 0%       ~ (p=1.000 n=6)
GangScheduling_MediumCluster-4           551.4k ± 0%   551.4k ± 0%       ~ (p=0.818 n=6)
geomean                                  124.5k        124.4k       -0.02%

pkg: github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions/integration_tests/reclaim
                            │ main-bench.txt │           pr-bench.txt            │
                            │     sec/op     │   sec/op     vs base              │
ReclaimLargeJobs_10Node-4        105.2m ± 0%   105.2m ± 1%       ~ (p=0.699 n=6)
ReclaimLargeJobs_50Node-4        265.4m ± 2%   262.2m ± 4%       ~ (p=0.699 n=6)
ReclaimLargeJobs_100Node-4       478.1m ± 9%   486.0m ± 5%       ~ (p=0.818 n=6)
ReclaimLargeJobs_200Node-4        1.043 ± 1%    1.026 ± 2%  -1.68% (p=0.009 n=6)
ReclaimLargeJobs_500Node-4        3.973 ± 2%    3.915 ± 1%  -1.46% (p=0.015 n=6)
ReclaimLargeJobs_1000Node-4       13.74 ± 1%    13.60 ± 2%       ~ (p=0.132 n=6)
geomean                          955.3m        949.4m       -0.62%

                            │ main-bench.txt │            pr-bench.txt            │
                            │      B/op      │     B/op      vs base              │
ReclaimLargeJobs_10Node-4       2.073Mi ± 3%   2.060Mi ± 3%       ~ (p=0.240 n=6)
ReclaimLargeJobs_50Node-4       80.24Mi ± 0%   80.15Mi ± 0%       ~ (p=0.093 n=6)
ReclaimLargeJobs_100Node-4      165.2Mi ± 0%   165.1Mi ± 0%  -0.10% (p=0.009 n=6)
ReclaimLargeJobs_200Node-4      345.0Mi ± 0%   344.7Mi ± 0%  -0.09% (p=0.002 n=6)
ReclaimLargeJobs_500Node-4      924.6Mi ± 0%   923.7Mi ± 0%  -0.09% (p=0.002 n=6)
ReclaimLargeJobs_1000Node-4     2.007Gi ± 0%   2.006Gi ± 0%  -0.05% (p=0.002 n=6)
geomean                         161.9Mi        161.6Mi       -0.18%

                            │ main-bench.txt │           pr-bench.txt            │
                            │   allocs/op    │  allocs/op   vs base              │
ReclaimLargeJobs_10Node-4        23.21k ± 2%   23.22k ± 2%       ~ (p=0.063 n=6)
ReclaimLargeJobs_50Node-4        1.071M ± 0%   1.071M ± 0%  -0.02% (p=0.002 n=6)
ReclaimLargeJobs_100Node-4       2.224M ± 0%   2.223M ± 0%  -0.02% (p=0.002 n=6)
ReclaimLargeJobs_200Node-4       4.692M ± 0%   4.691M ± 0%  -0.02% (p=0.002 n=6)
ReclaimLargeJobs_500Node-4       12.88M ± 0%   12.88M ± 0%  -0.02% (p=0.002 n=6)
ReclaimLargeJobs_1000Node-4      29.74M ± 0%   29.74M ± 0%  -0.01% (p=0.002 n=6)
geomean                          2.152M        2.152M       -0.00%

pkg: github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions/reclaim
                                             │ main-bench.txt │           pr-bench.txt            │
                                             │     sec/op     │   sec/op     vs base              │
ReclaimUnschedulableDistributedJob_10Node-4       148.1m ± 1%   147.8m ± 2%       ~ (p=0.818 n=6)
ReclaimUnschedulableDistributedJob_50Node-4        10.59 ± 1%    10.73 ± 4%       ~ (p=0.065 n=6)
ReclaimUnschedulableDistributedJob_100Node-4       49.81 ± 1%    50.35 ± 3%       ~ (p=0.240 n=6)
ReclaimWithMissingPVCJobs-4                       2.394m ± 8%   2.316m ± 9%       ~ (p=0.310 n=6)
geomean                                           657.6m        655.9m       -0.26%

                                             │ main-bench.txt │            pr-bench.txt            │
                                             │      B/op      │     B/op      vs base              │
ReclaimUnschedulableDistributedJob_10Node-4      21.33Mi ± 3%   21.28Mi ± 4%       ~ (p=0.699 n=6)
ReclaimUnschedulableDistributedJob_50Node-4      3.499Gi ± 0%   3.499Gi ± 0%       ~ (p=0.132 n=6)
ReclaimUnschedulableDistributedJob_100Node-4     18.19Gi ± 0%   18.19Gi ± 0%       ~ (p=0.485 n=6)
ReclaimWithMissingPVCJobs-4                      8.539Ki ± 1%   8.648Ki ± 2%       ~ (p=0.242 n=6)
geomean                                          58.70Mi        58.85Mi       +0.26%

                                             │ main-bench.txt │           pr-bench.txt            │
                                             │   allocs/op    │  allocs/op   vs base              │
ReclaimUnschedulableDistributedJob_10Node-4       318.8k ± 3%   318.8k ± 3%       ~ (p=0.515 n=6)
ReclaimUnschedulableDistributedJob_50Node-4       99.70M ± 0%   99.69M ± 0%       ~ (p=0.699 n=6)
ReclaimUnschedulableDistributedJob_100Node-4      617.1M ± 0%   617.1M ± 0%       ~ (p=0.240 n=6)
ReclaimWithMissingPVCJobs-4                        158.5 ± 0%    159.0 ± 1%       ~ (p=0.545 n=6)
geomean                                           1.328M        1.329M       +0.08%

Legend

  • 📉 Negative delta = Performance improvement (faster)
  • 📈 Positive delta = Performance regression (slower)
  • p-value < 0.05 indicates statistically significant change
Raw benchmark data

PR branch:

goos: linux
goarch: amd64
pkg: github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions
cpu: AMD EPYC 7763 64-Core Processor                
BenchmarkAllocateAction_SmallCluster-4         	       9	 114251897 ns/op	 2446262 B/op	   36063 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108070098 ns/op	 2418603 B/op	   36048 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108327550 ns/op	 2414217 B/op	   36030 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108406564 ns/op	 2414672 B/op	   36040 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108147675 ns/op	 2419508 B/op	   36047 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108708129 ns/op	 2415551 B/op	   36041 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 135681792 ns/op	12503490 B/op	  302786 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 134387836 ns/op	12501936 B/op	  302759 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 135087572 ns/op	12503436 B/op	  302779 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 134663858 ns/op	12503363 B/op	  302718 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 135320791 ns/op	12501225 B/op	  302770 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 136511698 ns/op	12501933 B/op	  302788 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       5	 205247758 ns/op	41900076 B/op	 1266181 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       5	 204177113 ns/op	41902342 B/op	 1266241 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       5	 205129108 ns/op	41901084 B/op	 1266186 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       5	 214606425 ns/op	41897627 B/op	 1266243 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       5	 203879221 ns/op	41894510 B/op	 1266209 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       5	 204907291 ns/op	41904672 B/op	 1266224 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103199699 ns/op	  959895 B/op	    8929 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103683678 ns/op	  963946 B/op	    8929 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103533159 ns/op	  968108 B/op	    8932 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103767655 ns/op	  964042 B/op	    8930 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103298068 ns/op	  963981 B/op	    8929 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103253762 ns/op	  972943 B/op	    8931 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 107273668 ns/op	 3207988 B/op	   28074 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106202644 ns/op	 3214213 B/op	   28074 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106221167 ns/op	 3213991 B/op	   28073 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 105920286 ns/op	 3210316 B/op	   28072 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106178784 ns/op	 3214535 B/op	   28074 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 105958456 ns/op	 3210301 B/op	   28072 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104524031 ns/op	 1397506 B/op	   15145 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104347569 ns/op	 1394277 B/op	   15146 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104690382 ns/op	 1393791 B/op	   15145 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104396238 ns/op	 1399112 B/op	   15149 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104668603 ns/op	 1408348 B/op	   15148 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104208808 ns/op	 1397980 B/op	   15147 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 117709465 ns/op	 6179757 B/op	   54761 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 117767625 ns/op	 6180255 B/op	   54764 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 117755478 ns/op	 6180041 B/op	   54764 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 117969658 ns/op	 6179753 B/op	   54761 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 116987455 ns/op	 6180041 B/op	   54763 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 116956502 ns/op	 6180248 B/op	   54766 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 124477403 ns/op	10507903 B/op	  130010 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 123515908 ns/op	10498715 B/op	  130041 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 125704101 ns/op	10500904 B/op	  130053 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 125656969 ns/op	10501698 B/op	  130060 allocs/op

Main branch:

goos: linux
goarch: amd64
pkg: github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions
cpu: AMD EPYC 7763 64-Core Processor                
BenchmarkAllocateAction_SmallCluster-4         	      10	 108256460 ns/op	 2425044 B/op	   36027 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108497188 ns/op	 2438468 B/op	   36030 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108311162 ns/op	 2426672 B/op	   36023 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108121535 ns/op	 2422851 B/op	   36036 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108345315 ns/op	 2425992 B/op	   36024 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108476808 ns/op	 2428818 B/op	   36028 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 135423123 ns/op	12532627 B/op	  302751 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 134940038 ns/op	12534552 B/op	  302767 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 134719015 ns/op	12536200 B/op	  302759 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 134741337 ns/op	12533411 B/op	  302753 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 135541100 ns/op	12534170 B/op	  302753 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 135440605 ns/op	12533398 B/op	  302775 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       5	 204936273 ns/op	41975456 B/op	 1266141 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       5	 205484548 ns/op	41981121 B/op	 1266228 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       5	 203073069 ns/op	41975636 B/op	 1266162 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       5	 204239110 ns/op	42007091 B/op	 1266196 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       5	 204089838 ns/op	41980956 B/op	 1266211 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       5	 203729634 ns/op	41980660 B/op	 1266176 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 102955745 ns/op	  967127 B/op	    8911 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103382082 ns/op	  972002 B/op	    8913 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103354091 ns/op	  971050 B/op	    8911 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103111211 ns/op	  975538 B/op	    8914 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103256650 ns/op	  971452 B/op	    8912 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103281240 ns/op	  969149 B/op	    8912 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106353602 ns/op	 3245752 B/op	   28056 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106183240 ns/op	 3246671 B/op	   28057 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106066460 ns/op	 3245501 B/op	   28055 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106195761 ns/op	 3238226 B/op	   28054 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106100346 ns/op	 3238672 B/op	   28053 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106062687 ns/op	 3242084 B/op	   28055 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104724476 ns/op	 1405728 B/op	   15179 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104644564 ns/op	 1413954 B/op	   15182 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104295343 ns/op	 1408887 B/op	   15178 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104371739 ns/op	 1412999 B/op	   15180 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104414728 ns/op	 1415802 B/op	   15179 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104299234 ns/op	 1413173 B/op	   15180 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 117947472 ns/op	 6222752 B/op	   54944 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 117257227 ns/op	 6226880 B/op	   54945 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 118904092 ns/op	 6222622 B/op	   54944 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 117993497 ns/op	 6227214 B/op	   54947 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 117361735 ns/op	 6226723 B/op	   54944 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 117520444 ns/op	 6227144 B/op	   54946 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 124481400 ns/op	10513401 B/op	  130129 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 123749042 ns/op	10512997 B/op	  130134 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 125472216 ns/op	10512250 B/op	  130134 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 125973372 ns/op	10507424 B/op	  130093 allocs/op

@github-actions

Copy link
Copy Markdown

Total coverage: 52.2% -> 52.2% (delta 0.00%)

Merging this branch changes the coverage (2 decrease, 3 increase)

Impacted Packages Coverage Δ 🤖
github.com/kai-scheduler/KAI-scheduler/cmd/admission/app 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/cmd/binder/app 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/cmd/queuecontroller/app 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/admission/webhook/queuehooks 14.29% (+2.89%) 👍
github.com/kai-scheduler/KAI-scheduler/pkg/admission/webhook/v1alpha2/podhooks 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/apis/client/clientset/versioned/fake 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/apis/client/informers/externalversions 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/apis/client/informers/externalversions/kai/v1alpha1 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/apis/client/informers/externalversions/scheduling/v1alpha2 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/apis/client/informers/externalversions/scheduling/v2 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/apis/client/informers/externalversions/scheduling/v2alpha2 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/apis/scheduling/v2alpha2 33.69% (+0.27%) 👍
github.com/kai-scheduler/KAI-scheduler/pkg/binder/plugins/k8s-plugins 48.10% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/binder/plugins/k8s-plugins/dynamicresources 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/binder/plugins/k8s-plugins/volumebinding 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/binder/test_utils 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/common/feature_gates 63.83% (+5.50%) 👍
github.com/kai-scheduler/KAI-scheduler/pkg/common/k8s_utils 0.00% (-5.77%) 👎
github.com/kai-scheduler/KAI-scheduler/pkg/common/resources/dra_version_aware_client 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions/common/solvers/accumulated_scenario_filters/node_affinities 88.00% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions/integration_tests/allocate 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions/integration_tests/reclaim 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/cache 34.78% (-0.15%) 👎
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/cache/cluster_info/data_lister 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/k8s_internal 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/k8s_internal/plugins 56.25% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/k8s_internal/predicates 66.47% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/dynamicresources 56.63% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/kai-scheduler/KAI-scheduler/cmd/admission/app/app.go 0.00% (ø) 45 0 45
github.com/kai-scheduler/KAI-scheduler/cmd/binder/app/app.go 0.00% (ø) 64 (+1) 0 64 (+1)
github.com/kai-scheduler/KAI-scheduler/cmd/queuecontroller/app/app.go 0.00% (ø) 31 0 31
github.com/kai-scheduler/KAI-scheduler/pkg/admission/webhook/queuehooks/queue_validator.go 14.29% (+2.89%) 91 (+12) 13 (+4) 78 (+8) 👍
github.com/kai-scheduler/KAI-scheduler/pkg/admission/webhook/v1alpha2/podhooks/pod_mutator.go 0.00% (ø) 20 (+3) 0 20 (+3)
github.com/kai-scheduler/KAI-scheduler/pkg/admission/webhook/v1alpha2/podhooks/pod_validator.go 0.00% (ø) 15 (+6) 0 15 (+6)
github.com/kai-scheduler/KAI-scheduler/pkg/apis/client/clientset/versioned/fake/clientset_generated.go 0.00% (ø) 24 (-1) 0 24 (-1)
github.com/kai-scheduler/KAI-scheduler/pkg/apis/client/informers/externalversions/factory.go 0.00% (ø) 62 0 62
github.com/kai-scheduler/KAI-scheduler/pkg/apis/client/informers/externalversions/kai/v1alpha1/topology.go 0.00% (ø) 17 0 17
github.com/kai-scheduler/KAI-scheduler/pkg/apis/client/informers/externalversions/scheduling/v1alpha2/bindrequest.go 0.00% (ø) 17 0 17
github.com/kai-scheduler/KAI-scheduler/pkg/apis/client/informers/externalversions/scheduling/v2/queue.go 0.00% (ø) 17 0 17
github.com/kai-scheduler/KAI-scheduler/pkg/apis/client/informers/externalversions/scheduling/v2alpha2/podgroup.go 0.00% (ø) 17 0 17
github.com/kai-scheduler/KAI-scheduler/pkg/apis/scheduling/v2alpha2/podgroup_webhook.go 86.57% (-3.03%) 134 (+9) 116 (+4) 18 (+5) 👎
github.com/kai-scheduler/KAI-scheduler/pkg/apis/scheduling/v2alpha2/zz_generated.deepcopy.go 0.00% (ø) 213 0 213
github.com/kai-scheduler/KAI-scheduler/pkg/binder/plugins/k8s-plugins/dynamicresources/dra.go 0.00% (ø) 45 0 45
github.com/kai-scheduler/KAI-scheduler/pkg/binder/plugins/k8s-plugins/k8s_plugins.go 48.10% (ø) 79 38 41
github.com/kai-scheduler/KAI-scheduler/pkg/binder/plugins/k8s-plugins/volumebinding/volume_binding.go 0.00% (ø) 28 0 28
github.com/kai-scheduler/KAI-scheduler/pkg/binder/test_utils/fake_client.go 0.00% (ø) 16 (-3) 0 16 (-3)
github.com/kai-scheduler/KAI-scheduler/pkg/common/feature_gates/feature_gates.go 63.83% (+5.50%) 47 (-1) 30 (+2) 17 (-3) 👍
github.com/kai-scheduler/KAI-scheduler/pkg/common/k8s_utils/dra_manager.go 0.00% (ø) 13 0 13
github.com/kai-scheduler/KAI-scheduler/pkg/common/k8s_utils/features.go 0.00% (-100.00%) 1 (-2) 0 (-3) 1 (+1) 💀 💀 💀 💀 💀
github.com/kai-scheduler/KAI-scheduler/pkg/common/k8s_utils/framework_handle.go 0.00% (ø) 32 (-4) 0 32 (-4)
github.com/kai-scheduler/KAI-scheduler/pkg/common/resources/dra_version_aware_client/client.go 0.00% (ø) 2 (-4) 0 2 (-4)
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions/common/solvers/accumulated_scenario_filters/node_affinities/node_affinities.go 88.00% (ø) 75 66 9
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/cache/cache.go 52.14% (-0.38%) 140 (+1) 73 67 (+1) 👎
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/cache/cache_mock.go 0.00% (ø) 75 0 75
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/cache/cluster_info/data_lister/kubernetes_lister.go 0.00% (ø) 51 0 51
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/cache/interface.go 0.00% (ø) 0 0 0
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/k8s_internal/plugins/plugins.go 56.25% (ø) 32 18 14
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/k8s_internal/predicates/config_maps.go 97.18% (ø) 71 69 2
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/k8s_internal/predicates/maxNodeResources.go 92.00% (ø) 50 46 4
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/k8s_internal/predicates/volume_binding.go 0.00% (ø) 7 0 7
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/k8s_internal/types.go 0.00% (ø) 0 0 0
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/dynamicresources/dynamicresources.go 56.63% (ø) 196 111 85

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/kai-scheduler/KAI-scheduler/pkg/common/feature_gates/feature_gates_test.go
  • github.com/kai-scheduler/KAI-scheduler/pkg/common/k8s_utils/features_test.go
  • github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions/integration_tests/allocate/allocate_dra_test.go
  • github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions/integration_tests/reclaim/reclaim_gpu_dra_test.go
  • github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/cache/cache_test.go
  • github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/k8s_internal/plugins/plugins_test.go
  • github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/dynamicresources/dynamicresources_statement_test.go
  • github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/dynamicresources/dynamicresources_test.go

@davidLif

Copy link
Copy Markdown
Collaborator

Maybe merge it in a v0.16 branch rather then directly to master?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants