← Back to Pull requests

tools: limit format-cpp checkout history #66479

Merged
inoway46 merged 1 files (5 lines) on Oct 05, 2026 11:25 UTC
View on GitHub
inoway46 inoway46 commented on Oct 03, 2026 11:00 UTC
Author

Fetch only two levels of history for format-cpp and use the PR merge commit's first parent as the formatting base.

In 128 trials per variant on the same merge commit, average checkout time fell from 160.12s to 19.95s. Both variants produced identical bases and diffs.

| Runner | Success rate | Avg | Min | P90 | P99 | Max |
|---|---:|---:|---:|---:|---:|---:|
| ubuntu-slim (before) | 128/128 (100%) | 3m 25s | 2m 52s | 4m 05s | 5m 05s | 5m 30s |
| ubuntu-slim (after) | 128/128 (100%) | 1m 08s | 0m 49s | 1m 40s | 2m 32s | 2m 51s |

Benchmark: full = before, shallow = after.

Refs: https://github.com/nodejs/node/issues/64972#issuecomment-5222846156

Diff: 5 lines (+3 / -2) across 1 files Reviewer: aduh95 Review duration: 2905m
All Vouch review confidence checks passed
Residual risk 0.04 = Change Risk (0.14) × (1 − Review Confidence (0.72)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.14 · 5 lines diff across 1 files
0.14
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.54 · 2 substantive comment(s)
0.54
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
71%
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.107
Real PR Conversation Timeline
5 items
nodejs-github-bot nodejs-github-bot commented on Oct 03, 2026 11:00 UTC
Bot

Review requested:

  • @nodejs/actions
  • aduh95 aduh95 approved these changes on Oct 03, 2026 11:15 UTC
    Approved Reviewer

    Approved these changes.

    RaisinTen RaisinTen approved these changes on Oct 03, 2026 14:44 UTC
    Approved Reviewer

    Approved these changes.

    nodejs-github-bot nodejs-github-bot commented on Oct 05, 2026 11:25 UTC
    Bot

    Landed in c4af8665f6230541de568b5d4161d7707faf7332

    Reviewers
    Assignees
    inoway46 inoway46
    Labels
    risk: low confidence: 71.6% 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: 13.7% (LOW) · Higher = larger blast radius
    13.7%
    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: 71.6% · Lower = rushed or shallow review
    71.6%
    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: 3.9% · Safe to merge
    3.9%
    Repository