← Back to Pull requests

feat: read prow artifacts from the private QE deck with a token #20

Closed
unknown closed this pull request without merging on Nov 04, 2026 17:20 UTC
View on GitHub
unknown unknown commented on Oct 23, 2026 06:54 UTC
Author

Summary


  • Adds the private QE deck (qe-private-deck bucket) to the prow tools, using an OpenShift OAuth token for the CI cluster read from OPENSHIFT_CI_TOKEN (no oc dependency).

  • The token is sent only to that deck's own hosts, never forwarded on redirects, and never included in output or errors; a missing or rejected token returns a 401 tool error naming the variable.

  • PROW_DECKS adds or replaces decks. The README notes that in HTTP/SSE mode every client of the server can read the private deck.
  • Merge order: #18 and #19 are merged, so this PR is now a single commit on main and can merge on its own.

    Fixes #17

    Test plan


  • make test, make lint, make smoke (24/24 without a token), plus auth unit tests (token scope, redirect, missing/rejected token)

  • Manual: job history, run steps, step logs and listings of private rehearsal runs with a token; clear error without one
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Additional changes

  • get_prow_job_history caps each response at 100 runs. Callers can use start_build_id and next_start_build_id to page through results.

  • Prow tool parameter schemas include configured deck choices.

  • Prow authentication failures return HTTP 401 tool errors.

  • Tests cover the history cap, pagination, configured deck choices, and authentication error handling.

  • <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 186 lines (+139 / -47) across 2 files Reviewer: jeff-roche Review duration: 17905m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.64) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.64 · 186 lines diff across 2 files
    0.64
    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.313
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.064
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #20"
    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: 63.9% (MEDIUM) · Higher = larger blast radius
    63.9%
    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: 25.2% · Safe to merge
    25.2%