Skip to content

Commit

Permalink
fix: bazelbot to limit bazel job count (#5555)
Browse files Browse the repository at this point in the history
b/376777535
  • Loading branch information
suztomo authored Nov 2, 2024
1 parent 506351d commit d053088
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bazel-bot/docker-image/generate-googleapis-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ for (( idx=${#ungenerated_shas[@]}-1 ; idx>=0 ; idx-- )) ; do
# Some API always fails to build. One failing API should not prevent all other
# APIs from being updated.
set +e
# Invoke bazel build.
(cd "$GOOGLEAPIS" && bazelisk build $BAZEL_FLAGS -k $targets)
# Invoke bazel build. Limiting job count helps to avoid memory error b/376777535.
(cd "$GOOGLEAPIS" && bazelisk build --jobs=8 $BAZEL_FLAGS -k $targets)

# Clear out the existing contents of googleapis-gen before we copy back into it,
# so that deleted APIs will be be removed.
Expand Down

0 comments on commit d053088

Please sign in to comment.