diff --git a/Makefile b/Makefile index 96bb7e45f7..1a1d5e4830 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ GO_FILES := $(shell find $(WPTD_PATH) -type f -name '*.go') GO_TEST_FILES := $(shell find $(WPTD_PATH) -type f -name '*_test.go') # Golangci version should be updated periodically. # See: https://golangci-lint.run/usage/install/#other-ci -GOLANGCI_LINT_VERSION := v1.52.2 +GOLANGCI_LINT_VERSION := v1.60.3 build: go_build diff --git a/api/query/cache/backfill/backfill.go b/api/query/cache/backfill/backfill.go index 94a1d61c70..5314db3e22 100644 --- a/api/query/cache/backfill/backfill.go +++ b/api/query/cache/backfill/backfill.go @@ -117,6 +117,7 @@ func FillIndex( func startBackfillMonitor(store shared.Datastore, logger shared.Logger, maxBytes uint64, m *backfillMonitor) error { // FetchRuns will return at most N runs for each product, so divide the upper bound by the number of products. + //nolint:gosec limit := int(maxBytes/bytesPerRun) / len(shared.GetDefaultProducts()) runsByProduct, err := store.TestRunQuery().LoadTestRuns(shared.GetDefaultProducts(), nil, nil, nil, nil, &limit, nil) if err != nil { diff --git a/api/query/cache/index/index.go b/api/query/cache/index/index.go index 55ea122c15..c048c94a6e 100644 --- a/api/query/cache/index/index.go +++ b/api/query/cache/index/index.go @@ -207,6 +207,7 @@ func (i *shardedWPTIndex) IngestRun(r shared.TestRun) error { return err } + //nolint:gosec shardIdx := int(t.testID % numShardsU64) dataForShard := shardData[shardIdx] re := ResultID(shared.TestStatusValueFromString(res.Status))