@@ -249,7 +249,8 @@ jobs:
249
249
# Overriding the default coverage directory is not an exported flag of go test (yet), so
250
250
# we need to override it using the test.gocoverdir flag instead.
251
251
#TODO: Update when https://go-review.googlesource.com/c/go/+/456595 is merged.
252
- go test -json -timeout ${GO_TESTS_TIMEOUT} -cover -covermode=set ./... -coverpkg=./... -shuffle=on -args -test.gocoverdir="${raw_cov_dir}" | \
252
+ go test -json -timeout ${GO_TESTS_TIMEOUT} -cover -covermode=set ./... -coverpkg=./... \
253
+ -shuffle=on -failfast -args -test.gocoverdir="${raw_cov_dir}" | \
253
254
gotestfmt --logfile "${AUTHD_TESTS_ARTIFACTS_PATH}/gotestfmt.cover.log"
254
255
255
256
# Convert the raw coverage data into textfmt so we can merge the Rust one into it
@@ -282,7 +283,7 @@ jobs:
282
283
AUTHD_TESTS_SLEEP_MULTIPLIER : 3
283
284
GORACE : log_path=${{ env.AUTHD_TESTS_ARTIFACTS_PATH }}/gorace.log
284
285
run : |
285
- go test -json -timeout ${GO_TESTS_TIMEOUT} -race ./... | \
286
+ go test -json -timeout ${GO_TESTS_TIMEOUT} -race -failfast ./... | \
286
287
gotestfmt --logfile "${AUTHD_TESTS_ARTIFACTS_PATH}/gotestfmt.race.log"
287
288
288
289
- name : Run PAM tests (with Address Sanitizer)
@@ -300,7 +301,7 @@ jobs:
300
301
# Print executed commands to ease debugging
301
302
set -x
302
303
303
- go test -C ./pam/internal -json -asan -gcflags=all="${GO_GC_FLAGS}" -timeout ${GO_TESTS_TIMEOUT} ./... | \
304
+ go test -C ./pam/internal -json -asan -gcflags=all="${GO_GC_FLAGS}" -failfast - timeout ${GO_TESTS_TIMEOUT} ./... | \
304
305
gotestfmt --logfile "${AUTHD_TESTS_ARTIFACTS_PATH}/gotestfmt.pam-internal-asan.log" || exit_code=$?
305
306
if [ -n "${exit_code:-}" ]; then
306
307
cat "${AUTHD_TESTS_ARTIFACTS_PATH}"/asan.log* || true
@@ -312,6 +313,7 @@ jobs:
312
313
go test -asan -gcflags=all="${GO_GC_FLAGS}" -c
313
314
go tool test2json -p pam/integrations-test ./integration-tests.test \
314
315
-test.v=test2json \
316
+ -test.failfast \
315
317
-test.timeout ${GO_TESTS_TIMEOUT} | \
316
318
gotestfmt --logfile "${AUTHD_TESTS_ARTIFACTS_PATH}/gotestfmt.pam-integration-tests-asan.log" || \
317
319
exit_code=$?
0 commit comments