Retry release notification on HTTP 403 #25696
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 290 lines diff across 3 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.339
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #25696"
general
weight: 0.35
iliakur
What does this PR do?
Retries the pending-release notification when the Datadog workflow API returns HTTP 403.
post()innotify_release.pynow backs off 2, 4, 8, then 16 seconds (about 30s total) before treating a 403 as a misconfiguration. Other responses are handled as before.Motivation
The
Notify pending releasejob inrelease-trigger.ymlhas been flaky: recent runs failed withRelease notification misconfigured: HTTP 403while others with identical configuration succeeded. In the failing runs, the API is called about 0.3s afterdd-sts-actionmints the app key, which suggests the new key has not propagated yet.agent-integrations-tuf(release-reminder.yml,pending-release-pr-reminder.yml) posts to the same Datadog workflow with the same dd-sts pattern, but runssetup-uvanduv syncbetween minting the key and posting, which leaves the key several seconds to propagate.A retry only waits when needed, unlike a fixed sleep. The trade-off is that a real misconfiguration now takes about 30s longer to fail.
Checklist before requesting review
<!--
How to verify: run
gh pr diff <PR> --repo DataDog/integrations-core, review every changed line,and compare the final diff with the description above.
-->
<!--
How to verify: check the diff for relevant tests and run them as described in
AGENTS.md.-->
<!--
How to verify: run
gh api repos/DataDog/integrations-core/pulls/<PR>/commentsandgh pr view <PR> --repo DataDog/integrations-core --json reviews,comments, then fix eachfinding or reply with the reason no change is needed.
-->
<!-- Coding agents: never tick this item. Only the human author may tick it. -->
<!--
QA label: PRs that only change code owned exclusively by @DataDog/agent-integrations (see
.github/CODEOWNERS) always useqa/skip-qa, neverqa/required.-->