← Back to Pull requests

feat: discover log gateway trust and delete active jobs #14

Closed
unknown closed this pull request without merging on Nov 12, 2026 15:22 UTC
View on GitHub
unknown unknown commented on Nov 09, 2026 16:19 UTC
Author

Install Training Service from its public Helm repository using the chart defaults. The official public service image is published, and a fresh installation was verified with no values file, image override, gateway URL or customer-created CA ConfigMap. Pending and running jobs can also be deleted, cancelling execution while preserving saved PVC output.

helm repo add training-service https://raw.githubusercontent.com/opendatahub-io/training-service/helm-charts/
helm repo update training-service
helm install training-service training-service/training-service \
  --namespace training-service --create-namespace --wait --timeout 15m

The chart installs the API on an already prepared RHOAI/ODH platform. Ray/Kueue, training inputs, GPU capacity and installer RBAC permissions must already be available. Customization can be made directly in a downloaded chart's values.yaml.

Changes:

  • Discover the ready GatewayConfig/default-gateway domain and the public ingress CA in openshift-config-managed/default-ingress-cert. Use an isolated service-account client with access only to the named platform resources; workload operations retain caller credentials.

  • Verify gateway TLS for snapshots and SSE. Refresh cached discovery after 60 seconds, retain the last validated configuration when refresh fails, and retry after a bounded delay without holding locks over network calls. A first-time discovery failure returns 503 logs_unavailable; startup and non-log job operations remain independent.

  • Validate missing, malformed and conflicting Helm settings. Keep explicit custom gateways and CA bundles as optional overrides. Include the release namespace in cluster-wide RBAC names to avoid collisions between installations.

  • Delete pending, running and terminal jobs directly through caller-authenticated Kubernetes in jobs.py. Preserve foreground cleanup, ownership checks, UID/resource-version race protection and error mapping. CodeFlare SDK 0.40.1 remains pinned for submission/log access. DELETE returns 204 on acceptance; poll GET until 404. Logs can become unavailable while deletion removes the Ray cluster.

  • Publish chart 0.1.0, use public quay.io/modh/training-service:0.1.0, and add short install/customization instructions and Helm output showing how to obtain the API URL.

  • Require real pending/running deletion evidence in deployment E2E runs; avoid preprovisioned service-side CA settings on the default installation path.
  • Validation:

  • 1,020 unit tests passed, including 36 Helm tests. Ruff, formatting, mypy, Helm lint/template checks and OpenShift server-side dry-run validation passed.

  • Official AMD64 image built from application commit 994e168e919e01bfc3d215529a53493cba762cc9; anonymous image and chart downloads verified. Published and running image digest: sha256:ae920c93d135dcc841c30a269f47358b1649ffe65b6aaf43c9dd64619949a2fb.

  • Actual helm repo add / helm install from empty Helm configuration succeeded in test-efazal: status deployed, Ready pod, zero restarts, catalog initialization exit 0, helm get values returned null. Existing deployments were preserved.

  • 144 live E2E tests passed, 18 explicitly skipped in 294.58 seconds. A real one-GPU Qwen LoRA job reached SUCCEEDED, Kueue admission was observed, snapshots and SSE delivered logs, requested one-/three-second expiry measured 1.001/3.002 seconds, two LoRA checkpoints validated, and terminal/pending/running deletion cleaned up owned resources. Saved checkpoints remained readable.

  • The live run covers baseline LoRA, not the optional algorithm matrix, remote-storage and isolated error/authorization fixtures. Catalog discovery does not prove execution of all seven catalog algorithms. The default 300-second stream setting was retained; this run measured shorter requested lifetimes.
  • Detailed evidence and limitations, including machine-readable deployment, digests, timeout, checkpoint and deletion results. Subsequent changes after the image build are chart/tests/docs only; application code is unchanged.

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    New Features
    Log streaming can automatically discover the platform gateway and ingress CA, with caching and refresh behavior. Custom HTTPS gateways and trusted CA certificates are also supported.
    Pending and running jobs can be deleted; active jobs are canceled during cleanup, while saved external output is preserved.
    Installations can use chart defaults without a separate values file.
    Bug Fixes
    Invalid gateway, certificate, timeout, and image settings now produce configuration errors.
    Log connection or trust failures do not affect job operations or service readiness.
    Documentation
    * Updated installation, gateway configuration, and job deletion guidance.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 638 lines (+478 / -160) across 7 files Reviewer: Sridhar1030 Review duration: 4262m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 638 lines diff across 7 files
    0.50
    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.386
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #14"
    general weight: 0.35
    Reviewers
    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: 50.4% (MEDIUM) · Higher = larger blast radius
    50.4%
    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: 19.9% · Safe to merge
    19.9%