-
Notifications
You must be signed in to change notification settings - Fork 573
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
fix descriptor path for golang #443
fix descriptor path for golang #443
Conversation
Signed-off-by: Daniel Hochman <danielhochman@users.noreply.github.com>
Signed-off-by: Daniel Hochman <danielhochman@users.noreply.github.com>
Unfortunately there a lot of additional updates in the generated file because the version of |
Thanks for the fix! Sounds like we should add a rule to CI to check that the checked-in generated code is in sync. Is that something you could tackle in this PR? |
Thanks. My hope was that you'd do it here since the only way I have to review this PR as-is is to check it out locally, regenerate the code myself, and check for diffs. If that sounds suspiciously like what lyft/clutch does for CI, it's because it is 😄 If the CI change is not feasible to do in this PR I'm happy to review manually. |
@akonradi The diff check itself is simple. I'm not familiar with the build process in the repo between Bazel, Docker, and Make, to know exactly where to include the generation and diff it. From poking around, I'm not even sure the code is generated at all in CI at the moment. And builds are 30+ minutes so iteration time would be quite slow unfortunately.
I didn't exactly follow this, Clutch automatically checks the diff on every PR in CI using GitHub Actions. I think that's what you meant but it read like the opposite to me. |
Alright so I've checked out your PR and regenerated validate.pb.go using Bazel. It looks like it's using a different version of protoc than |
Yeah I noticed that as well. Alternatively, for this PR I could go back to the last commit where the file was changed and regen with my Makefile change to produce what is hopefully a really small diff. Then we could follow up with separate PRs to regen with new deps, trying to make versions match between Bazel and make, and finally try to land other CI fixes to reduce duplication, verify regeneration, etc. |
This currently only covers validate/validate.pb.go but should be sufficient to catch regressions like the one fixed in bufbuild#443. Towards bufbuild#444 Signed-off-by: Alex Konradi <akonradi@google.com>
Not a problem. I've pushed akonradi@fd45adc in my fork that is a simplified version of what lyft/clutch does. If you want to pull that in here, I think that will both prove that the checked-in version of validate.pb.go is correct and prevent this from happening again. |
… fix-descriptor-registration-go
@akonradi mind taking a look? i cherry picked your validation commit |
Yep, was just waiting for CI to pass. Thanks! |
Although the import path is
validate/validate.proto
the registered path for the descriptor changed tovalidate.proto
in 0.5.0. This breaks gRPC reflection in Go with the errorno such file: "validate/validate.proto"
.Fixes #442