fix(smoke-tests): replace fixed sleep with readiness-aware curl retries #37
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 208 lines diff across 2 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.320
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #37"
general
weight: 0.35
eliottness
Summary
The
Teststep of theBuild go-dvwasmoke-test job ransleep 1and then probed the app withcurl --retry 3 --fail. This is a readiness race that failed the dd-trace-go nightly AppSec Tests run:Recv failure: Connection reset by peer).curl --retrydoes not treat exit 56 as a transient error, so it made exactly one attempt and failed the job — even though the app was up ~185 ms later.Fix: drop the sleep and retry until the app answers, using flags that cover connection-reset failures:
--retry 30 --retry-delay 1: up to ~30 s budget, used only when needed.--retry-all-errors: makes exit 56 (and connection refused, etc.) retryable. Available since curl 7.71; GitHub runners ship curl 8.5.0.--max-time 5: caps each attempt so a hung container counts as a failed attempt instead of stalling forever.The happy path stays fast; a slow app boot gets real headroom instead of a fixed 1 s.
Evidence: https://github.com/DataDog/dd-trace-go/actions/runs/36798481563/job/110167294608 — curl connected at 00:55:52.382, got RST, exited 56; the app printed
Serving application on 0.0.0.0:7777at 00:55:52.568.Tests
Workflow-only change; validated with
actionlint(the reported issues are pre-existing, in the untouchedmatrixjob).