kubernetes/vendor
Patrick Ohly f131cabfa0 test: use go-uber/goleak for strict leak checking
It provides more readable output and has additional APIs for using it inside a
unit test. goleak.IgnoreCurrent is needed to filter out the goroutine that gets
started when importing go.opencensus.io/stats/view.

In order to handle background goroutines that get created on demand and cannot
be stopped (like the one for LogzHealth), a helper function ensures that those
are running before calling goleak.IgnoreCurrent. Keeping those goroutines
running is not a problem and thus not worth the effort of adding new APIs to
stop them.

Other goroutines are genuine leaks for which no fix is available. Those get
suppressed via IgnoreTopFunction, which works as long as that function
is unique enough.

Example output for the leak fixed in https://github.com/kubernetes/kubernetes/pull/115423:

    E0202 09:30:51.641841   74789 etcd.go:205] "EtcdMain goroutine check" err=<
        found unexpected goroutines:
        [Goroutine 4889 in state chan receive, with k8s.io/apimachinery/pkg/watch.(*Broadcaster).loop on top of the stack:
        goroutine 4889 [chan receive]:
        k8s.io/apimachinery/pkg/watch.(*Broadcaster).loop(0xc0076183c0)
        	/nvme/gopath/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/watch/mux.go:268 +0x65
        created by k8s.io/apimachinery/pkg/watch.NewBroadcaster
        	/nvme/gopath/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/watch/mux.go:77 +0x116
    >
2023-02-14 12:11:37 +01:00
..
bitbucket.org/bertimus9/systemstat Switch to release tag v0.5.0 of systemstat 2022-06-10 11:07:22 -04:00
cloud.google.com/go update kube-controller-manager dependencies 2022-06-23 18:07:18 +00:00
github.com dependencies: update gomega to v1.26.0 2023-01-25 09:55:50 +01:00
go.etcd.io updated etcd to v3.5.5 and newer otel libraries as well 2022-09-17 21:47:24 -04:00
go.opencensus.io Regenerate vendor 2022-05-04 10:27:41 -04:00
go.opentelemetry.io update to v1.12.0 of semconv 2022-09-18 19:34:30 -04:00
go.starlark.net until stable: pin-dependency, update-vendor, update-bazel, lint-dep 2021-03-08 16:50:43 -08:00
go.uber.org test: use go-uber/goleak for strict leak checking 2023-02-14 12:11:37 +01:00
golang.org/x dependencies: update gomega to v1.26.0 2023-01-25 09:55:50 +01:00
google.golang.org Bump grpc to v1.51.0 2022-12-07 09:48:08 -08:00
gopkg.in e2e: adapt output tests to Ginkgo v2 and Gomega 1.19 2022-07-08 10:46:11 +08:00
k8s.io Update k8s.io/utils to a36077c30491 2023-02-09 20:09:41 +00:00
sigs.k8s.io Bump konnectivity-client to v0.1.1 2023-01-19 04:35:31 +00:00
modules.txt test: use go-uber/goleak for strict leak checking 2023-02-14 12:11:37 +01:00
OWNERS Make root approval non-recursive 2022-10-10 08:26:53 -04:00