-
Notifications
You must be signed in to change notification settings - Fork 37.7k
lcov: filter depends from coverage reports #17647
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
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK. Will test
a6a7c1b
to
a5a705b
Compare
|
LCOV_FILTER_PATTERN=-p "/usr/include/" -p "/usr/lib/" -p "src/leveldb/" -p "src/bench/" -p "src/univalue" -p "src/crypto/ctaes" -p "src/secp256k1" | ||
LCOV_FILTER_PATTERN = \ | ||
-p "/usr/include/" \ | ||
-p "/usr/lib/" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a commit to also exclude lib64, please. This shows up when compiling with clang-8 for example:
https://pbs.twimg.com/media/ELKJFh3XsAAM6mJ?format=png&name=medium
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! Guessing that I should squash the commits too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's fine to have these as separate commits, they're not really related
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, will keep it as is! 👌
code review ACK f736f69 |
ACK f736f69 🐇 Show signature and timestampSignature:
Timestamp of file with hash |
f736f69 lcov: filter /usr/lib64 from coverage report (nijynot) a5a705b lcov: filter depends from coverage report (nijynot) Pull request description: If you build the binaries with the `depends` folder and then generate coverage reports with `make cov`, `depends` will be included in the coverage reports. Coverage of the dependencies are not that interesting and should be filtered. ACKs for top commit: laanwj: code review ACK f736f69 MarcoFalke: ACK f736f69 🐇 Tree-SHA512: 57c3e09f32e71523afff6ddc4f92bc35ab7b783f26f7a7380ae7556222954111cccce4c6dbc99305c424818f91e15bf5fe3532a7dca1daaa8ad71315d1dd857c
f736f69 lcov: filter /usr/lib64 from coverage report (nijynot) a5a705b lcov: filter depends from coverage report (nijynot) Pull request description: If you build the binaries with the `depends` folder and then generate coverage reports with `make cov`, `depends` will be included in the coverage reports. Coverage of the dependencies are not that interesting and should be filtered. ACKs for top commit: laanwj: code review ACK f736f69 MarcoFalke: ACK f736f69 🐇 Tree-SHA512: 57c3e09f32e71523afff6ddc4f92bc35ab7b783f26f7a7380ae7556222954111cccce4c6dbc99305c424818f91e15bf5fe3532a7dca1daaa8ad71315d1dd857c
Summary: ``` If you build the binaries with the depends folder and then generate coverage reports with make cov, depends will be included in the coverage reports. Coverage of the dependencies are not that interesting and should be filtered. ``` Backport of core [[bitcoin/bitcoin#17647 | PR17647]]. Depends on D5301. Test Plan: ../configure --prefix=$PWD/../depends/x86_64-linux-gnu --enable-lcov make make cov Check there is no `depends/` subdir under `total.coverage`. Reviewers: #bitcoin_abc, jasonbcox Reviewed By: #bitcoin_abc, jasonbcox Differential Revision: https://reviews.bitcoinabc.org/D5303
Summary: ``` If you build the binaries with the depends folder and then generate coverage reports with make cov, depends will be included in the coverage reports. Coverage of the dependencies are not that interesting and should be filtered. ``` Backport of core [[bitcoin/bitcoin#17647 | PR17647]]. Depends on D5301. Test Plan: ../configure --prefix=$PWD/../depends/x86_64-linux-gnu --enable-lcov make make cov Check there is no `depends/` subdir under `total.coverage`. Reviewers: #bitcoin_abc, jasonbcox Reviewed By: #bitcoin_abc, jasonbcox Differential Revision: https://reviews.bitcoinabc.org/D5303
f736f69 lcov: filter /usr/lib64 from coverage report (nijynot) a5a705b lcov: filter depends from coverage report (nijynot) Pull request description: If you build the binaries with the `depends` folder and then generate coverage reports with `make cov`, `depends` will be included in the coverage reports. Coverage of the dependencies are not that interesting and should be filtered. ACKs for top commit: laanwj: code review ACK f736f69 MarcoFalke: ACK f736f69 🐇 Tree-SHA512: 57c3e09f32e71523afff6ddc4f92bc35ab7b783f26f7a7380ae7556222954111cccce4c6dbc99305c424818f91e15bf5fe3532a7dca1daaa8ad71315d1dd857c
f736f69 lcov: filter /usr/lib64 from coverage report (nijynot) a5a705b lcov: filter depends from coverage report (nijynot) Pull request description: If you build the binaries with the `depends` folder and then generate coverage reports with `make cov`, `depends` will be included in the coverage reports. Coverage of the dependencies are not that interesting and should be filtered. ACKs for top commit: laanwj: code review ACK f736f69 MarcoFalke: ACK f736f69 🐇 Tree-SHA512: 57c3e09f32e71523afff6ddc4f92bc35ab7b783f26f7a7380ae7556222954111cccce4c6dbc99305c424818f91e15bf5fe3532a7dca1daaa8ad71315d1dd857c
f736f69 lcov: filter /usr/lib64 from coverage report (nijynot) a5a705b lcov: filter depends from coverage report (nijynot) Pull request description: If you build the binaries with the `depends` folder and then generate coverage reports with `make cov`, `depends` will be included in the coverage reports. Coverage of the dependencies are not that interesting and should be filtered. ACKs for top commit: laanwj: code review ACK f736f69 MarcoFalke: ACK f736f69 🐇 Tree-SHA512: 57c3e09f32e71523afff6ddc4f92bc35ab7b783f26f7a7380ae7556222954111cccce4c6dbc99305c424818f91e15bf5fe3532a7dca1daaa8ad71315d1dd857c
f736f69 lcov: filter /usr/lib64 from coverage report (nijynot) a5a705b lcov: filter depends from coverage report (nijynot) Pull request description: If you build the binaries with the `depends` folder and then generate coverage reports with `make cov`, `depends` will be included in the coverage reports. Coverage of the dependencies are not that interesting and should be filtered. ACKs for top commit: laanwj: code review ACK f736f69 MarcoFalke: ACK f736f69 🐇 Tree-SHA512: 57c3e09f32e71523afff6ddc4f92bc35ab7b783f26f7a7380ae7556222954111cccce4c6dbc99305c424818f91e15bf5fe3532a7dca1daaa8ad71315d1dd857c
If you build the binaries with the
depends
folder and then generate coverage reports withmake cov
,depends
will be included in the coverage reports. Coverage of the dependencies are not that interesting and should be filtered.