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

chore: Ensure consistent version of generate proto stubs #58

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

ckadner
Copy link
Member

@ckadner ckadner commented Oct 11, 2023

Motivation

The proto stubs can be generated either by using locally installed protoc CLI or by using the developer image which has all the required CLIs preinstalled.

However, the version of the generated code stubs varies based on the version of the CLIs used to generate them. In order to get consistent results, the developer image should install the same versions as specified in the Dockerfile and the go.mo/go.sum files.

Modifications

Update the Dockerfile to "install" the correct (specified) versions.

Result

The installed versions of protoc and its extensions matching the specified versions:

Dockerfile:

ARG PROTOC_VERSION=21.5

go.mod:

	google.golang.org/protobuf v1.28.1

generated code:

// - protoc             v3.21.5
// - protoc-gen-go      v1.28.1
// - protoc-gen-go-grpc v1.3.0

@ckadner ckadner force-pushed the consistenly_generate_proto_stubs branch from a3cacc7 to 10feca7 Compare October 12, 2023 16:51
Copy link
Member

@rafvasq rafvasq left a comment

Choose a reason for hiding this comment

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

/lgtm

@kserve-oss-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ckadner, rafvasq

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

The pull request process is described 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

@ckadner ckadner merged commit 41be615 into kserve:main Oct 12, 2023
4 checks passed
spolti referenced this pull request in spolti/modelmesh-runtime-adapter Jan 12, 2024
…-io#58)

Ensure the versions of the generated protobuf code stubs are consistent
with the versions as specified in the Dockerfile and the go.mo file.

- protoc             v3.21.5
- protoc-gen-go      v1.28.1
- protoc-gen-go-grpc v1.3.0

Signed-off-by: Christian Kadner <[email protected]>
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.

3 participants