Skip to content

[build] allow GitHub Actions runner to use 4GB for JVM Heap #15692

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 4 commits into from
May 6, 2025
Merged
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
5 changes: 4 additions & 1 deletion scripts/github-actions/ci-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set -eufo pipefail
# We want to see what's going on
set -x

# Define heap size for GitHub Actions runner
HEAP_SIZE="-Xmx4g"

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

Expand All @@ -15,7 +18,7 @@ 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 \
bazel --host_jvm_args=${HEAP_SIZE} test --config=rbe-ci --build_tests_only \
--keep_going --flaky_test_attempts=2 \
--cache_test_results=${CACHE_RESULTS} \
//... -- $(cat .skipped-tests | tr '\n' ' ')
Expand Down