Skip to content

Conversation

@mschmitzer
Copy link
Contributor

Attempt to fix another part of #715 , plus an optimization.

Based on #716 by @alexanderankin .

alexanderankinand others added 3 commits October 16, 2024 09:04
wait_for_logs has a mode for throwing on exit, it will now no longer treat "created" as an exit status
The status is cached on the Model instance. Without the reload, we always see the first value that was loaded.
@codecov
Copy link

codecovbot commented Oct 23, 2024

Codecov Report

Attention: Patch coverage is 55.55556% with 4 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@f7922d7). Learn more about missing BASE report.

Files with missing linesPatch %Lines
core/testcontainers/core/waiting_utils.py55.55%3 Missing and 1 partial ⚠️
Additional details and impacted files
@@ Coverage Diff @@## main #719 +/- ## ======================================= Coverage ? 80.88% ======================================= Files ? 12 Lines ? 612 Branches ? 91 ======================================= Hits ? 495 Misses ? 90 Partials ? 27 

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

@alexanderankinalexanderankin changed the title Fix wait_for_logs raise_on_exitfix: update wait_for_logs to not throw on "created" (+optimization)Oct 24, 2024
@alexanderankinalexanderankin changed the title fix: update wait_for_logs to not throw on "created" (+optimization)fix: update wait_for_logs to not throw on "created" (&optimization)Oct 24, 2024
@alexanderankinalexanderankin changed the title fix: update wait_for_logs to not throw on "created" (&optimization)fix: update wait_for_logs to not throw on 'created', and an optimizationOct 24, 2024
@alexanderankinalexanderankin merged commit 271ca9a into testcontainers:mainOct 24, 2024
alexanderankin pushed a commit that referenced this pull request Dec 10, 2024
🤖 I have created a release *beep* *boop* --- ## [4.9.0](testcontainers-v4.8.2...testcontainers-v4.9.0) (2024-11-26) ### Features * **compose:** support for setting profiles ([#738](#738)) ([3e00e71](3e00e71)) * **core:** Support working with env files ([#737](#737)) ([932ee30](932ee30)) ### Bug Fixes * allow running all tests ([#721](#721)) ([f958cf9](f958cf9)) * **core:** Avoid hanging upon bad docker host connection ([#742](#742)) ([4ced198](4ced198)) * **core:** running testcontainer inside container ([#714](#714)) ([85a6666](85a6666)) * **generic:** Also catch URLError waiting for ServerContainer ([#743](#743)) ([24e354f](24e354f)) * update wait_for_logs to not throw on 'created', and an optimization ([#719](#719)) ([271ca9a](271ca9a)) * Vault health check ([#734](#734)) ([79434d6](79434d6)) ### Documentation * Documentation fix for ServerContainer ([#671](#671)) ([0303d47](0303d47)) --- 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: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@mschmitzer@alexanderankin