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

build(deps): bump github.com/testcontainers/testcontainers-go from 0.26.0 to 0.31.0 #80

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 13, 2024

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

Release notes

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

v0.31.0

What's Changed

⚠️ Breaking Changes

Are you hosting your own Testcontainers for Go module?

If you are hosting your own module, please update all the custom options you created for the module, updating them to return an error in the case it occurs. This breaking change is needed to provide a more robust and consistent API for creating modules, allowing module authors to create custom code to customise the container avoiding panics.

🔒 Security

  • chore(deps): bump github.com/containerd/containerd from 1.7.12 to 1.7.15 (#2517) @​mdelapenya

🚀 Features

🐛 Bug Fixes

📖 Documentation

🧹 Housekeeping

📦 Dependency updates

... (truncated)

Commits
  • 896f379 chore: use new version (v0.31.0) in modules and examples
  • 788097d feat(mongodb): add replica set support via opts (#2469)
  • de893e1 fix(modules.kafka): Use broker container IP instead of host IP for advertised...
  • 5fa6548 feat: expose JSON representation of a container with Inspect (#2534)
  • b181e3e chore(deps): bump test-summary action to v2.3 (#2535)
  • b5541e6 chore(deps): bump jinja2 from 3.1.3 to 3.1.4 (#2533)
  • 5c5ff44 Update devcontainer image (#2531)
  • 4effa16 chore(influxdb): include more characters in wait for log regex (#2532)
  • 5e97046 fix(compose): avoid race conditions when caching services (#2528)
  • da2d5c5 chore(deps): bump golangci/golangci-lint-action from 3.7.0 to 5.1.0 (#2525)
  • Additional commits viewable in compare view

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 added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels May 13, 2024
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign tomcli for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tarilabs
Copy link
Member

This update is on hold: this requires Go >= 1.20.

There is also opportunity then to change deprecated method:

diff --git a/internal/testutils/test_container_utils.go b/internal/testutils/test_container_utils.go
index 42671550..c3ee82c7 100644
--- a/internal/testutils/test_container_utils.go
+++ b/internal/testutils/test_container_utils.go
@@ -7,6 +7,7 @@ import (
 	"os"
 	"testing"
 
+	"github.com/docker/docker/api/types/container"
 	"github.com/opendatahub-io/model-registry/internal/ml_metadata/proto"
 	"github.com/testcontainers/testcontainers-go"
 	"github.com/testcontainers/testcontainers-go/wait"
@@ -82,13 +83,8 @@ func SetupMLMetadataTestContainer(t *testing.T) (*grpc.ClientConn, proto.Metadat
 		Env: map[string]string{
 			"METADATA_STORE_SERVER_CONFIG_FILE": "/tmp/shared/conn_config.pb",
 		},
-		Mounts: testcontainers.ContainerMounts{
-			testcontainers.ContainerMount{
-				Source: testcontainers.GenericBindMountSource{
-					HostPath: wd,
-				},
-				Target: "/tmp/shared",
-			},
+		HostConfigModifier: func(hc *container.HostConfig) {
+			hc.Binds = []string{wd + ":/tmp/shared"}
 		},
 		WaitingFor: wait.ForLog("Server listening on"),
 	}

bumping Go version would also "incorporate" these changes:

@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/testcontainers/testcontainers-go-0.31.0 branch from c6a10b9 to 0a6c6d6 Compare May 13, 2024 07:17
@tarilabs
Copy link
Member

This update is on hold: this requires Go >= 1.20.

There is also opportunity then to change deprecated method:

diff --git a/internal/testutils/test_container_utils.go b/internal/testutils/test_container_utils.go
index 42671550..c3ee82c7 100644
--- a/internal/testutils/test_container_utils.go
+++ b/internal/testutils/test_container_utils.go
@@ -7,6 +7,7 @@ import (
 	"os"
 	"testing"
 
+	"github.com/docker/docker/api/types/container"
 	"github.com/opendatahub-io/model-registry/internal/ml_metadata/proto"
 	"github.com/testcontainers/testcontainers-go"
 	"github.com/testcontainers/testcontainers-go/wait"
@@ -82,13 +83,8 @@ func SetupMLMetadataTestContainer(t *testing.T) (*grpc.ClientConn, proto.Metadat
 		Env: map[string]string{
 			"METADATA_STORE_SERVER_CONFIG_FILE": "/tmp/shared/conn_config.pb",
 		},
-		Mounts: testcontainers.ContainerMounts{
-			testcontainers.ContainerMount{
-				Source: testcontainers.GenericBindMountSource{
-					HostPath: wd,
-				},
-				Target: "/tmp/shared",
-			},
+		HostConfigModifier: func(hc *container.HostConfig) {
+			hc.Binds = []string{wd + ":/tmp/shared"}
 		},
 		WaitingFor: wait.ForLog("Server listening on"),
 	}

bumping Go version would also "incorporate" these changes:

@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/testcontainers/testcontainers-go-0.31.0 branch from 0a6c6d6 to 4169e6b Compare June 4, 2024 07:32
@tarilabs
Copy link
Member

@dependabot rebase

Bumps [github.com/testcontainers/testcontainers-go](https://github.com/testcontainers/testcontainers-go) from 0.26.0 to 0.31.0.
- [Release notes](https://github.com/testcontainers/testcontainers-go/releases)
- [Commits](testcontainers/testcontainers-go@v0.26.0...v0.31.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] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/testcontainers/testcontainers-go-0.31.0 branch from 4169e6b to 91dd543 Compare June 19, 2024 08:26
Copy link
Contributor Author

dependabot bot commented on behalf of github Jul 8, 2024

Superseded by #171.

@dependabot dependabot bot closed this Jul 8, 2024
@dependabot dependabot bot deleted the dependabot/go_modules/github.com/testcontainers/testcontainers-go-0.31.0 branch July 8, 2024 12:38
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 go Pull requests that update Go code size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant