Repository navigation
build(deps): bump github.com/containerd/ttrpc to v1.2.9 - #13740
Conversation
Signed-off-by: Jordan Liggitt <[email protected]>
| module github.com/containerd/containerd/api | ||
|
|
||
| go 1.24.0 | ||
| go 1.25.0 |
There was a problem hiding this comment.
transitively from https://go-review.googlesource.com/c/sys/+/744460, looks like
There was a problem hiding this comment.
actually; maybe we don't need the version in api/go.mod - users can update to a higher version and api usually would go together with the other modules (which would up the minimum version)?
There was a problem hiding this comment.
actually; maybe we don't need the version in
api/go.mod- users can update to a higher version and api usually would go together with the other modules (which would up the minimum version)?
Also because the api/ module is not tagged from the release-branches, so back porting these changes to release branches won't be used in those.
There was a problem hiding this comment.
1.24.x is EOL. I don't see any issue to change it to v1.25.x
There was a problem hiding this comment.
Yeah, mostly looking at if we'd tag a new api version with as little impact as possible.
Looking at this diff, I don't think it makes a difference on the gogo/protobuf case, because that dependency is already gone from the API module (there's no gogo/protobuf in either go.mod or go.sum).
So I think the relevant change for downstreams is actually ce39143
I think that one fixed the problematic case, because that removed gogo/protobuf from the go.mod (before that, users of the API module would still see it as a required dependency).
That commit has NOT shipped yet in an API release, but it's "safer" as in; only removes dependencies, not updates anything. Unfortuntely ac01ae5 was merged before that if I see correctly, and that's adding new fields, so probably warrants a minor version bump (v1.12.0), otherwise we could've tagged the current API as v1.11.2;
git log --format='%H %s' api/v1.11.1^{}..ce39143249b595d2b275e47c279c129f67e3a2a9 -- api/
ce39143249b595d2b275e47c279c129f67e3a2a9 Update typeurl/v2 to v2.3.0 to drop gogo dependency
7f10e9eb5fe3b6e89438fd4806f75bcddfbf576e do not hide linitng errors
ac01ae5c2766961c3592523ab679dc06ca73c331 protos: include task API address to CreateTaskRequestThere was a problem hiding this comment.
Unfortuntely ac01ae5 was merged before that if I see correctly
Oh; I may be lying there; looks like that was already in v1.11.1? https://github.com/containerd/containerd/commits/api/v1.11.1/api
There was a problem hiding this comment.
Looks like the API was tagged from the release branch so the tag is not in main;
https://github.com/containerd/containerd/commits/release/2.3/api
https://github.com/containerd/containerd/commits/main/api
There was a problem hiding this comment.
from my perspective, it's fine if this merges to main, eventually gets branched to release/2.4, and some api version (1.12.0?) gets tagged from the 2.4 branch (I'm not really sure of the containerd/api versioning scheme)
There was a problem hiding this comment.
Pull request overview
This PR updates containerd’s dependency on github.com/containerd/ttrpc to v1.2.9, refreshing the vendored ttrpc sources and aligning generated protobuf/status handling and build metadata with the new upstream version.
Changes:
- Bump
github.com/containerd/ttrpctov1.2.9and updatego.mod/go.sum(root +api/) plus vendored module metadata. - Vendor upstream
ttrpcchanges including new stream receive buffering/backpressure behavior (ErrStreamFull, configurable recv buffer sizes). - Update vendored protobuf/build tooling artifacts (switch to
google/rpc/status.proto, addbuf.*config files, remove old protobuild-related files).
Reviewed changes
Copilot reviewed 2 out of 19 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| vendor/modules.txt | Updates vendored module metadata for ttrpc and the api module. |
| vendor/github.com/containerd/ttrpc/test.proto | Removes vendored test proto from ttrpc. |
| vendor/github.com/containerd/ttrpc/stream.go | Adds buffered receive sizing + timeout-based backpressure for stream delivery. |
| vendor/github.com/containerd/ttrpc/services.go | Adds stream recv buffer sizing and timeout-based backpressure in server-side stream handler. |
| vendor/github.com/containerd/ttrpc/server.go | Adjusts request context cancellation behavior for timeout-less requests. |
| vendor/github.com/containerd/ttrpc/request.proto | Switches status import/type to google/rpc/status.proto. |
| vendor/github.com/containerd/ttrpc/request.pb.go | Regenerates Go bindings for the updated proto definition. |
| vendor/github.com/containerd/ttrpc/README.md | Removes outdated protobuf generation guidance. |
| vendor/github.com/containerd/ttrpc/Protobuild.toml | Removes protobuild configuration from vendored ttrpc. |
| vendor/github.com/containerd/ttrpc/Makefile | Updates vendored build targets/commands for protobuf generation and maintenance. |
| vendor/github.com/containerd/ttrpc/errors.go | Adds ErrStreamFull to represent stream recv buffer exhaustion. |
| vendor/github.com/containerd/ttrpc/client.go | Plumbs recv-buffer sizing into stream creation paths. |
| vendor/github.com/containerd/ttrpc/buf.yaml | Adds buf module configuration for vendored protos. |
| vendor/github.com/containerd/ttrpc/buf.lock | Adds buf dependency lock for googleapis protos. |
| vendor/github.com/containerd/ttrpc/buf.gen.yaml | Adds buf generation config for Go + go-ttrpc plugin. |
| go.sum | Updates checksums for ttrpc bump. |
| go.mod | Updates required ttrpc version to v1.2.9. |
| api/go.sum | Updates checksums (including ttrpc and other transitive updates). |
| api/go.mod | Updates ttrpc and related deps and bumps the module’s Go version metadata. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Oh! I missed that a release was done; was looking at some of the dependencies recently, so if we do another release, I have 3 pending (one is stacked); |
|
@thaJeztah if the change is not required, I would like to wait for more commits for v1.2.10 |
|
oh, yes, the current updates won't do harm, so fine to bring it in, and we can still do a later bump with the other changes. Mostly saw that the intent was to reduce transitive dependencies, and looks like we can reduce further. |
thaJeztah
left a comment
There was a problem hiding this comment.
LGTM
unless the go version bump is a problem (but probably should be ok?)
see above; perhaps we need to decide on the api/ bump and if that one should be kept as-is for now
Update ttrpc to pick up containerd/ttrpc#239
cc @fuweid @samuelkarp