Skip to content

Commit

Permalink
Always test in race mode
Browse files Browse the repository at this point in the history
  • Loading branch information
moskyb committed May 18, 2023
1 parent 7143021 commit 634200b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
14 changes: 0 additions & 14 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 3 additions & 2 deletions .buildkite/steps/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ set -euo pipefail
go version
echo arch is "$(uname -m)"

export CGO_ENABLED=0
go install gotest.tools/[email protected]

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

0 comments on commit 634200b

Please sign in to comment.