test(warp-core): gate DIND durability convergence#627
Conversation
|
Warning Review limit reached
More reviews will be available in 48 minutes and 21 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more credits in the billing tab to continue. ⌛ 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 review availability. 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, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds a DIND Durability Convergence Gate
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@crates/warp-core/tests/causal_wal_tests.rs`:
- Around line 2226-2259: Add a second negative case in the self-contained WAL
validation tests to corrupt WscSelfContainedRetainedMaterial.material_bytes as
well as the segment bytes. Use the existing wsc_self_contained_wal_export and
validate_wsc_self_contained_wal_export flow in causal_wal_tests, but mutate the
retained payload before building the export and assert it fails with
WscSelfContainedWalImportError::RetainedMaterialDigestMismatch, alongside the
existing SegmentRecovery coverage.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: e972ac3c-fca4-4a6d-a1ee-8f0ee628b35b
📒 Files selected for processing (6)
CHANGELOG.mdcrates/warp-core/tests/causal_wal_tests.rsdocs/determinism/dind-harness.mddocs/topics/WAL.mddocs/workflows.mdxtask/src/main.rs
Code Lawyer update
|
Summary
dind_durability_convergence_gateto join live filesystem WAL execution, read-only WAL recovery, WSC import, and retained reading reveal on one app-facing outcomecargo xtask dinddefault to run mode and execute the convergence gate before DIND scenario goldensdurability-releaseand update WAL/DIND workflow signpostsCloses #578
Validation
cargo test -p warp-core --test causal_wal_tests dind_durability_convergence_gatecargo test -p xtask test_slice_durability_release_stays_explicitcargo xtask dindcargo clippy -p warp-core --test causal_wal_tests -- -D warningscargo clippy -p xtask -- -D warningscargo fmt --checknpx markdownlint-cli2 CHANGELOG.md docs/topics/WAL.md docs/workflows.md docs/determinism/dind-harness.mdgit diff --checkcargo test -p warp-core --test causal_wal_testsscripts/ban-nondeterminism.shSummary by CodeRabbit
New Features
cargo xtask dindnow defaults to run mode when no subcommand is provided.Bug Fixes
Documentation