Skip to content

Commit

Permalink
Merge bitcoin#23797: ci: Use Cirrus "greedy" flag to use idle CPU tim…
Browse files Browse the repository at this point in the history
…e when …
  • Loading branch information
MarcoFalke authored and jagdeep sidhu committed Dec 20, 2021
1 parent 9eee2a9 commit f1302be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .cirrus.yml
@@ -1,6 +1,6 @@
env: # Global defaults
PACKAGE_MANAGER_INSTALL: "apt-get update && apt-get install -y"
MAKEJOBS: "-j4"
MAKEJOBS: "-j10"
TEST_RUNNER_PORT_MIN: "14000" # Must be larger than 12321, which is used for the http cache. See https://cirrus-ci.org/guide/writing-tasks/#http-cache
CCACHE_SIZE: "200M"
CCACHE_DIR: "/tmp/ccache_dir"
Expand Down Expand Up @@ -38,6 +38,7 @@ main_template: &MAIN_TEMPLATE
# https://cirrus-ci.org/faq/#are-there-any-limits
# Each project has 16 CPU in total, assign 2 to each container, so that 8 tasks run in parallel
cpu: 2
greedy: true
memory: 8G # Set to 8GB to avoid OOM. https://cirrus-ci.org/guide/linux/#linux-containers
ccache_cache:
folder: "/tmp/ccache_dir"
Expand Down Expand Up @@ -205,7 +206,6 @@ task:
memory: 24G
env:
<< : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
MAKEJOBS: "-j12"
FILE_ENV: "./ci/test/00_setup_env_native_tsan.sh"

task:
Expand All @@ -216,6 +216,7 @@ task:
env:
<< : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
FILE_ENV: "./ci/test/00_setup_env_native_msan.sh"
MAKEJOBS: "-j4" # Avoid excessive memory use due to MSan

task:
name: '[ASan + LSan + UBSan + integer, no depends] [jammy]'
Expand All @@ -228,6 +229,7 @@ task:
<< : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
MAKEJOBS: "-j8"
FILE_ENV: "./ci/test/00_setup_env_native_asan.sh"
MAKEJOBS: "-j4" # Avoid excessive memory use

task:
name: '[fuzzer,address,undefined,integer, no depends] [focal]'
Expand All @@ -239,7 +241,6 @@ task:
memory: 16G
env:
<< : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
MAKEJOBS: "-j8"
FILE_ENV: "./ci/test/00_setup_env_native_fuzz.sh"

task:
Expand All @@ -251,7 +252,6 @@ task:
memory: 16G # The default memory is sometimes just a bit too small, so double everything
env:
<< : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
MAKEJOBS: "-j8"
FILE_ENV: "./ci/test/00_setup_env_native_multiprocess.sh"

task:
Expand Down

0 comments on commit f1302be

Please sign in to comment.