โ† Back to Pull requests

๐ŸŒฑ ci: allow overriding APIDiff with apidiff-override label #5690

Open
unknown opened this pull request with 142 lines diff across 1 files
View on GitHub
unknown unknown commented on May 10, 2026 18:46 UTC
Author

Description

The fork-only APIDiff workflow (.github/workflows/apidiff.yml) still runs joelanford/go-apidiff as before, but the step now uses continue-on-error with id go-apidiff. A new step Require clean API diff or override label runs when that step fails: it uses the GitHub CLI and GITHUB_TOKEN to list the PRโ€™s labels and passes the job only if the label apidiff-override is present; otherwise it fails with a clear error message. The job gains pull-requests: read so token permissions are sufficient to read labels.

Motivation

For pull requests from forks, API compatibility is enforced by GitHub Actions, while Prow handles checks for PRs from the main repo. That split meant there was no supported maintainer escape hatch when go-apidiff failed but an incompatible API change was intentional and already reviewed. Adding a label-based override matches the pattern used in other projects (e.g. API diff jobs that allow a dedicated override label) and keeps the default behavior strict unless a maintainer explicitly approves the exception.

Issue

Fixes #5655

Diff: 142 lines (+106 / -36) across 1 files Reviewer: vitorfloriano Review duration: 210752m
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.40) ร— (1 โˆ’ Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
Model 1 ยท Change Risk (XGBoost)
Score: 0.40 ยท 142 lines diff across 1 files
0.40
Model 2 ยท Review Depth (DistilBERT)
Depth Score: 0.02 ยท 1 substantive comment(s)
0.02
Model 3 ยท Review Timing & Attention
Session adequacy: 100% ยท Reviewer familiarity: 35%
44%
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
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.297
Real PR Conversation Timeline
1 comments
"Review active on #5690"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 44.7% 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: 39.7% (MEDIUM) ยท Higher = larger blast radius
39.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: 44.7% ยท Lower = rushed or shallow review
44.7%
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: 21.9% ยท Safe to merge
21.9%