We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44a4c03 commit 54e6983Copy full SHA for 54e6983
hack/test-all.sh
@@ -20,7 +20,18 @@ source $(dirname ${BASH_SOURCE})/common.sh
20
21
header_text "running go test"
22
23
-go test -race ${MOD_OPT} ./...
+# On MacOS there is a strange race condition
24
+# between port allocation of envtest suites when go test
25
+# runs all the tests in parallel (spins up around 10 or so environments).
26
+#
27
+# To avoid flakes, set -p=1 to disable parallel go test executions.
28
29
+# TODO(community): Investigate this behavior further.
30
+if [[ "${OSTYPE}" == "darwin"* ]]; then
31
+ P_FLAG="-p=1"
32
+fi
33
+
34
+go test -race ${P_FLAG} ${MOD_OPT} ./...
35
36
if [[ -n ${ARTIFACTS:-} ]]; then
37
if grep -Rin '<failure type="Failure">' ${ARTIFACTS}/*; then exit 1; fi
0 commit comments