← Back to Pull requests

feat: add prow tools for job history, run steps, logs and artifacts #19

Closed
unknown closed this pull request without merging on Nov 04, 2026 15:39 UTC
View on GitHub
unknown unknown commented on Oct 23, 2026 06:46 UTC
Author

Summary


  • New prow tool group that reads run data from the Prow deck and gcsweb, so presubmits and /pj-rehearse runs (not in Sippy) are covered too: get_prow_job_history, get_prow_job_run, get_prow_artifacts, get_prow_artifact_content.

  • Runs are named by their Prow URL (a PR check's Details link) or job name and build ID; only known deck hosts and buckets are accepted. Public deck (test-platform-results-public) only for now.

  • Log reads stream the object and return a tail, head or grep selection under a byte cap.
  • Merge order: #18, then #19, then #20. #19 must merge before #20, which is stacked on it.

    Fixes #16

    Test plan


  • make test, make lint, new unit tests for the client and tools

  • make smoke: 24/24, the 20 existing checks unchanged

  • New mcpchecker prow suite (make check-prow); manual runs against public presubmit, periodic and postsubmit runs
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Additional details

  • The history tool supports optional PR filtering and pagination. It includes pending and aborted runs.

  • Run details include timing, refs, per-step results, and failure excerpts. The tools list artifacts and read run logs, step logs, and text artifacts.

  • Run references accept a Prow, Spyglass, gcsweb, or GCS URL, or a job name and build ID. URL validation uses configured deck hosts and buckets.

  • Artifact content supports head, tail, and regular-expression grep selection. The default output cap is 64 KiB, and the maximum is 1 MiB. Binary artifacts return a message directing users to open the URL.

  • The change adds Prow client and tool unit tests, smoke-test coverage, and an mcpchecker prow suite.

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

    Diff: 228 lines (+171 / -57) across 2 files Reviewer: fonta-rh Review duration: 17812m
    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 · 228 lines diff across 2 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.325
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #19"
    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: 42.0% (MEDIUM) · Higher = larger blast radius
    42.0%
    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%