← Back to Pull requests

[Feature] Forward Kubernetes Node infrastructure events to Ray custom resources #4978

Closed
unknown closed this pull request without merging on Sep 15, 2026 18:50 UTC
View on GitHub
unknown unknown commented on Jul 06, 2026 23:51 UTC
Author

<!-- Thank you for your contribution! -->

<!-- Please add a reviewer to the assignee section when you create a PR. If you don't have the access to it, we will shortly find a reviewer and assign them to your PR. -->

Why are these changes needed?


This PR implements a Selective Event Forwarder controller to KubeRay operator. It surfaces critical hardware and infrastructure failures (such as GPU XID errors or NCCL communication crashes) directly within the Ray Dashboard. By re-emitting Kubernetes Node events onto RayCluster and RayJob custom resources, Ray users can distinguish between application-level issues and underlying infrastructure faults without leaving their primary monitoring interface.

Design proposal: https://docs.google.com/document/d/1Isn6vbV3bugcmYn0uc_uH5To0zohiYmfnDDszaJ5KEw/edit?tab=t.0#heading=h.xcoop4webpbh

<!-- Please give a short summary of the change and the problem this solves. -->

Related issue number

<!-- For example: "Closes #1234" -->

Checks

  • I've made sure the tests are passing.

  • Testing Strategy

  • - [x] Unit tests
    - [x] E2e test
    - [x] Manual tests
    - [x] Tested on a GKE cluster
    <img width="3358" height="1822" alt="image" src="https://github.com/user-attachments/assets/14cd371c-9cbf-4512-9b5b-fa5924f770ef" />


    - [ ] This PR is not tested :(

    Diff: 168 lines (+126 / -42) across 2 files Reviewer: Future-Outlier Review duration: 101939m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.58) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.58 · 168 lines diff across 2 files
    0.58
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    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.307
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.058
    Real PR Conversation Timeline
    1 comments
    "Review active on #4978"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed sensitive_module
    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: 58.3% (MEDIUM) · Higher = larger blast radius
    58.3%
    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.8% · Lower = rushed or shallow review
    56.8%
    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: 25.2% · Safe to merge
    25.2%