Skip to content

Commit

Permalink
TESTING: CircleCI: force -j8 in make subtasks through CPUS=8, so that…
Browse files Browse the repository at this point in the history
… we respect guaranteed minimal resource allocation of CircleCI being 8Gb. Will slow down builds....

Reasoning:
- t480 depends on coreboot 24.12, which in turn depends on gcc 14.2 and consumes more memory through parallelization of CircleCI builds which randomly fails if CircleCI is under load and minimal guaranteed memory assignment is 8gb.

Failsafe which might break builds because 8 tasks max is imposed here by CPUS=8.

TODO: reevaluate if builds take too long and timeouts on max 1h build time per step.

Signed-off-by: Thierry Laurion <[email protected]>
  • Loading branch information
tlaurion committed Feb 19, 2025
1 parent 9978aa6 commit c1cf467
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ commands:
echo "Sourcing /devenv.sh since docker entrypoint doesn't do it as expected"
source /devenv.sh
rm -rf build/<< parameters.arch >>/<< parameters.target >>/* build/<< parameters.arch >>/log/*
make V=1 BOARD=<< parameters.target >> << parameters.subcommand >> | ts || touch ./tmpDir/failed_build
#Force -j8 so that each make subtask consumes 1gb max and force respect of minimal requirements of CircleCI which otherwise randomly fails
make V=1 BOARD=<< parameters.target >> << parameters.subcommand >> CPUS=8 | ts || touch ./tmpDir/failed_build
no_output_timeout: 3h
- run:
name: Output hashes
Expand Down

0 comments on commit c1cf467

Please sign in to comment.