From d83f960d5d480d1081fdb55eee2921465ea9e525 Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Wed, 21 Nov 2018 07:35:47 -0500 Subject: [PATCH] Use --batch for gazelle to help with timeouts on buildkite (#843) * Use --batch for gazelle to help with timeouts on buildkite, maybe * batch for vis script too --- scripts/check_gazelle.sh | 2 +- scripts/check_visibility.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/check_gazelle.sh b/scripts/check_gazelle.sh index 435bf7595..51196663c 100755 --- a/scripts/check_gazelle.sh +++ b/scripts/check_gazelle.sh @@ -8,7 +8,7 @@ exec 5>&1 # Run gazelle while piping a copy of the output to stdout via 5. -changes=$(bazel --bazelrc=.buildkite-bazelrc run //:gazelle -- fix --mode=diff | tee >(cat - >&5)) +changes=$(bazel --batch --bazelrc=.buildkite-bazelrc run //:gazelle -- fix --mode=diff | tee >(cat - >&5)) # If the captured stdout is not empty then Gazelle has diffs. if [ -z "$changes" ] diff --git a/scripts/check_visibility.sh b/scripts/check_visibility.sh index 28573435c..67fbab025 100755 --- a/scripts/check_visibility.sh +++ b/scripts/check_visibility.sh @@ -13,7 +13,7 @@ exec 5>&1 # Run gazelle while piping a copy of the output to stdout via 5. changes=$( -bazel --bazelrc=.buildkite-bazelrc query 'visible(//... except (//beacon-chain/... union //validator/...), (//beacon-chain/... union //validator/...))' | tee >(cat - >&5) +bazel --batch --bazelrc=.buildkite-bazelrc query 'visible(//... except (//beacon-chain/... union //validator/...), (//beacon-chain/... union //validator/...))' | tee >(cat - >&5) ) # If the captured stdout is not empty then targets are exposed!