Skip to content

Commit e8e5771

Browse files
committed
Make remote cache private until the costs are figured out
For the past 4 days, there have been 600+ GB downloads from the public cache, so I am making it private for now and only accessible from CI.
1 parent a019e92 commit e8e5771

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.bazelrc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ build:linux --workspace_status_command=scripts/build-info.sh
3838
build:macos --workspace_status_command=scripts/build-info.sh
3939
build:windows --workspace_status_command="powershell.exe scripts/build-info.ps1"
4040

41-
# Enable read-only public remote cache.
42-
# To enable write mode, add the following to your .bazelrc.local:
43-
# build --remote_upload_local_results=true --google_credentials=<path-to-json-key>
44-
45-
build --remote_cache=https://storage.googleapis.com/seleniumhq-bazel-remote-cache --remote_upload_local_results=false
46-
4741
# Make sure we get something helpful when tests fail
4842

4943
build --verbose_failures

.github/actions/cache-bazel/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ runs:
4949
${{ runner.os }}-bazel-${{ inputs.workflow }}-
5050
- run: |
5151
echo '${{ inputs.gcs-key }}' >> gcs.json
52-
echo "build --remote_upload_local_results=true --google_credentials=gcs.json" >> .bazelrc
53-
if: github.ref == 'refs/heads/trunk' && runner.os != 'Windows'
52+
echo "build --remote_cache=https://storage.googleapis.com/seleniumhq-bazel-remote-cache --remote_upload_local_results=${{ github.ref == 'refs/heads/trunk' }} --google_credentials=gcs.json" >> .bazelrc
53+
if: runner.os != 'Windows'
5454
shell: bash
5555
- run: |
5656
echo ${{ inputs.gcs-key }}>>gcs.json
57-
echo "build --remote_upload_local_results=true --google_credentials=gcs.json">>.bazelrc
57+
echo "build --remote_cache=https://storage.googleapis.com/seleniumhq-bazel-remote-cache --remote_upload_local_results=${{ github.ref == 'refs/heads/trunk' }} --google_credentials=gcs.json">>.bazelrc
5858
if: github.ref == 'refs/heads/trunk' && runner.os == 'Windows'
5959
shell: cmd

0 commit comments

Comments
 (0)