From 384e2438d296a10e79d761f8b6b92db463360709 Mon Sep 17 00:00:00 2001 From: Thierry Laurion Date: Wed, 19 Feb 2025 11:24:05 -0500 Subject: [PATCH] TESTING: CircleCI: force AVAILABLE_MEM_GB=8 so that 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 with 24.12 Failsafe which might break builds since less threads will be used to build, will see. TODO: reevaluate if builds take too long and timeouts on max 1h build time per step. Signed-off-by: Thierry Laurion --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 07a0f63b..87790e92 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 >> AVAILABLE_MEM_GB=8 | ts || touch ./tmpDir/failed_build no_output_timeout: 3h - run: name: Output hashes