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

grpc: RepoList: actually persist "repos" field when converting to protobuf message #644

Merged
merged 2 commits into from
Sep 13, 2023

Conversation

ggilmore
Copy link
Contributor

@ggilmore ggilmore commented Sep 13, 2023

Fixes: https://github.com/sourcegraph/sourcegraph/issues/56342

The repos field wasn't actually propagated properly to the protobuf message - it was hardcoded to an empty slice.

This PR also adds a fuzz test to catch this error. I needed to use https://github.com/AdaLogics/go-fuzz-headers for this since neither go 1.18 fuzzing (no struct support) or quick/check (no support for unexported fields) works for this usecase.

@ggilmore ggilmore changed the title grpc: RepoList: actually persist "repos" field grpc: RepoList: actually persist "repos" field when converting to protobuf message Sep 13, 2023
@ggilmore ggilmore marked this pull request as ready for review September 13, 2023 16:15
@ggilmore ggilmore merged commit 2d1affd into main Sep 13, 2023
8 checks passed
@ggilmore ggilmore deleted the fix-grpc-repos branch September 13, 2023 18:29
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.

site-admin: broken index status page
2 participants