← Back to Pull requests

[History Server] Poll Serve, placement group, and Ray Data endpoints by default #5093

Closed
unknown closed this pull request without merging on Aug 11, 2026 15:20 UTC
View on GitHub
unknown unknown commented on Aug 05, 2026 22:36 UTC
Author

Why are these changes needed?

The History Server rebuilds the UI from Ray events, but Serve applications, placement groups, and Ray Data datasets are not in the event stream yet. The head collector now polls these endpoints by default so replayed clusters show them:

  • /api/serve/applications/

  • /api/v0/placement_groups?detail=1&limit=10000

  • /api/data/datasets/{job_id} (per job discovered via /api/jobs/)
  • You can set the interval with RAY_COLLECTOR_POLL_INTERVAL if you want (default 30s). RAY_COLLECTOR_ADDITIONAL_ENDPOINTS still adds more endpoints on top. Ray Train can follow once its frontend schema is settled.

    Screenshots

    Dead clusters replayed through the History Server, each endpoint with and without data.

    Serve applications:

    !serve applications with data

    Serve applications, cluster that never ran Serve:

    !serve applications empty

    Ray Data datasets from an illustrative larger manual workload with Prometheus (separate from the small E2E fixture), with a row expanded into its operators:

    !ray data datasets

    Placement groups; this job used no Ray Data, so no Ray Data Overview section:

    !placement groups with data

    Placement groups, job that created none:

    !placement groups empty

    Related issue number

    Labels

  • 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

  • - [x] Unit tests
    - [x] Manual tests

    Manual test instructions

  • Unit: cd historyserver && make test.

  • E2E on kind + MinIO: cd historyserver && go test -count=1 ./test/e2e/ -run 'TestCollector$' — 8/8 passing.

  • The Ray Data memory and CPU columns come from Prometheus queries in the dashboard, so they read 0 without a Prometheus server (on live clusters too); the screenshot was taken with one installed.
  • Diff: 329 lines (+246 / -83) across 4 files Reviewer: Future-Outlier Review duration: 8204m
    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 · 329 lines diff across 4 files
    0.42
    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%
    60%
    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.347
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #5093"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 42.1% (MEDIUM) · Higher = larger blast radius
    42.1%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 16.6% · Safe to merge
    16.6%