Skip to content

api: regenerate and re-vendor protos - #12913

Merged
dmcgowan merged 1 commit into
containerd:mainfrom
thaJeztah:generate_protos
Feb 24, 2026
Merged

dmcgowan merged 1 commit into
containerd:mainfrom
thaJeztah:generate_protos

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

Probably related to ca1c5b2 (#12841).

I got this diff when running make protos; let's see if CI agrees it's OK 😅

@thaJeztah

Copy link
Copy Markdown
Member Author

The diff in api/next.txtpb looks like many changes like this, which makes me think this is probably due to the change from tabs to spaces?;

    location: {
      path: 7
      path: 0
      path: 3
      span: 36
-     span: 38
-     span: 43
+     span: 32
+     span: 37
    }

@thaJeztah
thaJeztah marked this pull request as ready for review February 17, 2026 13:57
@thaJeztah
thaJeztah requested a review from mxpv February 17, 2026 13:58
@dosubot dosubot Bot added area/toolchain Build and Release Toolchain go Pull requests that update Go code labels Feb 17, 2026
@thaJeztah

Copy link
Copy Markdown
Member Author

CI is happy, but curious why it is; or at least, why it's happy both before and after this; are we missing some validation somewhere? cc @mxpv

@mxpv

mxpv commented Feb 17, 2026 •

Copy link
Copy Markdown
Member

I ran make protos against main and got the the diff as in this PR.

I think we need to follow up on this.

make check-protos should validate the generated code is up to date.
Currently we only check for pb files formatting, which is not enought.

@mxpv

mxpv commented Feb 17, 2026

Copy link
Copy Markdown
Member

Something like:

check-protos: protos
	@echo "$(WHALE) $@"
	@(cd api && buf format --diff --exit-code --exclude-path vendor \
		$(if $(GITHUB_ACTIONS),--error-format github-actions)) || \
		(echo "$(ONI) please run 'make protos' when making changes to proto files" && false)
	@test -z "$$(git status --short | grep "api/next.txtpb" | tee /dev/stderr)" || \
		(echo "$(ONI) api/next.txtpb is out of date, please run 'make protos' and commit the changes" && false)

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah

Copy link
Copy Markdown
Member Author

rebased after #12840 was merged.

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Feb 24, 2026
@dmcgowan
dmcgowan added this pull request to the merge queue Feb 24, 2026
Merged via the queue into containerd:main with commit 1839a9a Feb 24, 2026
53 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Feb 24, 2026
@thaJeztah
thaJeztah deleted the generate_protos branch February 25, 2026 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/toolchain Build and Release Toolchain go Pull requests that update Go code size/XXL

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants