Skip to content

Commit

Permalink
Try regional gcs buckets
Browse files Browse the repository at this point in the history
  • Loading branch information
brianseeders committed May 3, 2022
1 parent d3e1a88 commit d4899ec
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
24 changes: 12 additions & 12 deletions .buildkite/pipelines/pull_request/base.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
steps:
- command: .buildkite/scripts/steps/bazel_cache/test_clean.sh
label: Initial bootstrap with no local cache
timeout_in_minutes: 20
agents:
queue: n2-4-spot
# - command: .buildkite/scripts/steps/bazel_cache/test_clean.sh
# label: Initial bootstrap with no local cache
# timeout_in_minutes: 20
# agents:
# queue: n2-4-spot

- wait
# - wait

- command: .buildkite/scripts/steps/bazel_cache/test.sh
label: Bootstrap with disk cache
timeout_in_minutes: 20
parallelism: 100
agents:
queue: n2-4-spot
# - command: .buildkite/scripts/steps/bazel_cache/test.sh
# label: Bootstrap with disk cache
# timeout_in_minutes: 20
# parallelism: 100
# agents:
# queue: n2-4-spot

- command: .buildkite/scripts/steps/bazel_cache/test_clean.sh
label: Bootstrap with no disk cache
Expand Down
11 changes: 7 additions & 4 deletions .buildkite/scripts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ set -euo pipefail
source .buildkite/scripts/common/util.sh
source .buildkite/scripts/common/setup_bazel.sh

REMOTE_CACHE_PASSWORD="$(retry 5 5 vault read -field=password secret/kibana-issues/dev/bazel-remote-cache-test)"
BAZEL_REGION="us-central1"
if [[ "$(curl -is metadata.google.internal || true)" ]]; then
BAZEL_REGION=$(curl -sH Metadata-Flavor:Google http://metadata.google.internal/computeMetadata/v1/instance/zone | rev | cut -c3- | rev)
fi

BAZEL_BUCKET="kibana-ci-bazel_$BAZEL_REGION"

cat << EOF > .bazelrc
import %workspace%/.bazelrc.common
#build --remote_cache=grpc://test:${REMOTE_CACHE_PASSWORD}@34.121.74.141:9092
#build --experimental_remote_cache_compression
build --remote_cache=https://storage.googleapis.com/kibana_ci_bazel_remote_cache
build --remote_cache=https://storage.googleapis.com/$BAZEL_BUCKET
build --google_default_credentials
EOF

Expand Down

0 comments on commit d4899ec

Please sign in to comment.