Remove duplicate session_pb2 codegen, add ni-apis submodule and dependency on ni.grpcdevice.v1.proto#2176
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2176 +/- ##
=======================================
Coverage 89.85% 89.85%
=======================================
Files 73 73
Lines 19006 19006
=======================================
+ Hits 17077 17078 +1
+ Misses 1929 1928 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
…ady installing through tox.ini files
|
I've been told we actually do need these, so disregard this comment. |
protoc needs a copy of session.proto in order to handle |
@bkeryan I don't understand. Doesn't |
Oh, dang. We need it in order to compile our api-specific .proto files? That's annoying. |
…ows exept check_latest_release.yml
…l workflows exept check_latest_release.yml" This reverts commit 289d544.
|
@rahur-NI Did you have to do anything special to fetch the submodule, locally? |
Suggested that we make this the 2nd step in our CONTRIBUTING.md |
|
Maybe we should also have a section that explains how to update the copy of ni-apis that's being used by our repo ( I'm sure we'll need to periodically do this, but git submodule is pretty obscure stuff that I wouldn't expect even our maintainers to know or remember. |
Thanks Jay.. I had pushed previous changes.. Now i updated as per your suggestion and it makes more sense to include in this way. |
I've updated CHANGELOG.md if applicable.I've added tests applicable for this pull requestWhat does this Pull Request accomplish?
Replaces the duplicate
session_pb2protobuf codegen in each nimi-python driver modules with a dependency onni.grpcdevice.v1.proto(similar to [ni/nidaqmx-python#859].import from . import session_pb2with absoluteimport session_pb2in_grpc_stub_interpreter.py.makoni.grpcdevice.v1.proto>=1.0.0as part of installers for modules that support grpc.session_pb2.pyandsession_pb2_grpc.pysession.protofileList issues fixed by this Pull Request below, if any.
What testing has been done?
ni.grpcdevice.v1.protopackage than importing from locally generatedsession_pb2file as before.