New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: add roachprod-stressrace target #31039

Merged
merged 1 commit into from Oct 8, 2018
Jump to file or symbol
Failed to load files and symbols.
+6 −6
Diff settings

Always

Just for now

View
@@ -809,9 +809,9 @@ testbuild:
testshort: override TESTFLAGS += -short
testrace: ## Run tests with the Go race detector enabled.
testrace stressrace: override GOFLAGS += -race
testrace stressrace: export GORACE := halt_on_error=1
testrace stressrace: TESTTIMEOUT := $(RACETIMEOUT)
testrace stressrace roachprod-stressrace: override GOFLAGS += -race
testrace stressrace roachprod-stressrace: export GORACE := halt_on_error=1
testrace stressrace roachprod-stressrace: TESTTIMEOUT := $(RACETIMEOUT)
# Directory scans in the builder image are excruciatingly slow when running
# Docker for Mac, so we filter out the 20k+ UI dependencies that are
@@ -838,11 +838,11 @@ stressrace: ## Run tests under stress with the race detector enabled.
stress stressrace:
$(xgo) test $(GOFLAGS) -exec 'stress $(STRESSFLAGS)' -tags '$(TAGS)' -ldflags '$(LINKFLAGS)' -run "$(TESTS)" -timeout 0 $(PKG) $(filter-out -v,$(TESTFLAGS)) -v -args -test.timeout $(TESTTIMEOUT)
.PHONE: roachprod-stress
roachprod-stress: bin/roachprod-stress
.PHONE: roachprod-stress roachprod-stressrace
roachprod-stress roachprod-stressrace: bin/roachprod-stress
# The bootstrap target creates, among other things, ./bin/stress.
build/builder.sh make bin/.bootstrap
build/builder.sh make test GOFLAGS="-i -v -c -o $(notdir $(PKG)).test" PKG=$(PKG)
build/builder.sh make test GOFLAGS="$(GOFLAGS) -v -c -o $(notdir $(PKG)).test" PKG=$(PKG)
@if [ -z "$(CLUSTER)" ]; then \
echo "ERROR: missing or empty CLUSTER"; \
else \
ProTip! Use n and p to navigate between commits in a pull request.