๐ฑ ci: allow overriding APIDiff with apidiff-override label #5690
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
Model 2 ยท Review Depth (DistilBERT)
Depth Score: 0.02 ยท 1 substantive comment(s)
Model 3 ยท Review Timing & Attention
Session adequacy: 100% ยท Reviewer familiarity: 35%
Bedrock Claude 3 ยท Risk Narration
(disconnected)
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
vitorfloriano
Description
The fork-only APIDiff workflow (
.github/workflows/apidiff.yml) still runsjoelanford/go-apidiffas before, but the step now usescontinue-on-errorwith idgo-apidiff. A new step Require clean API diff or override label runs when that step fails: it uses the GitHub CLI andGITHUB_TOKENto list the PRโs labels and passes the job only if the labelapidiff-overrideis present; otherwise it fails with a clear error message. The job gainspull-requests: readso 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-apidifffailed 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