You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix reliability: container cleanup, wait strategies, and Ryuk socket (#243)
* Fix reliability: container cleanup, wait strategies, Ryuk socket, and ToxiproxyContainer
- Retry Ryuk socket on all transient errors, not just econnrefused
- Wrap Ryuk filter registration in retry loop for closed errors
- Track containers in GenServer state, clean up on terminate and wait strategy failure
- Make image cleanup opt-in via cleanup.images property
- Switch ToxiproxyContainer from PortWaitStrategy to HttpWaitStrategy
- Add retry logic with backoff to ToxiproxyContainer httpc API calls
- Fix HttpWaitStrategy response validation and retry logic
- Reduce LogWaitStrategy retry delay from 500ms to 200ms
- Set global 300s test timeout, remove per-module overrides
- Add tests for HttpWaitStrategy, terminate cleanup, and wait strategy failure
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add property-controlled pull policy for offline support
Allow configuring the default image pull behavior via `pull.policy`
property (or `TESTCONTAINERS_PULL_POLICY` env var). Set to "missing"
or "never" to skip pulling images that already exist locally, enabling
offline usage. Per-container pull_policy set via `with_pull_policy/2`
still takes precedence over the global setting.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix pull policy: use merged properties for env var support, apply to Ryuk
- Fix state.properties being rebound to read_property_file() (user file
only), losing env vars. Now uses read_property_sources() which merges
env vars, user file, and project file with proper precedence.
- Apply pull policy to Ryuk container so it also respects the setting.
- Tag pull_policy_test.exs with :needs_registry for offline exclusion.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments