fix(PLAT-1943): log in to ECR and retry agent version bumps #154
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 412 lines diff across 5 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.360
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #154"
general
weight: 0.35
aviadhahami
What this PR does / why we need it:
Linear: PLAT-1943
Related: RUN-1200 · PLAT-1971 · PLAT-1972
Agent version bumps into odigos keep failing silently: the consumer's
upgrade-agentresolves image digests anonymously frompublic.ecr.aws, which returns429 Too Many Requestson shared runner IPs, and the Slack alert never fires becausejob.statusdoesn't reflect failures inside a composite action.apply-agent-version-updatenow:ecr-role-to-assume(defaultecr-pull-push-role) over OIDC and logs in to public ECR before runningmake. The AWS credentials stay in step outputs and are only handed todocker login, and the registry login is removed right aftermake, before the PR steps run. If the role can't be assumed or the login fails, the run continues anonymously with a warning.ecr-login: falseopts out.instrumentation_agentorversionthat isn't[A-Za-z0-9._-]+, since make expands both into recipe shells.upgrade-agent3 attempts (30s, then 60s apart) and restores tracked files between attempts, so a partial rewrite never reaches the PR.slack-release-notificationgains an optionalstatusinput that overridesjob.status(existing callers are unchanged) and reads its inputs from env instead of interpolating them into the script.Risks: None
Proof
Harness run of this branch against odigos
main's realagent-deps.mkand Dockerfiles, with Slack pointed at a local listener (run).Login and retry: the role is assumed,
docker loginsucceeds, two simulated transient failures each leave a half-rewritten Dockerfile, the third attempt pinsruby-community:v0.0.11by digest, the login is removed, and the restored tree shows no changes.<img width="1447" height="840" alt="plat-1943-retry-login" src="https://github.com/user-attachments/assets/f98744d4-a496-412f-b697-32e40dbfd219" />
Failure path: a missing tag fails all 3 attempts, then Determine result and Notify Slack run and post the ❌ failure payload.
<img width="1568" height="688" alt="plat-1943-failure-slack" src="https://github.com/user-attachments/assets/25ee4208-2269-4fe6-8de4-3f1dfeeef8fc" />
Results: one failure payload for the missing tag; an injected version (
v0.0.11;touch${IFS}/tmp/pwned) is rejected beforemakeruns and still alerts. The no-change scenario (not shown) received 0 payloads.<img width="1493" height="812" alt="plat-1943-summaries" src="https://github.com/user-attachments/assets/9ecf2219-ab33-446e-9bdc-556b8a8dccc7" />
Changelog entry: Does this PR introduce a user-facing bug fix, feature, dependency update, or breaking change??
``
release-note
``NONE
🤖 Generated with Claude Code