Skip to content

Conversation

@nymius
Copy link
Contributor

@nymius nymius commented Jul 2, 2025

Description

As explained in #1984 , I discovered some misreportings in the coverage information given by grcov.

Fixes #1984

Notes to the reviewers

The discussion about the tool to use is open, but I'm adding this PR to showcase how a change from grcov to cargo-llvm-cov would look like and the improvements in reporting this change will bring. Look the report in coveralls to get a better perspective of them.

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo +nightly fmt and cargo clippy before committing

Copy link
Member

@evanlinjin evanlinjin left a comment

Choose a reason for hiding this comment

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

ACK d6a19fc

Thank you for looking into this and describing the problem in detail.

@nymius nymius force-pushed the ci/replace-grcov-by-cargo-llvm-cov branch from d6a19fc to 1b1dade Compare July 10, 2025 16:01
@nymius nymius force-pushed the ci/replace-grcov-by-cargo-llvm-cov branch from 1b1dade to 066c4cd Compare July 11, 2025 12:32
@nymius
Copy link
Contributor Author

nymius commented Jul 11, 2025

I replaced (example-crates/*|crates/testenv/*) by (example*|crates/testenv/*)as with the former one the file chain/src/example_utils.rs (used in doctests) wasn't being excluded, and contributed to the final score.

@nymius nymius requested a review from evanlinjin July 11, 2025 12:40
@notmandatory notmandatory moved this to In Progress in BDK Chain Jul 15, 2025
@notmandatory notmandatory added this to the Wallet 2.1.0 milestone Jul 15, 2025
Copy link
Contributor

@oleonardolima oleonardolima left a comment

Choose a reason for hiding this comment

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

ACK 066c4cd

110CodingP added a commit to 110CodingP/bdk_redb that referenced this pull request Jul 22, 2025
Stolen from nymius's [pr](bitcoindevkit/bdk#1986)
on bitcoindevkit/bdk regarding the same.
110CodingP added a commit to 110CodingP/bdk_redb that referenced this pull request Jul 22, 2025
Stolen from nymius's [pr](bitcoindevkit/bdk#1986)
on bitcoindevkit/bdk regarding the same.
@notmandatory notmandatory moved this from In Progress to Needs Review in BDK Chain Jul 29, 2025
@ValuedMammal
Copy link
Collaborator

ACK 066c4cd

@ValuedMammal ValuedMammal merged commit 1074a86 into bitcoindevkit:master Jul 29, 2025
18 of 19 checks passed
@github-project-automation github-project-automation bot moved this from Needs Review to Done in BDK Chain Jul 29, 2025
@nymius nymius deleted the ci/replace-grcov-by-cargo-llvm-cov branch July 30, 2025 12:27
@oleonardolima oleonardolima mentioned this pull request Jul 31, 2025
16 tasks
kwsantiago pushed a commit to kwsantiago/bdk that referenced this pull request Aug 5, 2025
066c4cd ci: replace grcov by cargo-llvm-cov (nymius)

Pull request description:

  ### Description

  As explained in bitcoindevkit#1984 , I discovered some misreportings in the coverage information given by grcov.

  Fixes bitcoindevkit#1984

  ### Notes to the reviewers

  The discussion about the tool to use is open, but I'm adding this PR to showcase how a change from `grcov` to `cargo-llvm-cov` would look like and the improvements in reporting this change will bring. [Look the report in `coveralls`](https://coveralls.io/github/nymius/bdk?branch=ci/replace-grcov-by-cargo-llvm-cov) to get a better perspective of them.

  ### Checklists

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
  * [x] I ran `cargo +nightly fmt` and `cargo clippy` before committing

ACKs for top commit:
  ValuedMammal:
    ACK 066c4cd
  oleonardolima:
    ACK 066c4cd

Tree-SHA512: d237fcc36efb6a4d3ccfaa371c2c70fc18ee40b48ca48f1230c5df6dca093f57bc1096927ddb15f9cae59a4640d9e34bf3ef1a309037e21fe0e8348e132bf38d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Noise in coverage scores

5 participants