Skip to content

Conversation

nijynot
Copy link
Contributor

@nijynot nijynot commented Dec 2, 2019

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.

@DrahtBot
Copy link
Contributor

DrahtBot commented Dec 2, 2019

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #17398 (build: Update leveldb to 1.22+ by laanwj)

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.

Copy link
Member

@maflcko maflcko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK. Will test

@nijynot nijynot changed the title lcov: filter depends lcov: filter depends from coverage reports Dec 6, 2019
@nijynot
Copy link
Contributor Author

nijynot commented Dec 7, 2019

LCOV_FILTER_PATTERN is now multiline.

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/" \
Copy link
Member

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

Copy link
Contributor Author

@nijynot nijynot Dec 8, 2019

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?

Copy link
Member

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

Copy link
Contributor Author

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! 👌

@laanwj
Copy link
Member

laanwj commented Dec 9, 2019

code review ACK f736f69

@maflcko
Copy link
Member

maflcko commented Dec 9, 2019

ACK f736f69 🐇

Show signature and timestamp

Signature:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

ACK f736f6920b160c9e7d7072500ddd0459c5181f86 🐇
-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
pUiCUgwAnGb18yCEtCe5OjCrdAEbZi41rVNvSpfSBJuj3Hfd3BQ/ao8LNJSc8vth
/gnublAX7N9eNu0nW8xC/P8YLiNZ2pWRBS/TYc6SBoA7p6moicv95L5yOtmUO7Jf
YEimYpnvqfSX+VnLvjsD0j3wWynJoQMuPRpQoHuNQJphwXyfTKWlMToFUY6H2YKs
G3229G+Kh00kAzaL1EE2nNUUj8SMf1w2UT0xF7nSf4nkRxRVFspK42loJAni6RmV
EOz/wkYk8G2MKfnR91h5+s458njP5JFB/wQIk0+cuX9wx/NMTRaQadKo+UvIt94G
h+utUjG43wCltZHMGH7xTIBM3BKRhuGaa+JYiqmFcbz+HKaWe3MFUc5TVWI7tKJv
TQjKA52U6xRP8mcnjW2Ul6U82RCy1+YtzrppZCcriY1hfcqi4aVnwxojsbJ3I9G9
b+YI2czru7XlCzBh6dFumeBFTU67M7+Rsym/d2MTEn5Mms6/jS04nEkJuCwP4Foe
2eDEEAT0
=QVGe
-----END PGP SIGNATURE-----

Timestamp of file with hash b372428e288a16e241dced9edf731090d312c52e912c70c55e4fc97fd967002a -

maflcko pushed a commit that referenced this pull request Dec 9, 2019
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
@maflcko maflcko merged commit f736f69 into bitcoin:master Dec 9, 2019
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Dec 9, 2019
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
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Feb 20, 2020
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
ftrader pushed a commit to bitcoin-cash-node/bitcoin-cash-node that referenced this pull request May 19, 2020
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
sidhujag pushed a commit to syscoin-core/syscoin that referenced this pull request Nov 10, 2020
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
knst pushed a commit to knst/dash that referenced this pull request May 26, 2022
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
knst pushed a commit to knst/dash that referenced this pull request May 27, 2022
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
knst pushed a commit to knst/dash that referenced this pull request May 30, 2022
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
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants