kubernetes/pkg/util
Davanum Srinivas e4ed3aa73b
pkg/util/coverage: add ModulePath() to fakeTestDeps
Go 1.26's testing.testDeps interface added a ModulePath() string method.
Without it, fakeTestDeps no longer satisfies the interface and any build
with -tags=coverage (KUBE_BUILD_WITH_COVERAGE=true) fails to compile at
pkg/util/coverage/coverage.go:84 (testing.MainStart):

    pkg/util/coverage/coverage.go:84:32: cannot use deps (variable of
    struct type fakeTestDeps) as testing.testDeps value in argument to
    testing.MainStart: fakeTestDeps does not implement testing.testDeps
    (missing method ModulePath)

This restores the two coverage jobs that have been failing for ~65 days:

  ci-kubernetes-coverage-conformance
    history:  https://prow.k8s.io/job-history/gs/kubernetes-ci-logs/logs/ci-kubernetes-coverage-conformance
    sample:   https://prow.k8s.io/view/gs/kubernetes-ci-logs/logs/ci-kubernetes-coverage-conformance/2053245547074031616

  ci-kubernetes-coverage-e2e-gci-gce
    history:  https://prow.k8s.io/job-history/gs/kubernetes-ci-logs/logs/ci-kubernetes-coverage-e2e-gci-gce
    sample:   https://prow.k8s.io/view/gs/kubernetes-ci-logs/logs/ci-kubernetes-coverage-e2e-gci-gce/2053247811943665664

The build image kube-cross:v1.36.0-go1.26.2-bullseye.0 is what surfaced
this once kube-cross moved to Go 1.26.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-05-09 19:40:33 -04:00
..
async clean up: remove loop variable capture 2026-04-28 23:53:27 +02:00
bandwidth remove import doc comments 2024-12-02 16:59:34 +01:00
coverage pkg/util/coverage: add ModulePath() to fakeTestDeps 2026-05-09 19:40:33 -04:00
env Replace os.Setenv with testing.T.Setenv in tests 2023-04-17 20:39:46 -05:00
filesystem Move WatchUntil to staging 2026-03-11 23:47:52 -07:00
flag flag: fix nil-ptr panic & typo messages 2025-06-18 02:06:11 +06:00
flock build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
goroutinemap fix:handle error and remove Redundant type conversion 2022-07-19 11:30:46 +08:00
hash Move dump package from apimachinery to k8s.io/utils 2026-02-12 07:34:19 -05:00
interrupt delete unused functions in pkg/util directory 2023-01-16 17:22:35 +08:00
iptables build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
kernel Add kernel 5.9+ version check for MemoryQoS 2026-03-18 14:22:07 -04:00
labels hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
node remove deadcode in pkg/util/node 2024-08-10 23:32:23 +08:00
oom build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
parsers fix panic in cron.ParseStandard 2025-10-10 23:51:05 +08:00
pod Added e2e test and fixed existing pod test 2025-03-25 02:05:30 +05:30
procfs build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
removeall Replaces path.Operation with filepath.Operation 2024-01-15 20:35:13 +00:00
rlimit build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
slice Deprecate obsolete slice utility functions 2026-02-16 10:04:33 +01:00
tail Move pkg/kubelet/kuberuntime/logs to k8s.io/cri-client staging 2024-05-30 15:13:22 +02:00
taints Improve test readability by fixing previous code variables that could easily be changed and 2022-09-16 17:23:35 +08:00
tolerations volume: simplify elem check with slices.Contains. 2026-02-05 14:47:40 +01:00