From ec2f3cb2d44835faeb45d5a6d9c4b2d1bc61fca1 Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Sun, 4 Oct 2026 11:43:34 +0100 Subject: [PATCH] CI: Avoid OOM on coverage merge in GitHub actions --- .github/workflows/reusable-test.yml | 2 +- Makefile.in | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable-test.yml b/.github/workflows/reusable-test.yml index e8981e899..b9780a37e 100644 --- a/.github/workflows/reusable-test.yml +++ b/.github/workflows/reusable-test.yml @@ -107,7 +107,7 @@ jobs: - name: Combine code coverage data if: ${{ inputs.dev-gcov }} run: | - make coverage-combine + make coverage-combine FASTCOV_JOBS=2 mv obj_coverage/verilator.info obj_coverage/verilator-${{ inputs.suite }}.info ls -lsha obj_coverage diff --git a/Makefile.in b/Makefile.in index 4c4ca6481..9f904c2ac 100644 --- a/Makefile.in +++ b/Makefile.in @@ -710,7 +710,8 @@ override undefine COVERAGE_BASE # Use the above variabels instead # 'fastcov' setup FASTCOV := nodist/fastcov.py -FASTCOV_OPT := -j $(shell nproc) +FASTCOV_JOBS ?= $(shell nproc) +FASTCOV_OPT := -j $(FASTCOV_JOBS) FASTCOV_OPT += --gcov $(GCOV) FASTCOV_OPT += --lcov FASTCOV_OPT += --process-gcno