Skip to content

Commit b258204

Browse files
authored
[rbe] Disable GHA caches (#13577)
1 parent 5bee19e commit b258204

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

.github/workflows/bazel.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ on:
2626
required: false
2727
type: string
2828
default: ''
29+
caching:
30+
description: Toggle caching of Bazel
31+
required: false
32+
type: boolean
33+
default: true
2934
cache-key:
3035
description: Bazel disk cache key
3136
required: false
@@ -86,8 +91,9 @@ jobs:
8691
with:
8792
java-version: ${{ inputs.java-version }}
8893
distribution: 'temurin'
89-
- name: Setup Bazel
90-
uses: p0deje/[email protected]
94+
- name: Setup Bazel with caching
95+
if: inputs.caching
96+
uses: p0deje/[email protected]
9197
with:
9298
bazelisk-cache: true
9399
bazelrc: common --color=yes
@@ -100,6 +106,11 @@ jobs:
100106
pypi__pip: py/requirements_lock.txt
101107
ruby: ${{ inputs.os == 'windows' && 'false' || 'rb/.ruby-version' }}
102108
repository-cache: true
109+
- name: Setup Bazel without caching
110+
if: inputs.caching == false
111+
uses: p0deje/[email protected]
112+
with:
113+
bazelrc: common --color=yes
103114
- name: Setup Fluxbox and Xvfb
104115
if: inputs.os == 'ubuntu' && inputs.browser != ''
105116
run: |

.github/workflows/ci-rbe.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
uses: ./.github/workflows/bazel.yml
1515
with:
1616
name: Check format script run
17-
cache-key: rbe
17+
caching: false
1818
ruby-version: jruby-9.4.5.0
1919
run: ./scripts/github-actions/check-format.sh
2020

@@ -23,8 +23,7 @@ jobs:
2323
if: github.repository_owner == 'seleniumhq'
2424
uses: ./.github/workflows/bazel.yml
2525
with:
26-
# TODO: experiment with turning off caches
2726
name: All RBE tests
28-
cache-key: rbe
27+
caching: false
2928
ruby-version: jruby-9.4.5.0
3029
run: ./scripts/github-actions/ci-build.sh

0 commit comments

Comments
 (0)