GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(redis): Use wait strategy instead of deprecated decorator by mschmitzer · Pull Request #914 · testcontainers/testcontainers-python

Conversation

@mschmitzer

@mschmitzer mschmitzer commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

Another part of fixing #874 (cf. #899).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

guenhter, ArtemIlinArammeem, oliverhaas-scayle, artem-ilin, and alesdakshanin reacted with heart emoji
All reactions
  • ❤️ 5 reactions
@mschmitzer
fix(redis): Use wait strategy instead of deprecated decorator
732f8bd
Part of fixing testcontainers#874.
@mschmitzer mschmitzer mentioned this pull request Nov 4, 2025
fix(minio): Use wait strategy instead of deprecated decorator #899
Merged
@codecov

codecov Bot commented Nov 4, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.05%. Comparing base (87332c1) to head (3916302).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #914      +/-   ##
==========================================
+ Coverage   79.24%   83.05%   +3.81%     
==========================================
  Files          15       16       +1     
  Lines        1277     1700     +423     
  Branches      154      186      +32     
==========================================
+ Hits         1012     1412     +400     
- Misses        219      234      +15     
- Partials       46       54       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mschmitzer
test(redis): Add test for wait strategy
3c4bea6
@pmorch pmorch mentioned this pull request Dec 27, 2025
fix(mongodb): Use wait strategy instead of deprecated wait_for_logs #943
Merged
@alesdakshanin

alesdakshanin commented Feb 19, 2026

Copy link
Copy Markdown

Hey there! Is this PR going to get merged? Maybe any help needed to get things moving?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mschmitzer
mschmitzer force-pushed the redis-wait-strategy branch from e66c6fa to b5f854f Compare February 25, 2026 06:38
@alexanderankin
lint
3916302
@alexanderankin

alexanderankin commented Apr 1, 2026

Copy link
Copy Markdown
Member

please allow maintainer push to your branch or replace the content of your branch with this branch contents

https://github.com/testcontainers/testcontainers-python/pull/new/redis-wait-strategy-rebase - that should resolve the issues

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Tranquility2 Tranquility2 added 👀 intend to merge this or some version of it 🔧 fix 🛠️ needs more work Need to invest more time, can be a rebase or code updates labels Apr 3, 2026
@mschmitzer
mschmitzer force-pushed the redis-wait-strategy branch from b5f854f to 3916302 Compare April 7, 2026 06:36
@mschmitzer

mschmitzer commented Apr 7, 2026

Copy link
Copy Markdown
Contributor Author

@alexanderankin , sorry, I was offline a couple of days. I have updated the branch as requested.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Tranquility2 Tranquility2 removed the 🛠️ needs more work Need to invest more time, can be a rebase or code updates label Apr 7, 2026
Tranquility2
Tranquility2 approved these changes Apr 7, 2026
View reviewed changes

@Tranquility2 Tranquility2 left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@alexanderankin
alexanderankin merged commit e25713a into testcontainers:main Apr 7, 2026
15 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request Apr 4, 2026
chore(main): release testcontainers 4.15.0-rc.1 #986
Merged
alexanderankin added a commit that referenced this pull request Apr 7, 2026
@github-actions @alexanderankin
chore(main): release testcontainers 4.15.0-rc.1 (#986)
6ecf347
🤖 I have created a release *beep* *boop*
---


##
[4.15.0-rc.1](testcontainers-v4.14.2...testcontainers-v4.15.0-rc.1)
(2026-04-07)


### Features

* **compose:** add structured container inspect information
([#897](#897))
([58459a1](58459a1))
* **core:** support SSH-based DOCKER_HOST
([#993](#993))
([d48115d](d48115d))
* **generic:** Reintroducing the generic SQL module
([#892](#892))
([2ca2321](2ca2321))
* **keycloak:** support for relative path and management relative path
([#982](#982))
([898faf6](898faf6))
* **mqtt:** MosquittoContainer: Add version 2.1.2
([#978](#978))
([af382f7](af382f7))


### Bug Fixes

* **azurite:** make visible to type checkers
([#927](#927))
([baa5668](baa5668))
* **clickhouse:** add `HttpWaitStrategy` instead of deprecated
`wait_container_is_ready`
([#962](#962))
([8034541](8034541))
* **compose:** return type in get_service_port docstring
([#939](#939))
([fed65fe](fed65fe))
* **core:** Refactor copy file
([#996](#996))
([0e0bb24](0e0bb24))
* **core:** wait for ryuk more reliably, improve tests: long_running,
filter logs
([#984](#984))
([b12ae13](b12ae13))
* **generic:** Migrate ServerContainer from deprecated decorator to
HttpWaitStrategy
([#971](#971))
([460b0d8](460b0d8))
* **kafka:** Use wait strategy instead of deprecated wait_for_logs
([#903](#903))
([87332c1](87332c1))
* **postgres:** add py.typed marker to postgres module
([#849](#849))
([c8a5bbd](c8a5bbd))
* **qdrant:** migrate Qdrant from deprecated decorator.
([#963](#963))
([407f798](407f798))
* **redis:** Use wait strategy instead of deprecated decorator
([#914](#914))
([e25713a](e25713a))
* **sftp:** Avoid using wait_for_logs in module.
([#995](#995))
([83157eb](83157eb))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: David Ankin <[email protected]>
alexanderankin added a commit that referenced this pull request Jun 3, 2026
@pmorch @alexanderankin
fix(mongodb): Use wait strategy instead of deprecated wait_for_logs (#…
c8118e7
…943)

# fix(mongodb): Use wait strategy instead of deprecated wait_for_logs

## Summary

Replace the deprecated `wait_for_logs` function with
`LogMessageWaitStrategy` in the MongoDB container module.

This is part of a fix for
#874 and
similar to:
- #899 (MinIO - merged)
- #915 (Elasticsearch - merged)
- #935 (Postgres - merged)
- #903 (Kafka/Redpanda - open)
- #914 (Redis - open)
- #941 (Redis - open)

## Changes

- Import `LogMessageWaitStrategy` instead of `wait_for_logs`
- Pass `_wait_strategy=LogMessageWaitStrategy(...)` to parent
constructor
- Override `_connect()` with empty implementation (DbContainer's base
implementation uses SQLAlchemy which doesn't apply to MongoDB)

## Testing

All existing MongoDB tests pass:
```
poetry run pytest modules/mongodb/tests/ -v
======================== 4 passed in 16.26s ========================
```

No deprecation warnings from testcontainers after this change.

Co-authored-by: David Ankin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Tranquility2 Tranquility2 Tranquility2 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

🔧 fix 👀 intend to merge this or some version of it

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@mschmitzer @alesdakshanin @alexanderankin @Tranquility2
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.