From 634200bea4fd12936c4049b24d0b4dc0ec1bafc4 Mon Sep 17 00:00:00 2001 From: Ben Moskovitz Date: Thu, 18 May 2023 12:50:05 +1000 Subject: [PATCH] Always test in race mode --- .buildkite/pipeline.yml | 14 -------------- .buildkite/steps/tests.sh | 5 +++-- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 9070b4fc26..af8d499d5a 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -46,20 +46,6 @@ steps: files: "junit-*.xml" format: "junit" - - name: ":satellite: Detect Data Races" - key: test-race-linux-arm64 - command: ".buildkite/steps/tests.sh -race" - artifact_paths: junit-*.xml - agents: - queue: agent-runners-linux-arm64 - plugins: - docker-compose#v3.0.0: - config: .buildkite/docker-compose.yml - run: agent - test-collector#v1.2.0: - files: "junit-*.xml" - format: "junit" - - name: ":windows: Windows AMD64 Tests" key: test-windows command: "bash .buildkite\\steps\\tests.sh" diff --git a/.buildkite/steps/tests.sh b/.buildkite/steps/tests.sh index d3a0f507c4..10561187e9 100755 --- a/.buildkite/steps/tests.sh +++ b/.buildkite/steps/tests.sh @@ -4,10 +4,11 @@ set -euo pipefail go version echo arch is "$(uname -m)" +export CGO_ENABLED=0 go install gotest.tools/gotestsum@v1.8.0 echo '+++ Running tests' -gotestsum --junitfile "junit-${BUILDKITE_JOB_ID}.xml" -- -count=1 -failfast "$@" ./... +gotestsum --junitfile "junit-${BUILDKITE_JOB_ID}.xml" -- -count=1 -failfast -race ./... echo '+++ Running integration tests for git-mirrors experiment' -TEST_EXPERIMENT=git-mirrors gotestsum --junitfile "junit-${BUILDKITE_JOB_ID}-git-mirrors.xml" -- -count=1 -failfast "$@" ./bootstrap/integration +TEST_EXPERIMENT=git-mirrors gotestsum --junitfile "junit-${BUILDKITE_JOB_ID}-git-mirrors.xml" -- -count=1 -failfast -race ./bootstrap/integration