Skip to content

[build] allow manually rerunning RBE with cache disabled #15680

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/ci-rbe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
branches:
- trunk
workflow_dispatch:
inputs:
disable_test_cache:
description: 'Force re-run of tests (disable test cache)'
required: false
default: false
type: boolean

jobs:
format:
Expand All @@ -26,4 +32,4 @@ jobs:
name: All RBE tests
caching: false
ruby-version: jruby-9.4.12.0
run: ./scripts/github-actions/ci-build.sh
run: ./scripts/github-actions/ci-build.sh ${{ github.event.inputs.disable_test_cache }}
9 changes: 9 additions & 0 deletions scripts/github-actions/ci-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,20 @@ set -eufo pipefail
# We want to see what's going on
set -x

# Default to auto if no parameter is provided
CACHE_RESULTS="auto"

# If "disable test cache" is passed in and true
if [ $# -gt 0 ] && [ "$1" = "true" ]; then
CACHE_RESULTS="no"
fi

# Now run the tests. The engflow build uses pinned browsers
# so this should be fine
# shellcheck disable=SC2046
bazel test --config=rbe-ci --build_tests_only \
--keep_going --flaky_test_attempts=2 \
--cache_test_results=${CACHE_RESULTS} \
//... -- $(cat .skipped-tests | tr '\n' ' ')

# Build the packages we want to ship to users
Expand Down