Skip to content

ci: replace grcov by cargo-llvm-cov #1986

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

Merged

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Noise in coverage scores
5 participants