← Back to Pull requests

feat(wait): backport ForAny and wait cleanups from testcontainers-go #171

Closed
unknown closed this pull request without merging on Oct 23, 2026 13:46 UTC
View on GitHub
unknown unknown commented on Oct 23, 2026 10:33 UTC
Author

🤖 Automated implementer agent — this comment was posted by the implementer bot from AI Factory, not by a human developer

Backports the missing wait/ changes from testcontainers-go into container/wait, preserving original authorship (each commit keeps its upstream author and date, a Backported-from: trailer with the upstream SHA, and "Backport notes" listing the adaptations). Added with git 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.Delete in walk.go; keeps go-sdk's ErrVisitStop |
| 2 | testcontainers/testcontainers-go#3568 (partial) | Manuel de la Peña | drops obsolete // +build line in errors.go |
| 3 | testcontainers/testcontainers-go#3719 | Jean Barkhuysen | wait.ForAny / AnyMultiStrategy. Adapted: ErrVisitStop, &NopStrategyTarget{}, WithTimeout, typed network.Port, import path. The synctest test stays in any_test.go with no //go:build go1.25 tag (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 stray Logger() hunk |
| 5 | docs (go-sdk authored) | — | documents wait.ForAny in container/README.md |
| 6 | go-sdk only (no Backported-from:) | — | fix(wait): support non-pointer Strategy implementations in ForAny — review follow-up for a reflect.IsNil panic in the upstream code |
| 7 | go-sdk only (no Backported-from:) | — | fix(wait): support non-pointer Strategy implementations in ForAll — same fix for MultiStrategy |
| 8 | go-sdk only (no Backported-from:) | — | tidy ForAny select, add a Walk test for AnyMultiStrategy, fix ExampleForAny timeouts |

Commits 1–4 are the upstream-authored backports; 5–8 are go-sdk-authored.

Not included


  • testcontainers/testcontainers-go#3209: needs network.Port.Port() from moby/moby/api >= v1.55.0 (go-sdk pins v1.52.0).

  • testcontainers/testcontainers-go#3940 (partial): the net.Dialer.DualStack removal and log_test.go paren fix are already in main via #169, so the pick was empty and skipped.

  • testcontainers/testcontainers-go#3650 and #3507: go-sdk already has the equivalent / not applicable.

  • go-sdk-only changes (#161 ExecStrategy PollInterval cap / WithRetryOnError) are untouched.
  • Merge method — maintainer's choice


    Authorship is preserved only with "Rebase and merge". .github/settings.yml currently has allow_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:

    Co-authored-by: Jean Barkhuysen <jean.barkhuysen@gmail.com>
    Co-authored-by: Tiago Peczenyj <tpeczenyj@weborama.com>
    Co-authored-by: Mateen Anjum <mateenali66@gmail.com>
    

    Verification


    After every commit: go build ./..., go vet ./wait/, go test ./wait/ (Go 1.27.3) and golangci-lint v2.15.0 on container/wait — all clean.

    Diff: 399 lines (+299 / -100) across 4 files Reviewer: robmry Review duration: 192m
    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
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 43.2% (MEDIUM) · Higher = larger blast radius
    43.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.1% · Safe to merge
    17.1%
    Repository