-
Notifications
You must be signed in to change notification settings - Fork 302
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
build: don't require a specific protoc version #2743
Conversation
85db24b
to
f2d6b21
Compare
./deployments/scripts/protobuf-codegen | ||
s="$(git status --porcelain)" | ||
if [[ -n "$s" ]]; then | ||
echo "ERROR: protobuf files must be regenerated and committed." | ||
echo "Run this command locally: ./deployments/scripts/protobuf-codegen" | ||
echo "Make sure you're running protoc $(cut -f1 -d. <<< ${PROTOC_VERSION}).x locally." | ||
echo "These are the files that reported differences:" | ||
echo "$s" | ||
exit 1 | ||
else | ||
echo "OK: no changes required to protobuf specs" | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do want to check for changes in the generated proto code, though, just not changes to the proto descriptor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I'll make that change. That means we'll still have failing CI for some cosmetic-only changes such as https://github.com/penumbra-zone/penumbra/pull/2739/files#diff-4c7f8084527df765ac0133b6828891e9b82fb03557bacf323960235942b56c3aR3, but those should be easily sorted with a bit of visual inspection.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
f2d6b21
to
15e933e
Compare
Let's dial down the strictness on the protobuf codegen story. Here we retain the docs changes from #2739, but drop the requirement for a specific major version of `protoc`. Similarly, we remove the CI check that fails if diffs are detected in the generated `proto_descriptor.bin` file, because often those diffs are cosmetic, rather than substantive. We preserve the CI check for ensuring there are no diff elsewhere in the codegen outputs. Closes #2736.
15e933e
to
e52ce11
Compare
Let's dial down the strictness on the protobuf codegen story. Here we retain the docs changes from #2739, but drop the requirement for a specific major version of
protoc
. Similarly, we remove the CI check that fails if diffs are detected in the generatedproto_descriptor.bin
file, because often those diffs are cosmetic, rather than substantive. We preserve the CI check for ensuring there are no diff elsewhere in the codegen outputs.Closes #2736.