← Back to Pull requests

[History Server] Replace RayCluster with RayJob sample yaml #5150

Merged
machichima merged 25 files (2225 lines) on Aug 17, 2026 19:39 UTC
View on GitHub
machichima machichima commented on Aug 15, 2026 03:06 UTC
Author

Why are these changes needed?

We originally provide sample YAML of RayCluster for users. However, it's more common for user to user history server with RayJob. This PR did following changes:

1. Move YAML that's needed for tests into test/testdata/ and update the test to use yam from it
2. For user-facing YAML, replace RayCluster ones with RayJob, set shutdownAfterJobFinishes: true and ttlSecondsAfterFinished: 30
3. Add rayjob sample for aliyunoss backend storage

Related issue number

Labels

<!-- Please add the appropriate labels to this PR. -->

  • If this PR has user-facing changes that require documentation updates at release time, I have added the doc-updates-required label.

  • If this PR contains breaking changes, I have added the breaking-change label.
  • Checks

  • I've made sure the tests are passing.

  • Testing Strategy

  • - [ ] Unit tests
    - [ ] Manual tests
    - [ ] This PR is not tested :(

    <!-- If you selected "Manual tests" above, please fill in the section below. Otherwise you can remove it. -->

    Manual test instructions

    <!--
    Provide step-by-step instructions so reviewers can verify your changes.
    Include any relevant screenshots or logs demonstrating the behavior.
    -->

    Diff: 2225 lines (+2077 / -148) across 25 files Reviewer: andrewsykim Review duration: 3873m
    All Vouch review confidence checks passed
    Residual risk 0.31 = Change Risk (0.72) × (1 − Review Confidence (0.56)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.72 · 2225 lines diff across 25 files
    0.72
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.26 · 1 substantive comment(s)
    0.26
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.400
    Shallow Review Depth shallow_review_depth
    0.259
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    1 item
    "Review active on #5150"
    general weight: 0.35
    Reviewers
    Assignees
    machichima machichima
    Labels
    risk: low confidence: 56.4% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 71.5% (HIGH) · Higher = larger blast radius
    71.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.4% · Lower = rushed or shallow review
    56.4%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 31.2% · Safe to merge
    31.2%