-
Notifications
You must be signed in to change notification settings - Fork 12
Protobuf 3.2.0 #82
base: master
Are you sure you want to change the base?
Protobuf 3.2.0 #82
Conversation
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.
Awesome thanks!
I'm wondering what this test earns us at this level. It seems that since there is a shared dependency on the schema we can isolate this test there?
Thanks for doing this!
Ooh, yeah, I didn't intend to add any tests here, hope I didn't accidentally include something from a different branch. Which test is the issue? I had to add some stuff to |
@@ -0,0 +1,6 @@ | |||
package fakeobj; |
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.
This
extension_scope=None | ||
) | ||
], nested_types=[], enum_types=[], extensions=[]) | ||
|
||
def makeFakeObject(self): |
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.
this
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.
Ah, yeah - that's the same as https://github.com/ljdursi/ga4gh-client/blob/master/tests/unit/test_cli.py#L430 , but with the stricter C++ implementation it actually needs to be a .proto file that gets compiled into a _pb2.py .
Bumps protobuf version to 3.2.0, which means C++ implementation on Linux and so faster/reduced memory usage. Addresses issue ga4gh/ga4gh-server#1623.
The C++ implementation is fussier than the python version - this means had to explicitly create a "proper" FakeObject for tests/unit/test_cli.py. It also means that pythonic things like conversion between string types doesn't happen automatically, so that strings passed to protobuf routines have to be byte strings, not unicode strings