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
coverage pkg/util/coverage: add ModulePath() to fakeTestDeps 2026-05-09 19:40:33 -04:00
env
filesystem Move WatchUntil to staging 2026-03-11 23:47:52 -07:00
flag
flock
goroutinemap
hash Move dump package from apimachinery to k8s.io/utils 2026-02-12 07:34:19 -05:00
interrupt
iptables
kernel Add kernel 5.9+ version check for MemoryQoS 2026-03-18 14:22:07 -04:00
labels
node
oom
parsers
pod
procfs
removeall
rlimit
slice Deprecate obsolete slice utility functions 2026-02-16 10:04:33 +01:00
tail
taints
tolerations volume: simplify elem check with slices.Contains. 2026-02-05 14:47:40 +01:00