Skip to content

Commit

Permalink
tasks: override cpu count in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
csegarragonz committed Aug 30, 2023
1 parent c725c04 commit 469e8cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tasks/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from subprocess import run
from tasks.util.env import FAABRIC_STATIC_BUILD_DIR, PROJ_ROOT

IS_CI = "HOST_TYPE" in environ and environ["HOST_TYPE"] == "ci"

TEST_ENV = {
"LOG_LEVEL": "info",
"PLANNER_HOST": "localhost",
Expand All @@ -23,6 +25,10 @@
"UBSAN_OPTIONS": "print_stacktrace=1:halt_on_error=1",
}

# If executing in CI, give us some extra CPU cores to run the tests
if IS_CI:
TEST_ENV["OVERRIDE_CPU_COUNT"] = 5


@task(default=True)
def tests(
Expand Down

0 comments on commit 469e8cb

Please sign in to comment.