Skip to content

Commit

Permalink
HACK: throttle the number of cores to avoid OOM on the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Feb 20, 2025
1 parent a3b9457 commit 51c4d31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extensions/cxx_debugging/tools/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ def stage2(source_dir, stage1_dir, OPTIONS):
maybe_cmake(binary_dir, cmake_args, OPTIONS.verbose)

num_cores = os.cpu_count()
# HACK: throttle the number of cores to avoid OOM on the CI
if os.getenv('CI'):
num_cores = min(num_cores, 2)

env = os.environ.copy()

if not OPTIONS.no_check:
Expand Down

0 comments on commit 51c4d31

Please sign in to comment.