[History Server] Set owner info cookie and update logs file structure #4918
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.37) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 235 lines diff across 2 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.327
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4918"
general
weight: 0.35
chiayi
This is a followup to https://github.com/ray-project/kuberay/pull/4907
Why are these changes needed?
This pr updates paths for
enter_clusterto allow users to also input owner information.Previously
/enter_clusteronly accepted {namespace}/{name}/{session}, where {name} was strictly the RayCluster name. This PR expends the route to include owner kind (raycluster, rayjob, rayservice).By inputting the owner, history server will also set the necessary owner_kind and owner_name cookie.
Along with setting the owner cookie, this PR also utilizes the owner information and update the log file structure.
The log file structure is updated to this format as discussed in #4774:
<img width="839" height="431" alt="image" src="https://github.com/user-attachments/assets/45b4859e-d49a-4a88-9349-f3c18fee8fdf" />
Related issue number
Followup for https://github.com/ray-project/kuberay/pull/4907 and part of #4708
Checks
- [ ] Unit tests
- [ ] Manual tests
- [ ] This PR is not tested :(