Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Version 2.1.3 fails to find gcov files

See original GitHub issue

Issue Description

Recently codecov stopped uploading my C code coverage on a Python C extension I have written.

In this job, tox is using codecov==2.1.1, and the upload succeeds.

In this job, tox is using codecov==2.1.3 and I see the following error:

==> Detecting CI provider
  -> Got branch from git/hg
  -> Got sha from git/hg
==> Preparing upload
==> Processing gcov (disable by -X gcov)
    Executing gcov (gcov -pb  .../zoneinfo/.tox/gcov/coverage/build/temp.linux-x86_64-3.8/lib/zoneinfo_module.gcno)
    Error running `gcov -pb  .../zoneinfo/.tox/gcov/coverage/build/temp.linux-x86_64-3.8/lib/zoneinfo_module.gcno`: 
        [Errno 2] No such file or directory: 'gcov -pb  .../zoneinfo/.tox/gcov/coverage/build/temp.linux-x86_64-3.8/lib/zoneinfo_module.gcno'
Error: 'NoneType' object has no attribute 'replace'

(I’ve modified this slightly to make it a bit easier to read by shortening some paths and breaking up one extra long line).

Unfortunately I don’t have time to create a minimal reproducer, but if you clone the zoneinfo repository and run tox -e gcov, that should generate the coverage files, and I’m using scripts/ to upload the coverage files — it is just a script that finds the XML file output that gcovr emits, and passes that to codecov -f.

I’m guessing is the culprit.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

nmoinvazcommented, May 22, 2020

Ok I will take a look at it

thomasrockhucommented, Jun 3, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

gcovr Documentation - Read the Docs
This will search for all your .gcno and .gcda files, run the compiler's gcov tool, and summarize the code coverage statistics into a...
Read more >
Change Log — gcovr 5.2 documentation
Internal changes: Fix black check to fail on format errors. (#%s594); Change session black with no arguments to format all files.
Read more >
Dumping gcov data at runtime - simple example - OSADL
In a first step, make sure that you will be using the proper libgcov that fits your compiler - check with gcc --version...
Read more >
gcov not generating all gcda files - Stack Overflow
Sorry for a delay. You need to compile every source file in the program with proper options to use gcov.
Read more >
[Code Coverage] How to Check Code Coverage on Linux ...
in this video we will see:1. How to compile program with gcc to check code coverage.2. How to check code coverage first using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found