[Follow-up] feat: address review comments on GCS active-passive-head API #5289
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 341 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.349
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5289"
general
weight: 0.35
win5923
Why are these changes needed?
Follow-up to #4910, which was merged before @machichima and @win5923 finished their
review. This PR addresses the remaining review comments.
Changes:
1. Rename the JSON field to
activePassiveOptions(comment).
The Go field is renamed to
ActivePassiveOptionsas well so it matches its JSONtag, consistent with
TLSOptions,GcsFaultToleranceOptions, andHistoryServerOptions.2. Use CEL
XValidationfor the leader election lease timing invariants(comment).
The
leaseDurationSeconds > renewDeadlineSecondsandrenewDeadlineSeconds > retryPeriodSecondschecks moved fromvalidation.goontoActivePassiveHeadOptions, matching the existing CEL usage onGcsFaultToleranceOptions.Backend,RayJob.ManagedBy, andDeletionStrategy.3. Simplify the
ActivePassiveHeadOptionsGoDoc, dropping the sentence aboutdefault lease timings.
4. Drop the redundant
options != nilchecks in the redis branch ofvalidateGcsFaultToleranceBackend— the caller already guarantees non-nil.Regenerated CRDs, Helm chart CRDs, deepcopy, apply configurations, and API docs.
validateGcsActivePassiveHeadstill enforces theGCSFaultToleranceActivePassiveHeadfeature gate and the redis-backend requirement, since neither is expressible in CEL.
The feature remains behind the alpha
GCSFaultToleranceActivePassiveHeadfeature gate(default
false), so there is no change in behavior for existing users. Because theJSON field is renamed, this is a breaking change only for anyone who picked up the
field from master in the few hours since #4910 merged.
Related issue number
Follow-up to #4910
Related to ray-project/ray#63643
Labels
doc-updates-requiredlabel.breaking-changelabel.Checks
- [x] Unit tests
- [ ] Manual tests
- [ ] This PR is not tested :(