Skip to content

Conversation

kentzeng12
Copy link
Contributor

What this PR does / why we need it:
This PR fixes "Codegen" test in buildkite pipeline.
Fixes #4274

Special notes for your reviewer:

Does this PR introduce a user-facing and/or backwards incompatible change?:
No

Does this PR require updating code package or user-facing documentation?:
No

Copy link
Contributor

@andrewmains12 andrewmains12 left a comment

Choose a reason for hiding this comment

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

We need to figure out a way to get a consistent protoc compiler version here; otherwise we're likely to run into trouble.

$UID_FLAGS $PROTOC_IMAGE_VERSION \
--gogofaster_out=${resolve_protos},plugins=grpc:/src \
-I/src -I/src/github.com/m3db/m3/vendor ${proto_files}
protoc --gogofaster_out=${resolve_protos},plugins=grpc:${GOPATH}/src \
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should try to stick with the containerized protobuf here ideally--we want to use a consistent protobuf version, rather than whatever the developer has "lying around".

RUN apt-get update && apt-get install -y lsof netcat-openbsd docker.io jq
RUN apt-get update && apt-get install -y lsof netcat-openbsd docker.io jq protobuf-compiler thrift-compiler

RUN go install github.com/gogo/protobuf/protoc-gen-gogofaster@latest
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment--we want a consistent set of versions for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Buildkite pipeline is broken

2 participants