-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Update protobuf definitions for remote list_append fix #937
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #937 +/- ##
==========================================
+ Coverage 55.54% 58.65% +3.11%
==========================================
Files 63 63
Lines 4733 4775 +42
==========================================
+ Hits 2629 2801 +172
+ Misses 2104 1974 -130 ☔ View full report in Codecov by Sentry. |
Thanks for working on this @nking-1! @riedgar-ms @paulbkoch @Harsha-Nori can any of you comment? I'm particularly wondering if there is any way to make the serialization/deserialization a bit more "automated" since I'd expect union types to be pretty common use cases? |
The E2E test in the server tests is great, but can we have specific protobuf tests? Basically, create a bunch of grammars and round-trip them through protobuf and show that they're the same? If there's some sort of problem with the protobuf layer, debugging via Server is definitely Not Fun. |
@riedgar-ms great idea, but would you consider that required for approval, or can it go on the backlog? |
I'd be happy for a fast-follow. The added test at least flexes the new addition. |
Richard raised some concerns about potential backwards compatibility. Let's wait for Michal's review before merging this. I agree that protobuf-specific tests are important. I can work on that as a followup task. |
Got it. @mmoskal could you take a look when you get a chance? |
is there protobuf used to anything other than the azure_guidance? (which we are replacing with JSON) |
@mmoskal just to make a distinction -- there are two protobuf models (protocols?) we are currently using:
|
I see. A common JSON format for response sounds like a good idea! Given that all this data is processed in Python anyways, I don't think protobuf gives us much of a performance advantage over JSON, especially if we use |
I think I agree. In the meantime, I don't think there should be any backwards compatibility issues wrt AzureGuidance (I expect that was the primary concern?) as we are changing that whole thing out anyway. @mmoskal do you agree? If so I think we should merge this in the meantime and I can work on replacing protobuf entirely on our feature branch |
@hudson-ai yes, agreed! |
Fix for the issue #920. The issue is that the
list_append
feature ingen
does not work with remote models.The primary fix here was to update protobuf definitions to support lists inside the captured values. When I generated code from the new protobuf definitions, it resulted in Protobuf automatically using a new version. The old version is
4.25.2
and the new one is5.27.1
. I'm not sure if that is much of a problem or not.