Skip to content

Commit

Permalink
limit memory usage of bazel (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
jingshi-ant authored Nov 25, 2024
1 parent c8a9a0a commit 00e8678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/unittest-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
set +e
declare -i test_status
pip install numpy
bazel test //engine/... -c opt --ui_event_filters=-info,-debug,-warning --test_output=errors | tee test_result.log; test_status=${PIPESTATUS[0]}
bazel --host_jvm_args=-Xmx16g test //engine/... -c opt --jobs=10 --ui_event_filters=-info,-debug,-warning --test_output=errors | tee test_result.log; test_status=${PIPESTATUS[0]}
sh ../devtools/rename-junit-xml.sh
find bazel-bin/ -executable -type f -name "*_test" -print0 | xargs -0 tar -cvzf test_binary.tar.gz
Expand Down Expand Up @@ -131,7 +131,7 @@ jobs:
set +e
declare -i test_status
pip install numpy
bazel test //engine/... -c opt --ui_event_filters=-info,-debug,-warning --test_output=errors| tee test_result.log; test_status=${PIPESTATUS[0]}
bazel --host_jvm_args=-Xmx16g test //engine/... -c opt --jobs=10 --ui_event_filters=-info,-debug,-warning --test_output=errors| tee test_result.log; test_status=${PIPESTATUS[0]}
sh ../devtools/rename-junit-xml.sh
find bazel-bin/ -perm +111 -type f -name "*_test" -print0 | xargs -0 tar -cvzf test_binary.tar.gz
Expand Down

0 comments on commit 00e8678

Please sign in to comment.