From 1ecb9b6b286b1555eaba41374e6c43839e4cac29 Mon Sep 17 00:00:00 2001 From: Knative Automation Date: Wed, 22 Oct 2025 16:23:11 +0000 Subject: [PATCH] upgrade to latest dependencies bumping knative.dev/hack af735b2...50b120a: > 50b120a bump gotestfmt to newest version (# 449) > f2be520 [release-1.19] :bug: Fix knative.dev/toolbox for older versions of Golang (# 444) bumping knative.dev/caching ee61fe0...1c2168b: > 1c2168b upgrade to latest dependencies (# 969) > 088caf3 upgrade to latest dependencies (# 960) bumping knative.dev/networking 7dad473...806653e: > 806653e upgrade to latest dependencies (# 1094) > 3fcdea3 upgrade to latest dependencies (# 1083) bumping knative.dev/pkg 077dcf0...7da1174: > 7da1174 upgrade to latest dependencies (# 3281) > 2be9d56 Lock before iterating map so that code does not panic on concurrent write (# 3279) Signed-off-by: Knative Automation --- go.mod | 8 ++++---- go.sum | 16 ++++++++-------- vendor/knative.dev/hack/library.sh | 9 +++++++-- vendor/knative.dev/hack/presubmit-tests.sh | 2 +- .../knative.dev/pkg/controller/queue_metrics.go | 4 ++++ vendor/modules.txt | 8 ++++---- 6 files changed, 28 insertions(+), 19 deletions(-) diff --git a/go.mod b/go.mod index 271af25ffd1e..8f6aaf86d3c8 100644 --- a/go.mod +++ b/go.mod @@ -37,10 +37,10 @@ require ( k8s.io/code-generator v0.33.4 k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff k8s.io/utils v0.0.0-20241210054802-24370beab758 - knative.dev/caching v0.0.0-20250902155343-ee61fe0faa82 - knative.dev/hack v0.0.0-20250902154142-af735b2738d6 - knative.dev/networking v0.0.0-20250902160145-7dad473f6351 - knative.dev/pkg v0.0.0-20250909011231-077dcf0d00e8 + knative.dev/caching v0.0.0-20251022154445-1c2168b1a613 + knative.dev/hack v0.0.0-20251022160748-50b120a65f30 + knative.dev/networking v0.0.0-20251022155347-806653eb2af8 + knative.dev/pkg v0.0.0-20251022154045-7da1174b871b sigs.k8s.io/randfill v1.0.0 sigs.k8s.io/yaml v1.6.0 ) diff --git a/go.sum b/go.sum index f93eda1622fd..fc1526f65786 100644 --- a/go.sum +++ b/go.sum @@ -586,14 +586,14 @@ k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff h1:/usPimJzUKKu+m+TE36gUy k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff/go.mod h1:5jIi+8yX4RIb8wk3XwBo5Pq2ccx4FP10ohkbSKCZoK8= k8s.io/utils v0.0.0-20241210054802-24370beab758 h1:sdbE21q2nlQtFh65saZY+rRM6x6aJJI8IUa1AmH/qa0= k8s.io/utils v0.0.0-20241210054802-24370beab758/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= -knative.dev/caching v0.0.0-20250902155343-ee61fe0faa82 h1:bqpUZC618+zZRlMSTBFh41d1ZgDpboIEZni5QvfHjyo= -knative.dev/caching v0.0.0-20250902155343-ee61fe0faa82/go.mod h1:ZiyXJ3NpJMnXkjzJFE0rQQ/vkCdINF2x9zDDCqH7v9g= -knative.dev/hack v0.0.0-20250902154142-af735b2738d6 h1:JYZgO9bni32T+BB5v6WpeRFm1hjj+EypBLZCk6HZBt0= -knative.dev/hack v0.0.0-20250902154142-af735b2738d6/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY= -knative.dev/networking v0.0.0-20250902160145-7dad473f6351 h1:Gv/UqbN0AK+ORoT5e2Kg+3+uMW/y9CCdhpXKxYaVV6k= -knative.dev/networking v0.0.0-20250902160145-7dad473f6351/go.mod h1:P/fAhhVDgmLt1ugFX8vBvdSDiUOw2P4SGcjbzoZ02Xw= -knative.dev/pkg v0.0.0-20250909011231-077dcf0d00e8 h1:n0BMHXIem9MyDkK4vfA4Vzdxaf1e+EeLJ6k+8exCjjI= -knative.dev/pkg v0.0.0-20250909011231-077dcf0d00e8/go.mod h1:a1amDzo4YIUNuGeDgEz/uDHs5MQVYI1DXnRnEpWCAts= +knative.dev/caching v0.0.0-20251022154445-1c2168b1a613 h1:iFaJUno9kIDVUuP09wpJkE1sLpdDjT7N+OkVTFMARX8= +knative.dev/caching v0.0.0-20251022154445-1c2168b1a613/go.mod h1:B9qm2jchN0RdPC4l0pOE4YFUq7PccRX2FHkfomehAiA= +knative.dev/hack v0.0.0-20251022160748-50b120a65f30 h1:4fzUJrTmIbqgttXMBuLFC7/m2p0146EM3h9Wn2pBm9U= +knative.dev/hack v0.0.0-20251022160748-50b120a65f30/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY= +knative.dev/networking v0.0.0-20251022155347-806653eb2af8 h1:QY/NMmxnLVMeZjUhP+w6DT5+U3+n6PP3jaWFKvUfua0= +knative.dev/networking v0.0.0-20251022155347-806653eb2af8/go.mod h1:swS9Gds3ynInxzB1p/YLVF1mc5vtruO33qDjax7xyko= +knative.dev/pkg v0.0.0-20251022154045-7da1174b871b h1:FGFKGId+JPrKdX9PG0tNI4ePWqmEdTNiIOw2zsiPLpo= +knative.dev/pkg v0.0.0-20251022154045-7da1174b871b/go.mod h1:EagZcIVpB9m/bktnIVJM+MvgyXi9q25a8WpCCWULJUY= pgregory.net/rapid v1.1.0 h1:CMa0sjHSru3puNx+J0MIAuiiEV4N0qj8/cMWGBBCsjw= pgregory.net/rapid v1.1.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= sigs.k8s.io/gateway-api v1.1.0 h1:DsLDXCi6jR+Xz8/xd0Z1PYl2Pn0TyaFMOPPZIj4inDM= diff --git a/vendor/knative.dev/hack/library.sh b/vendor/knative.dev/hack/library.sh index d487a14957e6..447484b6de37 100644 --- a/vendor/knative.dev/hack/library.sh +++ b/vendor/knative.dev/hack/library.sh @@ -588,7 +588,7 @@ function report_go_test() { logfile="${logfile/.xml/.jsonl}" echo "Running go test with args: ${go_test_args[*]}" local gotest_retcode=0 - go_run gotest.tools/gotestsum@v1.11.0 \ + go_run gotest.tools/gotestsum@v1.13.0 \ --format "${GO_TEST_VERBOSITY:-testname}" \ --junitfile "${xml}" \ --junitfile-testsuite-name relative \ @@ -681,7 +681,7 @@ function start_knative_eventing_extension() { # Parameters: $1 - tool package for go run. # $2..$n - parameters passed to the tool. function go_run() { - local package + local package gotoolchain package="$1" if [[ "$package" != *@* ]]; then abort 'Package for "go_run" needs to have @version' @@ -696,6 +696,11 @@ function go_run() { GORUN_PATH="$(mktemp -t -d -u gopath.XXXXXXXX)" fi export GORUN_PATH + gotoolchain="$(go env GOTOOLCHAIN)" + if [[ "$package" == knative.dev/toolbox/* ]]; then + gotoolchain=auto + fi + GOTOOLCHAIN="${gotoolchain}" \ GOPATH="${GORUN_PATH}" \ GOFLAGS='' \ go run "$package" "$@" diff --git a/vendor/knative.dev/hack/presubmit-tests.sh b/vendor/knative.dev/hack/presubmit-tests.sh index b96ffadf43ea..f11585d49fad 100644 --- a/vendor/knative.dev/hack/presubmit-tests.sh +++ b/vendor/knative.dev/hack/presubmit-tests.sh @@ -141,7 +141,7 @@ function __build_test_runner_for_module() { # Don't merge these two lines, or return code will always be 0. # Get all build tags in go code (ignore /vendor, /hack and /third_party) local tags - tags="$(go run knative.dev/toolbox/go-ls-tags@latest --joiner=,)" + tags="$(go_run knative.dev/toolbox/go-ls-tags@latest --joiner=,)" local go_pkg_dirs go_pkg_dirs="$(go list -tags "${tags}" ./...)" || return $? if [[ -z "${go_pkg_dirs}" ]]; then diff --git a/vendor/knative.dev/pkg/controller/queue_metrics.go b/vendor/knative.dev/pkg/controller/queue_metrics.go index 2e61e330ea51..462a0b91ca28 100644 --- a/vendor/knative.dev/pkg/controller/queue_metrics.go +++ b/vendor/knative.dev/pkg/controller/queue_metrics.go @@ -121,6 +121,10 @@ func (m *queueMetrics) updateUnfinishedWork() { // doesn't seem to have non-hacky ways to reset the summary metrics. var total float64 var oldest float64 + + m.mu.Lock() + defer m.mu.Unlock() + for _, t := range m.processingStartTimes { age := m.sinceInSeconds(t) total += age diff --git a/vendor/modules.txt b/vendor/modules.txt index 1b5f714bb720..906c630a9a72 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1450,7 +1450,7 @@ k8s.io/utils/net k8s.io/utils/pointer k8s.io/utils/ptr k8s.io/utils/trace -# knative.dev/caching v0.0.0-20250902155343-ee61fe0faa82 +# knative.dev/caching v0.0.0-20251022154445-1c2168b1a613 ## explicit; go 1.24.0 knative.dev/caching/config knative.dev/caching/pkg/apis/caching @@ -1471,10 +1471,10 @@ knative.dev/caching/pkg/client/injection/informers/caching/v1alpha1/image/fake knative.dev/caching/pkg/client/injection/informers/factory knative.dev/caching/pkg/client/injection/informers/factory/fake knative.dev/caching/pkg/client/listers/caching/v1alpha1 -# knative.dev/hack v0.0.0-20250902154142-af735b2738d6 +# knative.dev/hack v0.0.0-20251022160748-50b120a65f30 ## explicit; go 1.21 knative.dev/hack -# knative.dev/networking v0.0.0-20250902160145-7dad473f6351 +# knative.dev/networking v0.0.0-20251022155347-806653eb2af8 ## explicit; go 1.24.0 knative.dev/networking/config knative.dev/networking/pkg @@ -1513,7 +1513,7 @@ knative.dev/networking/pkg/http/stats knative.dev/networking/pkg/ingress knative.dev/networking/pkg/k8s knative.dev/networking/pkg/prober -# knative.dev/pkg v0.0.0-20250909011231-077dcf0d00e8 +# knative.dev/pkg v0.0.0-20251022154045-7da1174b871b ## explicit; go 1.24.0 knative.dev/pkg/apiextensions/storageversion knative.dev/pkg/apiextensions/storageversion/cmd/migrate