Skip to content

ci: build the coverage job with two jobs to stay within the runner memory - #788

Merged
gouarin merged 1 commit into
mainfrom
ci/coverage-parallel
Oct 29, 2026
Merged

gouarin merged 1 commit into
mainfrom
ci/coverage-parallel

Conversation

@gouarin

@gouarin gouarin commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Description

The coverage job fails with "The runner has received a shutdown signal" (exit code 143) during the build, at a different file each time: on #787 and on main since 2026-10-28. No compiler error is printed before it.

At -O0 with --coverage and debug info, some test files take a lot of memory to compile (peak RSS of cc1plus, measured locally):

file peak memory
test_fv_operators.cpp 6.2 GB
test_bc_ghost_values.cpp 5.2 GB
test_flux_based_nonlin.cpp 3.9 GB

With --parallel 4, two of these plus two other files go over the 16 GB of an ubuntu-latest runner, and the runner is killed. The build now runs with --parallel 2, at most 11.4 GB. The job is not in ci-status, so the longer build does not delay merges.

…mory

At -O0 with coverage and debug info, test_fv_operators.cpp needs 6.2 GB and
test_bc_ghost_values.cpp 5.2 GB to compile. With four jobs the build goes over
the 16 GB of the runner, which is then stopped with "The runner has received a
shutdown signal" (exit code 143), at a different point of the build each time.
@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Oct 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.70%. Comparing base (74ec2a0) to head (7a72656).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #788   +/-   ##
=======================================
  Coverage   82.70%   82.70%           
=======================================
  Files         161      161           
  Lines       10200    10200           
  Branches     3926     3926           
=======================================
  Hits         8436     8436           
  Misses       1150     1150           
  Partials      614      614           
Flag Coverage Δ
cpp 83.20% <ø> (ø)
python 73.53% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gouarin
gouarin merged commit 9e77d1a into main Oct 29, 2026
27 checks passed
@gouarin
gouarin deleted the ci/coverage-parallel branch October 29, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant