All uploaded reports end up in the error/processing state

Hello! I’d like to set up test coverage reports for the systemd[0] repository, however, I’m struggling to convince Codecov to actually process the uploaded reports.

The “workflow” is fairly simple:

$ git clone
$ cd systemd
$ LDFLAGS='-lgcov --coverage' meson --werror -Dc_args="-O0 --coverage" build
$ ninja -C build
$ meson test -C build --print-errorlogs --timeout-multiplier=3

After this, all necessary reports are generated and the codecov-bash script correctly detects them:

==> Searching for coverage reports in:
    + .
    -> Found 3356 reports
==> Detecting git/mercurial file structure
==> Reading reports
    + ./build/systemd-resolved@exe/^#src#resolve#resolved-dns-scope.c.gcov bytes=59
    + ./build/systemd-resolved@exe/^#src#resolve#resolved-dnstls-gnutls.c.gcov bytes=63

The word “correctly” is emphasized, due to these errors during the gcov phase:

File '../src/basic/fd-util.h'
Lines executed:100.00% of 6
No branches
Calls executed:100.00% of 2
Creating '^#src#basic#fd-util.h.gcov'
Cannot open source file ../src/basic/fd-util.h

File '../src/basic/alloc-util.h'
Lines executed:0.00% of 3
No branches
No calls
Creating '^#src#basic#alloc-util.h.gcov'
Cannot open source file ../src/basic/alloc-util.h

I couldn’t make the errors disappear using any combination of the -p and -R options for the codecov-bash script. However, after inspecting the to-be-uploaded bundle, the paths look correct:

$ tail -n3 out.log 
<<<<<< EOF

Right now I’m not sure if I’m missing something pretty obvious or the workflow has to be changed in some way. Few weeks ago I payed around with gcov/lcov manually[1] without such issues though.

The already uploaded reports can be found under the systemd Codecov project[2] and also my fork[3] where I experimented with various options.

Thank you!

[2] https ://
[3] https ://

I was able to fix this issue by cd’ing into the build dir and performing sed 's/-execdir $gcov_exe/-exec $gcov_exe/' on the codecov script.

Thanks! This indeed fixed the obvious errors in the output of codecov’s script, unfortunately, the analysis in the WebUI is still stuck on processing.

Hmm. This part works fine for me. Here is the repo: