Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: add container startup timeout with default of 1 minute #643

Merged
merged 1 commit into from
May 26, 2024

Conversation

DDtKey
Copy link
Collaborator

@DDtKey DDtKey commented May 26, 2024

Closes #247

  • Sets default startup timeout to 1 minute
  • Allows to override with RunnableImage::with_startup_timeout

Note: breaking change because of default timeout

For now, ENV variable to configure global timeout isn't introduced. First of all, that's quote similar to other languages, (e.g Go, Java)

Another question is which one should take precedence: ENV over with_startup_timeout or vice versa?

We can extend it later in compatible way, so not that important at the moment.

Closes #247

- Sets default startup timeout to 1 minute
- Allows to override with `RunnableImage::with_startup_timeout`

Note: breaking change because of default timeout

For now, ENV variable to configure global timeout isn't introduced. First of all, that's quote similar to other languages, (e.g [Go](https://golang.testcontainers.org/features/wait/introduction/#startup-timeout-and-poll-interval), [Java](https://java.testcontainers.org/features/startup_and_waits/))

Another question is which one should take precedence: ENV over `with_startup_timeout` or vice versa?

We can extend it later in compatible way, so not that important at the moment.
Copy link

netlify bot commented May 26, 2024

Deploy Preview for testcontainers-rust ready!

Name Link
🔨 Latest commit 2a736e1
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-rust/deploys/66537d25321a79000868c81f
😎 Deploy Preview https://deploy-preview-643--testcontainers-rust.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@DDtKey DDtKey merged commit 54e80e4 into main May 26, 2024
13 checks passed
@DDtKey DDtKey deleted the feat-allow-setup-startup-timeout branch May 26, 2024 18:25
@github-actions github-actions bot mentioned this pull request May 26, 2024
DDtKey pushed a commit that referenced this pull request May 26, 2024
## 🤖 New release
* `testcontainers`: 0.16.7 -> 0.17.0

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

## [0.17.0] - 2024-05-26

### Details
#### Bug Fixes
- Collect bridge IP address correctly
([#626](#626))
- Replace missed panics with `Result`
([#638](#638))

#### Features
- Impl `Error` for `WaitError`
([#629](#629))
- [❗] Extend `exec` interface to return logs and exec code
([#631](#631))
- Ability to access container logs
([#633](#633))
- [❗] Switch to fallible API
([#636](#636))
- Make container and exec logs `Send`able
([#637](#637))
- Map container not found error to `eof` for container log streams
([#639](#639))
- Expose follow flag for `stdout` and `stderr`
([#640](#640))
- Add ability to read container logs into `Vec`
([#641](#641))
- [❗] Add container startup timeout with default of 1 minute
([#643](#643))

#### Miscellaneous Tasks
- Fix clippy warning without features enabled
([#632](#632))

#### Refactor
- [❗] Drop re-export of `CgroupnsMode` accessible through `core`
([#630](#630))
- [❗] Drop previously deprecated `get_host_ip_address`
([#628](#628))
- [❗] Return `PortNotExposed` error from `ContainerState::host_port_*`
([#644](#644))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to 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.

Unable to provide timeout for waiting
1 participant