| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,6 +6,7 @@ TESTFLAGS=-race -p 4 | |||
| 6 | 6 | BASE_DIR=$(CURDIR) | |
| 7 | 7 | BENCHTIME ?= 1x | |
| 8 | 8 | BENCHTIMEOUT ?= 20m | |
| 9 | + BENCHCOUNT ?= 1 | ||
| 9 | 10 | ||
| 10 | 11 | ifeq (,$(findstring podman,$(shell docker --version 2>/dev/null))) | |
| 11 | 12 | # Podman DTRT by running processes unprivileged in containers, | |
@@ -506,7 +507,7 @@ go-postgres-unit-tests: build-prep test-prep | |||
| 506 | 507 | go-postgres-bench-tests: build-prep test-prep | |
| 507 | 508 | @# The -p 1 passed to go test is required to ensure that tests of different packages are not run in parallel, so as to avoid conflicts when interacting with the DB. | |
| 508 | 509 | set -o pipefail ; \ | |
| 509 | - CGO_ENABLED=1 GODEBUG=cgocheck=2 MUTEX_WATCHDOG_TIMEOUT_SECS=30 ROX_POSTGRES_DATASTORE=true GOTAGS=$(GOTAGS),test,sql_integration scripts/go-test.sh -p 1 -run=nonthing -bench=. -benchtime=$(BENCHTIME) -benchmem -timeout $(BENCHTIMEOUT) -v \ | ||
| 510 | + CGO_ENABLED=1 GODEBUG=cgocheck=2 MUTEX_WATCHDOG_TIMEOUT_SECS=30 ROX_POSTGRES_DATASTORE=true GOTAGS=$(GOTAGS),test,sql_integration scripts/go-test.sh -p 1 -run=nonthing -bench=. -benchtime=$(BENCHTIME) -benchmem -timeout $(BENCHTIMEOUT) -count $(BENCHCOUNT) -v \ | ||
| 510 | 511 | $(shell git grep -rl "testing.B" central pkg migrator tools | sed -e 's@^@./@g' | xargs -n 1 dirname | sort | uniq | xargs go list -tags sql_integration | grep -v '^github.com/stackrox/rox/tests$$' | grep -Ev $(UNIT_TEST_IGNORE)) \ | |
| 511 | 512 | | tee $(GO_TEST_OUTPUT_PATH) | |
| 512 | 513 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,7 @@ import ( | |||
| 4 | 4 | "context" | |
| 5 | 5 | "io" | |
| 6 | 6 | ||
| 7 | - "github.com/jackc/pgx/v4" | ||
| 7 | + "github.com/jackc/pgx/v5" | ||
| 8 | 8 | "github.com/pkg/errors" | |
| 9 | 9 | "github.com/stackrox/rox/central/blob/datastore/store/postgres" | |
| 10 | 10 | v1 "github.com/stackrox/rox/generated/api/v1" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments