feat(wait): backport ForAny and wait cleanups from testcontainers-go #171
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 · 399 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.358
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #171"
general
weight: 0.35
robmry
Backports the missing
wait/changes from testcontainers-go intocontainer/wait, preserving original authorship (each commit keeps its upstream author and date, aBackported-from:trailer with the upstream SHA, and "Backport notes" listing the adaptations). Added withgit format-patch -1 <sha> -- wait/ | git am -3 --directory=container.Refs #147 (already closed; this delivers
wait.ForAny).Commits
| # | Upstream | Author | Notes |
|---|---|---|---|
| 1 | testcontainers/testcontainers-go#3208 | Tiago Peczenyj |
slices.Deleteinwalk.go; keeps go-sdk'sErrVisitStop|| 2 | testcontainers/testcontainers-go#3568 (partial) | Manuel de la Peña | drops obsolete
// +buildline inerrors.go|| 3 | testcontainers/testcontainers-go#3719 | Jean Barkhuysen |
wait.ForAny/AnyMultiStrategy. Adapted:ErrVisitStop,&NopStrategyTarget{},WithTimeout, typednetwork.Port, import path. Thesynctesttest stays inany_test.gowith no//go:build go1.25tag (go-sdk is on Go 1.27). Upstream issue: testcontainers/testcontainers-go#3717 || 4 | testcontainers/testcontainers-go#3603 | Mateen Anjum | exit/health tests moved to the generated mockery mocks; adapted import path and
WithTimeout; dropped strayLogger()hunk || 5 | docs (go-sdk authored) | — | documents
wait.ForAnyincontainer/README.md|| 6 | go-sdk only (no
Backported-from:) | — |fix(wait): support non-pointer Strategy implementations in ForAny— review follow-up for areflect.IsNilpanic in the upstream code || 7 | go-sdk only (no
Backported-from:) | — |fix(wait): support non-pointer Strategy implementations in ForAll— same fix forMultiStrategy|| 8 | go-sdk only (no
Backported-from:) | — | tidyForAnyselect, add aWalktest forAnyMultiStrategy, fixExampleForAnytimeouts |Commits 1–4 are the upstream-authored backports; 5–8 are go-sdk-authored.
Not included
network.Port.Port()frommoby/moby/api>= v1.55.0 (go-sdk pins v1.52.0).net.Dialer.DualStackremoval andlog_test.goparen fix are already inmainvia #169, so the pick was empty and skipped.ExecStrategyPollInterval cap /WithRetryOnError) are untouched.Merge method — maintainer's choice
Authorship is preserved only with "Rebase and merge".
.github/settings.ymlcurrently hasallow_rebase_merge: false(I did not modify it). A squash merge would attribute everything to the PR author; in that case add these trailers to the squash message:Verification
After every commit:
go build ./...,go vet ./wait/,go test ./wait/(Go 1.27.3) and golangci-lint v2.15.0 oncontainer/wait— all clean.