test(rs-sdk): expect network floor in mock sdk seed test#3938
test(rs-sdk): expect network floor in mock sdk seed test#3938thepastaclaw wants to merge 1 commit into
Conversation
|
Warning Review limit reached
More reviews will be available in 13 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe test ChangesProtocol Version Floor Test Fix
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
✅ Review complete (commit c565e77) |
thepastaclaw
left a comment
There was a problem hiding this comment.
Code Review
The PR is a single test-only correction in packages/rs-sdk/tests/fetch/document_query_v0_v1.rs. Source verification confirms SdkBuilder::new_mock() defaults to mainnet and build() clamps the initial protocol version to max(DEFAULT_INITIAL_PROTOCOL_VERSION, min_protocol_version(Network::Mainnet)), so expecting max(DEFAULT_INITIAL_PROTOCOL_VERSION, PROTOCOL_VERSION_11) matches the actual SDK behavior. The targeted Cargo test could not complete because the build script needed to download Tenderdash sources and network escalation was not approved.
No active findings.
Review coverage note: Claude reviewer/verifier were unavailable due the ACP Claude limit, so this used Codex general review plus Codex verifier. The verifier inspected the pinned SHA and relevant SDK floor logic. The focused Cargo test began compiling but could not complete because the build wanted to download Tenderdash sources and network escalation was not approved.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v3.1-dev #3938 +/- ##
=============================================
+ Coverage 52.54% 87.18% +34.63%
=============================================
Files 11 2632 +2621
Lines 1707 327563 +325856
=============================================
+ Hits 897 285592 +284695
- Misses 810 41971 +41161
🚀 New features to boost your workflow:
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
Rebased on current |
985b4a5 to
c565e77
Compare
thepastaclaw
left a comment
There was a problem hiding this comment.
Code Review
Test-only update to rs-sdk mock SDK seed expectation: assertion now computes max(INITIAL_PROTOCOL_VERSION, PROTOCOL_VERSION_11), which equals 11 and matches the mainnet floor returned by Sdk::min_protocol_version in SdkBuilder::build(). Production SDK behavior is unchanged. Both agents found nothing in scope and CodeRabbit's rate-limited summary aligns with the change; no concrete inline findings to react to.
No active findings.
Review coverage note: specialist selector chose no additional specialists; Claude and Codex general reviewers both produced parseable outputs, verifier completed cleanly, and CodeRabbit had 0 inline findings with rate-limited summary-only context. Posted as a COMMENT review because GitHub does not allow approving my own PR.
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
Issue being fixed or feature implemented
Fixes #3933.
The
sdk_builder_default_seeds_atomic_to_floorrs-sdk integration teststill expected the raw
DEFAULT_INITIAL_PROTOCOL_VERSION, but mock SDKconstruction defaults to mainnet and seeds the effective protocol floor as
max(DEFAULT_INITIAL_PROTOCOL_VERSION, mainnet network floor).What was done?
DEFAULT_INITIAL_PROTOCOL_VERSION.max(PROTOCOL_VERSION_11).the initial floor.
How Has This Been Tested?
cargo fmt --allcargo test -p dash-sdk --all-features --test main fetch::document_query_v0_v1::sdk_builder_default_seeds_atomic_to_floor -- --exact --nocaptureshipBreaking Changes
None.
Checklist
corresponding section if my code contains any
For repository code-owners and collaborators only
Summary by CodeRabbit