Skip to content

deps: go get -u + migrate dockertest v3 -> v4 - #115

Merged
paulwe merged 3 commits into
mainfrom
deps/protocol-major-updates
Jun 5, 2026
Merged

deps: go get -u + migrate dockertest v3 -> v4#115
paulwe merged 3 commits into
mainfrom
deps/protocol-major-updates

Conversation

@paulwe

@paulwe paulwe commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • dockertest v3 -> v4 in internal/bus/bustest/{bustest,redis,nats,local}.go. v4 makes Pool/Resource interfaces, threads context.Context through NewPool/Run/Retry, replaces RunWithOptions(&RunOptions{...}) with a Run(ctx, repo, WithTag(...), WithName(...), ...) builder, and replaces pool.Purge(resource) with resource.Close(ctx).
  • go get -u ./... sweep: otel 1.40/1.43 -> 1.44, grpc 1.80 -> 1.81.1, golang.org/x/* minor bumps, genproto/googleapis/rpc pseudo-version refresh.

Audit notes

  • No direct deps had a newer major (probed /vN+1 for every /vN).
  • +incompatible deps stay put: twitchtv/twirp (no module-aware path published), docker/cli indirect (Docker's chosen versioning).

Test plan

  • go build ./...
  • go test -count=0 ./... (pre-existing breakage in internal/test/* fixtures referencing version.PsrpcVersion_0_5 fails on main too)
  • go test ./internal/bus/... against a real Docker daemon to exercise the v4 runtime path

Sweeps go get -u ./... and bumps dockertest to v4, the only direct dep
that needed an explicit major version bump. Migrates the 4 testutils
helpers in internal/bus/bustest/ to v4 (Pool/Resource are now interfaces;
NewPool/Run/Retry take ctx; RunWithOptions replaced by builder; Purge
replaced by ClosableResource.Close).

Other direct deps with newer majors available: none. +incompatible deps:
twitchtv/twirp v8.1.3 (upstream choice, no module-aware path published).
Passes res.Code/res.Error/res.ErrorDetails straight through instead of
round-tripping through NewErrorf, which also resolves the Go 1.25 vet
complaint about a non-constant format string. Plus the previous form
silently dropped error details.
@paulwe
paulwe force-pushed the deps/protocol-major-updates branch from 998b669 to 4bab403 Compare June 4, 2026 22:56
if err != nil {
t.Fatal(err)
}
err = pool.Client.Ping()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ping not needed anymore?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ci passes 🤷

@paulwe paulwe changed the title deps: go get -u sweep; migrate dockertest v3 → v4 deps: go get -u + migrate dockertest v3 -> v4 Jun 5, 2026
@paulwe
paulwe merged commit 709765a into main Jun 5, 2026
5 checks passed
@paulwe
paulwe deleted the deps/protocol-major-updates branch June 5, 2026 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants