Skip to content

build(deps): bump github.com/containerd/ttrpc to v1.2.9 - #13740

Merged
fuweid merged 1 commit into
containerd:mainfrom
liggitt:main
Jul 12, 2026
Merged

fuweid merged 1 commit into
containerd:mainfrom
liggitt:main

Conversation

@liggitt

@liggitt liggitt commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Update ttrpc to pick up containerd/ttrpc#239

cc @fuweid @samuelkarp

Copilot AI review requested due to automatic review settings July 8, 2026 20:02
@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Jul 8, 2026
Comment thread api/go.mod
module github.com/containerd/containerd/api

go 1.24.0
go 1.25.0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we need this bump?

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.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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)?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

1.24.x is EOL. I don't see any issue to change it to v1.25.x

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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 CreateTaskRequest

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@liggitt liggitt Jul 10, 2026 •

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.

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)

Copilot AI left a comment

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.

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/ttrpc to v1.2.9 and update go.mod/go.sum (root + api/) plus vendored module metadata.
  • Vendor upstream ttrpc changes including new stream receive buffering/backpressure behavior (ErrStreamFull, configurable recv buffer sizes).
  • Update vendored protobuf/build tooling artifacts (switch to google/rpc/status.proto, add buf.* 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.

@thaJeztah

Copy link
Copy Markdown
Member

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);

@fuweid

fuweid commented Jul 9, 2026

Copy link
Copy Markdown
Member

@thaJeztah if the change is not required, I would like to wait for more commits for v1.2.10

@thaJeztah

Copy link
Copy Markdown
Member

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
thaJeztah previously approved these changes Jul 9, 2026

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

unless the go version bump is a problem (but probably should be ok?)

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Jul 9, 2026
@thaJeztah
thaJeztah dismissed their stale review July 9, 2026 13:58

see above; perhaps we need to decide on the api/ bump and if that one should be kept as-is for now

@mxpv
mxpv added this pull request to the merge queue Jul 11, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 11, 2026
@fuweid
fuweid added this pull request to the merge queue Jul 12, 2026
Merged via the queue into containerd:main with commit 757416c Jul 12, 2026
51 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

7 participants