fix(collector): shorten test-only shadow health settle - #356
Conversation
|
Warning Review limit reached
Next review available in: 48 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?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 reviews. How do review 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 refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe shadow gate now supports a validated test-only health-settle override, uses the selected duration for deadline and manifest-age calculations, records it in run and gate evidence, and expands control-plane contract checks. ChangesHealth settle configuration
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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: 3
🤖 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 `@deployment/aliyun/host-rust-lob-shadow-gate.sh`:
- Around line 30-31: Update the usage text near the
MONDAY_TEST_HEALTH_SETTLE_SECONDS entry to state that the override is authorized
only when MONDAY_ALLOW_SHORT_GATE_FOR_TESTS=1 is also set and the requested
settling duration is below the formal duration; clarify that otherwise the
policy check fails.
- Around line 120-124: Update the validation around
MONDAY_TEST_HEALTH_SETTLE_SECONDS to reject values exceeding Bash’s safe
arithmetic range before the numeric comparison with HEALTH_SETTLE_SECONDS.
Preserve the positive-integer requirement and ensure only values safely
representable for arithmetic reach the existing “shorter than formal settle
duration” check and health_settle_seconds assignment.
In `@deployment/aliyun/test-rust-lob-control-plane.sh`:
- Around line 48-56: Expand the test around the gate policy to execute it
hermetically and cover authorized short-settle success plus rejection for
test_only=false, missing authorization, invalid values, and values at or above
HEALTH_SETTLE_SECONDS. Replace unscoped evidence-field checks with assertions
that separately validate the effective health-settle duration in both run.json
and gate.json, ensuring the tests verify behavior rather than only source text.
🪄 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: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 6925daa3-b236-4dd6-ab74-62e956587858
📒 Files selected for processing (2)
deployment/aliyun/host-rust-lob-shadow-gate.shdeployment/aliyun/test-rust-lob-control-plane.sh
Change contract: allow an explicitly authorized test-only Rust LOB shadow gate to shorten only the health-settling window, while keeping the formal 3600-second observation and 2400-second settle unchanged.
Acceptance evidence:
bash deployment/aliyun/test-rust-lob-control-plane.shpasses.bash -n deployment/aliyun/host-rust-lob-shadow-gate.shpasses.Out of scope: no collector Rust logic, snapshot/research logic, production cutover, or historical data reconstruction.
Dependency / merge order: based on merged collector PR #346; merge this gate-only fix before installing the next ECS candidate release.
Rollout / rollback impact: deployment scripts are updated only after this PR is merged and a new candidate release is built. A test-only gate remains
production_eligible=false; formal cutover requirements are unchanged. Revert this PR to restore the previous fixed settle behavior.Summary by CodeRabbit
New Features
Tests