Skip to content

build(deps): bump github.com/testcontainers/testcontainers-go from 0.31.0 to 0.36.0 in /testing#4721

Closed
dependabot[bot] wants to merge 9 commits intomainfrom
dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0
Closed

build(deps): bump github.com/testcontainers/testcontainers-go from 0.31.0 to 0.36.0 in /testing#4721
dependabot[bot] wants to merge 9 commits intomainfrom
dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Mar 28, 2025

Bumps github.com/testcontainers/testcontainers-go from 0.31.0 to 0.36.0.

Release notes

Sourced from github.com/testcontainers/testcontainers-go's releases.

v0.36.0

What's Changed

⚠️ Breaking Changes

  • feat(azure)!: add Azurite, EventHubs and ServiceBus in the new Azure module, deprecating the old Azurite module (#3008) @​mdelapenya

Users of the old Azurite module must update their code to use the new Azure module instead, which contains the same functionality under the azurite sub-package. We took this opportunity to remove the unnecessarily exported Settings field from the Azurite container type, so users of the Azurite container type must update their code to simply do not use that field.

  • chore(deps)!: bump github.com/docker/docker from 27.1.1+incompatible to 28.0.1+incompatible (#3017) @dependabot[bot]

Bumping the Docker package to a newer major version came with lots of benefits, but also some breaking changes. For that reason, users of the following container methods and types must update their code to use the new types and methods instead:

  • Container.Inspect: the return type has been changed from types.ContainerJSON to container.InspectResponse.
  • Container.State: the return type has been changed from types.ContainerState to container.State.
  • DockerProvider.ContainerFromType: the method signature has been changed to accept a container.Summary instead of a types.Container. At the same time, if consuming Docker types or methods, users must update their code to use the new types and methods instead. As a good rule of thumb, users of the "github.com/docker/docker/api/types" package must update their code to use "github.com/docker/docker/api/types/container" instead.

Users of the deprecated DockerCompose type from the compose module must update their code to use DockerComposer instead. The former unexported dockerCompose type has been renamed to DockerCompose. This breaking change was done because returning an un-exported type from a constructor function limits the flexibility and usability of the returned instance. Callers could use the exported methods, but could not declare variables of that type, pass instances to other functions, or embed them in structs without exposing the constructor itself. This breaking change was needed to improve the usability of the compose module.

Users of the testcontainers.Logging variable must update their code to use the new log.Default() logger instance instead, and users of the testcontainers.Logger interface must update their code to use the new log.Logger interface instead. The new log package allows users to set a custom logger instance calling the log.SetDefault(l log.Logger) function. This breaking change was needed to improve the usability of the logging functionality when using the testcontainers package.

Users of the NATS module and the ConnectionString type must remove the variadic arguments from the ConnectionString method. This breaking change was needed because those arguments weren't in use.

We fixed a typo in the exported field of the ContainerRequest struct, so users of the EnpointSettingsModifier type must update their code to use the EndpointSettingsModifier type instead.

🔒 Security

🚀 Features

... (truncated)

Commits
  • a0e3b71 chore: use new version (v0.36.0) in modules and examples
  • 3298e9a chore: dockerise docs build (#3060)
  • 5334660 chore(deps): bump golang.org/x/net from 0.23.0 to 0.36.0 in /modules/dynamodb...
  • 82c37e2 chore(deps): bump github.com/magiconair/properties from 1.8.7 to 1.8.9 (#3057)
  • 615aa5d chore(deps): bump golangci/golangci-lint-action from 6.3.0 to 6.5.2 (#3052)
  • bdbdf3e chore(deps): bump golang.org/x/sys from 0.28.0 to 0.31.0 (#3056)
  • 4bfd24c chore(deps): bump actions/setup-go from 5.3.0 to 5.4.0 (#3054)
  • 6ab30fe chore(deps): bump golang.org/x/net in /modules/scylladb (#3058)
  • 802d143 chore(deps): bump github/codeql-action from 3.28.11 to 3.28.12 (#3053)
  • b88be99 chore(deps): bump golang.org/x/net in /modules/databend (#3055)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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)

@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Mar 28, 2025

This pull request does not have a backport label. Could you fix it @dependabot[bot]? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-./d./d is the label to automatically backport to the 8./d branch. /d is the digit
  • backport-active-all is the label that automatically backports to all active branches.
  • backport-active-8 is the label that automatically backports to all active minor branches for the 8 major.
  • backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.

@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Mar 28, 2025

This pull request is now in conflicts. Could you fix it @dependabot[bot]? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0 upstream/dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0
git merge upstream/main
git push upstream dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0

@dependabot dependabot Bot force-pushed the dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0 branch from 09847f1 to 575f6f9 Compare March 28, 2025 01:18
@ycombinator ycombinator enabled auto-merge (squash) March 28, 2025 20:48
ycombinator
ycombinator previously approved these changes Mar 28, 2025
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Mar 31, 2025

This pull request is now in conflicts. Could you fix it @dependabot[bot]? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0 upstream/dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0
git merge upstream/main
git push upstream dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0

@dependabot dependabot Bot force-pushed the dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0 branch from 575f6f9 to b642da0 Compare March 31, 2025 13:47
@ycombinator
Copy link
Copy Markdown
Contributor

ycombinator commented Apr 2, 2025

=== RUN   TestStandAloneContainerSuite/TestWithElasticsearchConnectionFailures
--
  | 2025/04/01 12:29:20 Failed to get image auth for ghcr.io. Setting empty credentials for the image: ghcr.io/shopify/toxiproxy:2.5.0. Error is: credentials not found in native keychain
  | 2025/04/01 12:29:21 🐳 Creating container for image ghcr.io/shopify/toxiproxy:2.5.0
  | 2025/04/01 12:29:21 ✅ Container created: 53b571af8993
  | 2025/04/01 12:29:21 🐳 Starting container: 53b571af8993
  | 2025/04/01 12:29:21 ✅ Container started: 53b571af8993
  | 2025/04/01 12:29:21 All requested ports were not exposed: port 8474/tcp is not mapped yet
  | 2025/04/01 12:29:21 All requested ports were not exposed: port 8474/tcp is not mapped yet
  | 2025/04/01 12:29:21 All requested ports were not exposed: port 8474/tcp is not mapped yet
  | 2025/04/01 12:29:21 All requested ports were not exposed: port 8474/tcp is not mapped yet
  | 2025/04/01 12:29:22 All requested ports were not exposed: port 8474/tcp is not mapped yet
  | 2025/04/01 12:29:22 All requested ports were not exposed: port 8474/tcp is not mapped yet
  | 2025/04/01 12:29:22 All requested ports were not exposed: port 8474/tcp is not mapped yet
  | 2025/04/01 12:29:23 All requested ports were not exposed: port 8474/tcp is not mapped yet
  | 2025/04/01 12:29:23 All requested ports were not exposed: port 8474/tcp is not mapped yet
  | 2025/04/01 12:29:24 All requested ports were not exposed: port 8474/tcp is not mapped yet
  | 2025/04/01 12:29:24 All requested ports were not exposed: port 8474/tcp is not mapped yet
  | 2025/04/01 12:29:24 All requested ports were not exposed: port 8474/tcp is not mapped yet
  | 2025/04/01 12:29:25 All requested ports were not exposed: port 8474/tcp is not mapped yet
  | 2025/04/01 12:29:25 All requested ports were not exposed: port 8474/tcp is not mapped yet
  | 2025/04/01 12:29:26 ⏳ Waiting for container id 53b571af8993 image: ghcr.io/shopify/toxiproxy:2.5.0. Waiting for: &{timeout:<nil> Port:8474/tcp Path:/version StatusCodeMatcher:0x10099c0 ResponseMatcher:0x10cd100 UseTLS:false AllowInsecure:false TLSConfig:<nil> Method:GET Body:<nil> Headers:map[] ResponseHeadersMatcher:0x10cd120 PollInterval:100ms UserInfo: ForceIPv4LocalHost:false}
  | 2025/04/01 12:29:26 container logs (all exposed ports, [8474/tcp], were not mapped in 5s: port 8474/tcp is not mapped yet):
  | {"level":"info","host":"0.0.0.0","port":"8474","version":"2.5.0","caller":"api.go:119","time":"2025-04-01T12:29:21Z","message":"Starting HTTP server on endpoint 0.0.0.0:8474"}
  |  
  | scaffold.go:525:
  | Error Trace:	/opt/buildkite-agent/builds/bk-agent-prod-gcp-1743509324982332938/elastic/fleet-server/testing/e2e/scaffold/scaffold.go:525
  | /opt/buildkite-agent/builds/bk-agent-prod-gcp-1743509324982332938/elastic/fleet-server/testing/e2e/stand_alone_container_test.go:146
  | Error:      	Received unexpected error:
  | start container: started hook: all exposed ports, [8474/tcp], were not mapped in 5s: port 8474/tcp is not mapped yet
  | Test:       	TestStandAloneContainerSuite/TestWithElasticsearchConnectionFailures

Looks like we're running into testcontainers/testcontainers-go#2652 after the upgrade, but that bug was supposedly fixed in the 0.33.0 release of testcontainers. 🤔

@ycombinator ycombinator force-pushed the dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0 branch from c5e71cb to b0fe8bd Compare April 2, 2025 19:20
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Apr 3, 2025

This pull request is now in conflicts. Could you fix it @dependabot[bot]? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0 upstream/dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0
git merge upstream/main
git push upstream dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0

@ycombinator ycombinator force-pushed the dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0 branch 2 times, most recently from b642da0 to b141962 Compare April 9, 2025 02:20
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Apr 11, 2025

This pull request is now in conflicts. Could you fix it @dependabot[bot]? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0 upstream/dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0
git merge upstream/main
git push upstream dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0

Bumps [github.com/testcontainers/testcontainers-go](https://github.com/testcontainers/testcontainers-go) from 0.31.0 to 0.36.0.
- [Release notes](https://github.com/testcontainers/testcontainers-go/releases)
- [Commits](testcontainers/testcontainers-go@v0.31.0...v0.36.0)

---
updated-dependencies:
- dependency-name: github.com/testcontainers/testcontainers-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@ycombinator ycombinator force-pushed the dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0 branch from b141962 to 839597b Compare April 21, 2025 23:36
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Apr 22, 2025

This pull request is now in conflicts. Could you fix it @dependabot[bot]? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0 upstream/dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0
git merge upstream/main
git push upstream dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0

@michel-laterman
Copy link
Copy Markdown
Contributor

Closing in favour of using #4834 to also do this

auto-merge was automatically disabled April 23, 2025 23:03

Pull request was closed

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Apr 23, 2025

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot Bot deleted the dependabot/go_modules/testing/github.com/testcontainers/testcontainers-go-0.36.0 branch April 23, 2025 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants