← Back to Pull requests

Make benchmark job logs more readable and summarize moved thresholds #366

Closed
unknown closed this pull request without merging on Nov 27, 2026 14:57 UTC
View on GitHub
unknown unknown commented on Nov 26, 2026 18:14 UTC
Author

A failing benchmark job logged everything inside one group of about 16,000 lines, most of them progress-bar redraws, so a reader had to scroll through the whole log to find which thresholds moved.

Changed:
Folded the thresholds check and thresholds update output into a group each, in place of one group around the whole package.
Dropped the plugin's progress-bar redraws from the log.
Wrote the thresholds diff to the step summary as a fenced diff block, which GitHub colors.
Repeated the end of the thresholds update output outside its group when it fails.
Kept the === BEGIN DIFF marker directly ahead of the diff, in a group of its own.
Added tests for the log layout and the step summary.

Result:
The job's summary page shows which thresholds moved without opening the log.
A build error shows its last lines in the job log, not behind a folded group.

  • Tooling that scrapes the diff from the log reads the same text as before.
  • Screenshots


    Previous appearance in logs:
    <img width="752" height="96" alt="Screenshot 2026-11-26 at 12 16 25 PM" src="https://github.com/user-attachments/assets/d1238d15-594a-444e-958a-2568050cee64" />
    New appearance in logs:
    <img width="748" height="153" alt="Screenshot 2026-11-26 at 1 06 54 PM" src="https://github.com/user-attachments/assets/365f5495-c8ae-441a-ac6c-1d98fcd6515b" />

    New appearance in summary:
    <img width="1335" height="736" alt="Screenshot 2026-11-26 at 1 08 19 PM" src="https://github.com/user-attachments/assets/53db6c0f-0246-48eb-ac06-2b9808b22c8c" />

    Diff: 192 lines (+144 / -48) across 2 files Reviewer: FranzBusch Review duration: 1243m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 192 lines diff across 2 files
    0.36
    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.315
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #366"
    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: 35.9% (MEDIUM) · Higher = larger blast radius
    35.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: 14.2% · Safe to merge
    14.2%