8000 WIP, TST: include missing source files in gcov report by tylerjereddy · Pull Request #11791 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

WIP, TST: include missing source files in gcov report #11791

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

tylerjereddy
Copy link
Contributor

Fixes #11790

See the linked issue for details -- this initial attempt is probably a bit optimistic, but I'm having a hard time reproducing the problem locally on my mac.

* gcov requires *.gcda files to have newer
timestamps than *.c and *.gcno files; this
causes some C source files to be ignored
in coverage report, so we now explicitly
touch all *.gcda files before running
gcov in CI
@tylerjereddy
Copy link
Contributor Author

The CI will pass here, but the issue is not fixed as the problematic statements are still visible in the output for gcov.

@tylerjereddy
Copy link
Contributor Author

One possible complication for me to check -- we use gcov in a CI job where we first build a NumPy wheel from source, then install that wheel into a virtualenv, then apparently run the test suite using the virtualenv-installed NumPy.

gcov itself is operating on the files in the original source build dir, so perhaps that extra chaining from the source build to the wheel install increases susceptibility to C coverage issues, but why this happens only for a small subset of C files is not clear to me yet.

@tylerjereddy
Copy link
Contributor Author

Closing in favor of my proposal to adjust Matti's PR slightly as that seems to work locally to avoid the C cov issue.

@tylerjereddy tylerjereddy deleted the issue_11790_gcov_stamps branch August 21, 2018 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0