← Back to Pull requests

[History Server] Add aliyunoss History Server deployment and proxy head samples #5156

Closed
unknown closed this pull request without merging on Sep 22, 2026 22:01 UTC
View on GitHub
unknown unknown commented on Aug 17, 2026 06:43 UTC
Author

Why are these changes needed?

#5150 adds collector-side (write path) samples for the Alibaba Cloud OSS storage backend, but there is no read-side sample showing how to deploy the History Server against the same OSS bucket, and no in-cluster way to browse it without a local Ray installation. This PR adds two manifests under historyserver/config/:

1. historyserver-aliyunoss.yaml -- History Server Service + Deployment reading from OSS via RRSA (credentials injected by ack-pod-identity-webhook). The header documents the full prerequisites, including a pitfall that costs real debugging time: the RAM role trust policy Action must be sts:AssumeRole (NOT sts:AssumeRoleWithOIDC), and oidc:iss is not a valid condition key -- both mistakes fail with an opaque AuthenticationFail.NoPermission (ImplicitDeny) from STS.
2. ray-proxy-head.yaml -- a single proxy Ray head pod wired to the History Server service via ray start --proxy-server-url, an in-cluster alternative to the local ray start flow in DEVELOPMENT.md Step 6. Browsing the History Server UI then only requires kubectl port-forward pod/ray-proxy-head 8265:8265.

Note on STORAGE_ROOT_DIR: the manifest sets it and documents that images up to v1.7.0-rc.0 do not read this env var (support was added after v1.7.0-rc.0, initially as RAY_ROOT_DIR, since renamed to STORAGE_ROOT_DIR); it must match the collector-side setting.

Related issue number

Closes #5155

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

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

    Manual test instructions

    Validated end to end on an ACK managed cluster (cn-hongkong), KubeRay operator 1.6.2, images quay.io/kuberay/{historyserver,collector}:v1.7.0-rc.0:

    1. Enabled RRSA on the cluster, created the RAM role with the trust policy documented in the manifest header, granted it OSS read/write on the test bucket, and installed ack-pod-identity-webhook.
    2. Applied service_account.yaml, annotated the historyserver ServiceAccount with the RAM role, then applied historyserver-aliyunoss.yaml (via envsubst) and the rayjob-aliyunoss.yaml sample from #5150.
    3. After the RayJob succeeded, the collector wrote 276 objects to OSS under cluster-history/rayjob/default/..., and the History Server /clusters endpoint listed the dead sessions.
    4. Applied ray-proxy-head.yaml, ran kubectl port-forward pod/ray-proxy-head 8265:8265, and verified in the browser:
    - http://localhost:8265/clusters lists sessions through the proxy head (HTTP 200);
    - http://localhost:8265/enter_cluster/default/rayjob/rayjob-historyserver-aliyunoss/<session-id> replays the dead session; /api/v0/cluster_metadata and /api/jobs/ return the recorded data.

    Diff: 378 lines (+283 / -95) across 4 files Reviewer: KunWuLuan Review duration: 52758m
    All Vouch review confidence checks passed
    Residual risk 0.26 = Change Risk (0.66) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.66 · 378 lines diff across 4 files
    0.66
    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.355
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.066
    Real PR Conversation Timeline
    1 comments
    "Review active on #5156"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 66.1% (HIGH) · Higher = larger blast radius
    66.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: 26.1% · Safe to merge
    26.1%