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

Bump testcontainers from 0.16.7 to 0.18.0 #2598

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 19, 2024

Bumps testcontainers from 0.16.7 to 0.18.0.

Release notes

Sourced from testcontainers's releases.

v0.18.0

[0.18.0] - 2024-06-15

Overview

Most of the breaking changes introduced in this version primarily impact developers who implement their own images. For general usage, the API remains mostly the same, with some improvements and enhancements for better performance and flexibility.

See migration guide below.

Details

Bug Fixes

  • [❗] Make DOCKER_CONFIG usage consistent with Docker CLI (#654)

Features

  • [❗] Support UDP and SCTP port mappings (#655)
  • Support HTTP wait strategy (#659)

Miscellaneous Tasks

  • Use nightly rustfmt (#657)

Refactor

  • [❗] Get rid of associated type ImageArgs and rename to cmd (#649)
  • Avoid unnecessary owned structs and boxing (#651)
  • [❗] Add ImageExt trait to avoid explicit conversion to RunnableImage (#652)
  • [❗] Rename RunnableImage to ContainerRequest (#653)
  • [❗] Exposed and mapped ports api (#656)
  • Preliminary refactoring of wait strategies (#661)

Migration Guide

1. Renaming of RunnableImage

  • Old: RunnableImage
  • New: ContainerRequest
    • Update: The explicit conversion from Image to ContainerRequest (formerly RunnableImage) is no longer necessary. Instead, you can now directly import testcontainers::ImageExt and override image parameters as needed.

2. Changes to Image Methods

  • Method: Image::tag and Image::name
    • Old Return Type: String
    • New Return Type: &str
    • Update: Update any code that relies on these methods to handle the new return type &str. This change helps improve performance by avoiding unnecessary allocations.

3. Changes to Image::exposed_ports

  • Method: Image::exposed_ports
    • Old Return Type: Implementation-specific or previously different.
    • New Return Type: &[ContainerPort]
    • Update: The method now returns a slice of ContainerPort, which supports exposing ports with protocols TCP, UDP, and SCTP. Update your code to handle the slice accordingly.

4. Removal of Associated Type Args in Image

  • Old: Image had an associated type Args.
  • New: The associated type Args is removed.
    • Update: Command arguments are now part of Image::cmd, which returns impl IntoIterator<Item = impl Into<String>>. This change allows more flexibility in specifying command arguments. Ensure your code is updated to work with the new method signature.

... (truncated)

Changelog

Sourced from testcontainers's changelog.

[0.18.0] - 2024-06-15

Details

Bug Fixes

  • [❗] Make DOCKER_CONFIG usage consistent with Docker CLI (#654)

Features

  • [❗] Support UDP and SCTP port mappings (#655)
  • Impl From<u16> for ContainerPort with TCP default (#658)
  • Support HTTP wait strategy (#659)
  • Allow passing u16 to Ports

Miscellaneous Tasks

  • Use nightly rustfmt (#657)

Refactor

  • [❗] Get rid of associated type ImageArgs and rename to cmd (#649)
  • Avoid unnecessary owned structs and boxing (#651)
  • [❗] Add ImageExt trait to avoid explicit conversion to RunnableImage (#652)
  • [❗] Rename RunnableImage to ContainerRequest (#653)
  • [❗] Exposed and mapped ports api (#656)
  • Preliminary refactoring of wait strategies (#661)

[0.17.0] - 2024-05-26

Details

Bug Fixes

  • Collect bridge IP address correctly (#626)
  • Replace missed panics with Result (#638)

Features

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

Miscellaneous Tasks

  • Fix clippy warning without features enabled (#632)

Refactor

  • [❗] Drop re-export of CgroupnsMode accessible through core (#630)
  • [❗] Drop previously deprecated get_host_ip_address (#628)
  • [❗] Return PortNotExposed error from ContainerState::host_port_* (#644)
Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot requested a review from darach as a code owner June 19, 2024 04:57
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jun 19, 2024
@tremor-bot tremor-bot enabled auto-merge (rebase) June 19, 2024 04:57
@dependabot dependabot bot force-pushed the dependabot/cargo/testcontainers-0.18.0 branch from 1b3676a to a807063 Compare June 19, 2024 05:14
Copy link

codecov bot commented Jun 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.28%. Comparing base (f6f2c41) to head (4192f95).

❗ There is a different number of reports uploaded between BASE (f6f2c41) and HEAD (4192f95). Click for more details.

HEAD has 5 uploads less than BASE
Flag BASE (f6f2c41) HEAD (4192f95)
tremorconnectorsazure 1 0
tremorconnectorsaws 1 0
tremorconnectorsgcp 1 0
tremorconnectorsotel 1 0
tremorconnectors 1 0
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2598      +/-   ##
==========================================
- Coverage   91.24%   83.28%   -7.96%     
==========================================
  Files         309      305       -4     
  Lines       60870    54339    -6531     
==========================================
- Hits        55539    45255   -10284     
- Misses       5331     9084    +3753     
Flag Coverage Δ
e2e-command 11.12% <ø> (ø)
e2e-integration 51.98% <ø> (+0.18%) ⬆️
e2e-unit 12.32% <ø> (ø)
e2etests 54.28% <ø> (+0.18%) ⬆️
tremorapi 14.23% <ø> (ø)
tremorcodec 62.94% <ø> (ø)
tremorcommon 63.04% <ø> (ø)
tremorconnectors ?
tremorconnectorsaws ?
tremorconnectorsazure ?
tremorconnectorsgcp ?
tremorconnectorsobjectstorage 0.06% <ø> (ø)
tremorconnectorsotel ?
tremorconnectorstesthelpers 60.56% <ø> (ø)
tremorinflux 87.72% <ø> (ø)
tremorinterceptor 54.33% <ø> (ø)
tremorpipeline 31.10% <ø> (ø)
tremorruntime 46.48% <ø> (+<0.01%) ⬆️
tremorscript 54.29% <ø> (ø)
tremorsystem 5.74% <ø> (ø)
tremorvalue 70.16% <ø> (ø)
unittests 69.36% <ø> (-18.88%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 81 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f6f2c41...4192f95. Read the comment docs.

@dependabot dependabot bot force-pushed the dependabot/cargo/testcontainers-0.18.0 branch from a807063 to 99c72f2 Compare June 19, 2024 05:31
@dependabot dependabot bot force-pushed the dependabot/cargo/testcontainers-0.18.0 branch from 99c72f2 to 5ab5f3b Compare June 19, 2024 05:58
@dependabot dependabot bot force-pushed the dependabot/cargo/testcontainers-0.18.0 branch from 5ab5f3b to a796d3d Compare June 20, 2024 04:54
@dependabot dependabot bot force-pushed the dependabot/cargo/testcontainers-0.18.0 branch from a796d3d to d4692e3 Compare June 21, 2024 04:27
@dependabot dependabot bot force-pushed the dependabot/cargo/testcontainers-0.18.0 branch from d4692e3 to d261c03 Compare June 21, 2024 04:53
@dependabot dependabot bot force-pushed the dependabot/cargo/testcontainers-0.18.0 branch from d261c03 to f635aff Compare June 21, 2024 05:06
@dependabot dependabot bot force-pushed the dependabot/cargo/testcontainers-0.18.0 branch from f635aff to 3b28be7 Compare June 21, 2024 09:25
tremor-bot
tremor-bot previously approved these changes Jun 21, 2024
@dependabot dependabot bot force-pushed the dependabot/cargo/testcontainers-0.18.0 branch from 175e213 to 9394f1c Compare June 24, 2024 07:10
@dependabot dependabot bot force-pushed the dependabot/cargo/testcontainers-0.18.0 branch from ac35c73 to ca17635 Compare July 1, 2024 04:28
@dependabot dependabot bot force-pushed the dependabot/cargo/testcontainers-0.18.0 branch from ca17635 to 2fec3f9 Compare July 1, 2024 10:57
@dependabot dependabot bot force-pushed the dependabot/cargo/testcontainers-0.18.0 branch from 2fec3f9 to 86d6b84 Compare July 2, 2024 04:20
@dependabot dependabot bot force-pushed the dependabot/cargo/testcontainers-0.18.0 branch from 86d6b84 to fd460b1 Compare July 2, 2024 10:38
@dependabot dependabot bot force-pushed the dependabot/cargo/testcontainers-0.18.0 branch from fd460b1 to 4d77578 Compare July 4, 2024 04:56
@dependabot dependabot bot force-pushed the dependabot/cargo/testcontainers-0.18.0 branch from 4d77578 to bcfaff6 Compare July 4, 2024 05:30
@dependabot dependabot bot force-pushed the dependabot/cargo/testcontainers-0.18.0 branch from bcfaff6 to f3f1384 Compare July 8, 2024 04:45
@dependabot dependabot bot force-pushed the dependabot/cargo/testcontainers-0.18.0 branch from f3f1384 to dc24a97 Compare July 8, 2024 04:58
@dependabot dependabot bot force-pushed the dependabot/cargo/testcontainers-0.18.0 branch from dc24a97 to 423a7f2 Compare July 9, 2024 04:57
@dependabot dependabot bot force-pushed the dependabot/cargo/testcontainers-0.18.0 branch from 423a7f2 to ee8cac7 Compare July 9, 2024 05:39
@dependabot dependabot bot force-pushed the dependabot/cargo/testcontainers-0.18.0 branch from ee8cac7 to cc2cba9 Compare July 10, 2024 04:41
Bumps [testcontainers](https://github.com/testcontainers/testcontainers-rs) from 0.16.7 to 0.18.0.
- [Release notes](https://github.com/testcontainers/testcontainers-rs/releases)
- [Changelog](https://github.com/testcontainers/testcontainers-rs/blob/main/CHANGELOG.md)
- [Commits](testcontainers/testcontainers-rs@0.16.7...0.18.0)

---
updated-dependencies:
- dependency-name: testcontainers
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/cargo/testcontainers-0.18.0 branch from cc2cba9 to 4192f95 Compare July 10, 2024 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant