Skip to content

ci: exclude generated/boilerplate packages from coverage#3354

Merged
QuantumExplorer merged 1 commit into
v3.1-devfrom
chore/exclude-generated-from-coverage
Mar 17, 2026
Merged

ci: exclude generated/boilerplate packages from coverage#3354
QuantumExplorer merged 1 commit into
v3.1-devfrom
chore/exclude-generated-from-coverage

Conversation

@QuantumExplorer

Copy link
Copy Markdown
Member

Issue being fixed or feature implemented

Coverage metrics are diluted by packages that contain no testable application logic — generated gRPC bindings, JSON schema boilerplate, version const tables, etc. These inflate the denominator without being meaningful coverage targets.

What was done?

Added the following to .codecov.yml ignore list:

Package Reason Current Coverage
dapi-grpc Generated gRPC bindings 55.83%
dashpay-contract JSON schema + load boilerplate 54.55%
data-contracts Schema definitions 25.35%
dpns-contract JSON schema + load boilerplate 54.55%
feature-flags-contract JSON schema + load boilerplate 0.00%
keyword-search-contract JSON schema + load boilerplate 61.29%
masternode-reward-shares-contract JSON schema + load boilerplate 54.55%
token-history-contract JSON schema + load boilerplate 40.57%
wallet-utils-contract JSON schema + load boilerplate 54.55%
withdrawals-contract JSON schema + load boilerplate 54.55%
rs-platform-version Large const version tables
simple-signer Thin test-only wrapper

This focuses the project coverage % on actual application code (dpp, drive, drive-abci, sdk, dapi, etc.).

How Has This Been Tested?

Codecov config change only — no code changes.

Breaking Changes

None.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation if needed

🤖 Generated with Claude Code

Exclude packages that inflate coverage metrics without representing
testable application logic:

- dapi-grpc: generated gRPC bindings
- dashpay-contract, dpns-contract, feature-flags-contract,
  keyword-search-contract, masternode-reward-shares-contract,
  token-history-contract, wallet-utils-contract, withdrawals-contract,
  data-contracts: JSON schema definitions with only auto-generated
  load_* boilerplate
- rs-platform-version: large const version tables, not logic
- simple-signer: thin test-only wrapper

This focuses the coverage % on the actual application code (dpp, drive,
drive-abci, sdk, dapi, etc.) where coverage improvements matter.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

Warning

Rate limit exceeded

@QuantumExplorer has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 5 minutes and 20 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 00746b91-821a-4282-b9b4-78e1dcd7449a

📥 Commits

Reviewing files that changed from the base of the PR and between 9ebc7e4 and 5b8814f.

📒 Files selected for processing (1)
  • .codecov.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/exclude-generated-from-coverage
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can use Trivy to scan for security misconfigurations and secrets in Infrastructure as Code files.

Add a .trivyignore file to your project to customize which findings Trivy reports.

@github-actions github-actions Bot added this to the v3.1.0 milestone Mar 17, 2026
@QuantumExplorer QuantumExplorer changed the title chore(ci): exclude generated/boilerplate packages from coverage ci: exclude generated/boilerplate packages from coverage Mar 17, 2026
@QuantumExplorer QuantumExplorer merged commit 6753d47 into v3.1-dev Mar 17, 2026
17 of 18 checks passed
@QuantumExplorer QuantumExplorer deleted the chore/exclude-generated-from-coverage branch March 17, 2026 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant