fix(test): force sync before snapshot digest check (#731) - #732
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reached
Next review available in: 44 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. 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 (1)
📝 WalkthroughWalkthroughThe bootstrap snapshot test now runs ChangesSnapshot checksum validation
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 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 |
snapshot_legacy copies ACTIVE_BINARY into the rollback dir then immediately sha256sum --check --strict's it. Under CI cache/IO pressure the copy may not be flushed when read, causing an intermittent digest mismatch. Force a real sync (bypassing the test's sync() no-op override) before the check.
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 `@deployment/aliyun/test-polymarket-raw-ops-control-plane.sh`:
- Line 2671: Remove the silent fallback from the command sync step in the
rollback validation flow so sync failures propagate and stop execution. Ensure
sha256sum --check runs only after command sync succeeds, preserving the existing
checksum validation otherwise.
🪄 Autofix
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: 8b84de5c-ddc0-4750-8051-95ce33659c24
📒 Files selected for processing (1)
deployment/aliyun/test-polymarket-raw-ops-control-plane.sh
Address CodeRabbit review: the sync must not silently fall back (|| true), else the digest check can still run on an unflushed file. die on sync failure.
Change contract
Fix intermittent snapshot-test flake (#731): force a real sync after
snapshot_legacy copies the bootstrap binary, before the digest check, so the
check does not read a partially-flushed file under CI IO pressure.
Issue relationship
Closes #731
Focused validation
Rust Workspace passes; bounded preflight scan unchanged.
Summary by CodeRabbit