fix(collector): accept operator-tuned PM upload timeouts - #693
Conversation
|
Warning Review limit reached
Next review available in: 50 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 (2)
📝 WalkthroughWalkthroughThe Gate now accepts any positive whole-second values for ChangesOSS timeout validation
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
deployment/aliyun/test-polymarket-raw-ops-control-plane.sh (1)
4842-4849: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick winTest the runtime contract, not only source text.
These assertions search for regex fragments and a comment. They do not execute
load_oss_config_snapshot, verify acceptance of3600/1800, reject zero values, or prove that changed timeout values alter the digest comparison. Add or reference behavioral cases for these conditions.🤖 Prompt for 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. In `@deployment/aliyun/test-polymarket-raw-ops-control-plane.sh` around lines 4842 - 4849, Replace the source-text-only assertions near load_oss_config_snapshot with behavioral tests that execute the function, accept positive timeout values such as 3600 and 1800, reject zero values, and verify that changing either timeout changes the OSS configuration digest comparison. Reuse the existing test harness and setup symbols in test-polymarket-raw-ops-control-plane.sh rather than relying on grep checks or comments.
🤖 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/polymarket-raw-ops-shadow-gate.sh`:
- Around line 739-742: Update the timeout validation near the existing
positive-whole-seconds check so zstd_timeout_seconds cannot exceed the accepted
worst-case compression/IO window; alternatively, remove the operator override
for --zstd-timeout and use the fixed bounded timeout directly when launching
zstd. Preserve the existing OSS timeout clamping and validation behavior.
---
Nitpick comments:
In `@deployment/aliyun/test-polymarket-raw-ops-control-plane.sh`:
- Around line 4842-4849: Replace the source-text-only assertions near
load_oss_config_snapshot with behavioral tests that execute the function, accept
positive timeout values such as 3600 and 1800, reject zero values, and verify
that changing either timeout changes the OSS configuration digest comparison.
Reuse the existing test harness and setup symbols in
test-polymarket-raw-ops-control-plane.sh rather than relying on grep checks or
comments.
🪄 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: 2d08b2f1-67e3-459e-82d6-8ed1f47f3bfe
📒 Files selected for processing (2)
deployment/aliyun/polymarket-raw-ops-shadow-gate.shdeployment/aliyun/test-polymarket-raw-ops-control-plane.sh
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 415ea0e767
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
2f4868b to
168d4dc
Compare
Root cause: the shadow Gate hard-coded 300/300 even though the production uploader uses longer bounded timeouts. Validate positive whole seconds and keep the exact values hash-bound instead.
Exercise the production 3600/1800 timeout values in the existing six-hour Gate runtime-budget contract and retire the obsolete exact-300 assertion.
Use the same operator-tuned upload timeout values in the admission-budget fixture as in the runtime-budget regression.
168d4dc to
1ee1dd3
Compare
Change contract
Allow the Polymarket shadow Gate to use operator-tuned positive upload timeouts during rapid development instead of hard-blocking every value except 300/300. Exact timeout values remain part of the OSS configuration hash and are revalidated throughout Gate/cutover.
Issue relationship
None
Out of scope
Production timeout changes; Binance USDM/Spot; PM market collector behavior; uploader logic; research/runtime execution paths.
Dependencies and merge order
None
Focused validation
Gate still hard-blocks operator-tuned upload timeouts.load_oss_config_snapshotaccepts 3600/1800 and produces a 64-hex config hash.upload timeouts must be positive whole seconds.bash -non both changed scripts.git diff --checkand managed-worktree preflight.snapshotted Rust bootstrap binary digest changed before rollback manifest; no files outside this two-file contract were changed. GitHub CI is the clean-runner authority.Rollout and rollback
Rebuild the exact merged
polymarket-raw-opscandidate, run canonical stage/Gate/cutover, and require unchanged source/binary/control hashes, stable PM reference health and writes, natural rotation/upload, and independent OSS data/manifest/_SUCCESS readback. Roll back by restoring the prior production binary/release identity through the existing cutover contract.Scope exception
None
Summary by CodeRabbit
New Features
Bug Fixes