fix(CORE-2062): read the PR's current labels in the label actions #159
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 356 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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
Diff Size
diff_size
0.352
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #159"
general
weight: 0.35
damemi
What this PR does / why we need it:
Linear: CORE-2062 · Parent: CORE-2061
Merge order: ci-core (this PR) → odigos-io/odigos
core-2063PRresolve-build-labelsandresolve-kubernetes-test-versionsnow read the PR's labels from the API when the job runs, instead of from the event payload. A workflow re-run replays the original event, so with the payload a label added after the run started was ignored. With this change, re-running the latest run is enough to apply a label change.Callers can then stop starting new runs on
labeled/unlabeled. Withcancel-in-progressconcurrency, label events that arrive together (a bot that opens a PR and labels it) start runs that cancel each other in no fixed order. When the newest run is the one cancelled, GitHub shows that workflow's required check as "Expected" and the PR can't merge. This happened on odigos-io/odigos#6430.github-tokeninput, defaulting to the job token (needspull-requests: read, which every current caller already grants).merge_group) nothing changes.labeled/unlabeledtriggers.Risks: callers on a runner without
ghfall back to the event's labels with a warning. The odigos and ebpf-java-instrumentation callers use Depot runners, which include it.Proof
A temporary workflow on odigos-io/odigos#6437 called both actions from this branch. Attempt 1 ran when the PR opened with no labels.
build: armandtest-k8s/1.29were added afterwards, and attempt 2 re-ran the same event, whose payload still had no labels.Attempt 1: PR opened with no labels: amd64 only, Kubernetes 1.32 only.
<img width="700" alt="Attempt 1 job summary: platforms linux/amd64, versions 1.32" src="https://github.com/user-attachments/assets/23f848e8-fad2-40d6-a742-71e87c11c082" />
Attempt 2: re-run after adding
build: armandtest-k8s/1.29: both platforms, and 1.29 from its label.<img width="700" alt="Attempt 2 job summary: platforms linux/amd64,linux/arm64, versions 1.32 and 1.29" src="https://github.com/user-attachments/assets/d8cf9aef-740f-4838-a3ad-5c9ca3ab7d35" />
Changelog entry: Does this PR introduce a user-facing bug fix, feature, dependency update, or breaking change??
``
release-note
``NONE
🤖 Generated with Claude Code