ci: exclude SDK integration and wallet code from coverage#3385
Conversation
Exclude ~2,946 lines of untestable code from Codecov metrics: - SDK integration code requiring a running platform node (DPNS usernames, nullifier sync, address sync, DashPay contacts, Core transactions, purchase transitions) - DAPI gRPC long-polling handler - Drive-proof-verifier response type boilerplate - Drive internal size estimation helpers - Wallet logic requiring Core wallet integration Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the 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. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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. Comment |
Issue being fixed or feature implemented
Codecov metrics are skewed by ~2,946 lines of code that cannot be meaningfully unit-tested because they require a running platform node or Core wallet integration.
What was done?
Added 11 new entries to
.codecov.ymlignore:section, grouped by category:SDK integration code (requires running platform node, not unit-testable):
packages/rs-sdk/src/platform/dpns_usernames/**— DPNS username operations + contested queries (~946 lines)packages/rs-sdk/src/platform/shielded/nullifier_sync/**— SDK sync logic (335 lines)packages/rs-sdk/src/platform/address_sync/**— address sync (258 lines)packages/rs-sdk/src/platform/dashpay/**— contact requests (217 lines)packages/rs-sdk/src/core/transaction.rs— Core transaction broadcasting (142 lines)packages/rs-sdk/src/platform/documents/transitions/purchase.rs— purchase transitions (137 lines)DAPI service handlers:
packages/rs-dapi/src/services/platform_service/wait_for_state_transition_result.rs— long-polling gRPC handler (180 lines)Proof verifier boilerplate:
packages/rs-drive-proof-verifier/src/types/evonode_status.rs— response type definitions (135 lines)Drive internals:
packages/rs-drive/src/util/object_size_info/path_key_info.rs— internal size estimation (141 lines)Wallet logic (requires Core wallet integration):
packages/rs-platform-wallet/src/platform_wallet_info/matured_transactions.rs— transaction maturation (186 lines)packages/rs-platform-wallet/src/platform_wallet_info/contact_requests.rs— contact request handling (269 lines)How Has This Been Tested?
Configuration-only change to
.codecov.yml. Verified all excluded paths exist in the repository.Breaking Changes
None.
Checklist:
🤖 Generated with Claude Code