Skip to content

Conversation

@abhising-NI
Copy link

@abhising-NI abhising-NI commented Aug 11, 2025

TODO: Check the above box with an 'x' indicating you've read and followed CONTRIBUTING.md.

TODO: Check the above box with an 'x' if considered if there were any and then documented client facing changes in CHANGELOG.md. Strike through if this is not a relevant client facing change.

  • I've added tests applicable for this pull request

TODO: Check the above box with an 'x' indicating you have considered and added any applicable system or unit tests. Strike through if you considered and decided additional tests were not warranted.

What does this Pull Request accomplish?

There was a need to add gRPC Python support for the RFSG driver. This required a new Proto file which is copied from the grpc-device generated from the meta-data there. Reference: ni/grpc-device#1181

List issues fixed by this Pull Request below, if any.

Added the gRPC RFSG Proto file with the latest API.
The gRPC was not support for the methods which were involving the NIComplex struct. Since the numpy to NIComplex was not directly supported in case of the gRPC, but in the case of the python API we were using pointers to the C API for direct modification, but this was not possible in case of the gRPC since the driver would be running on the server side. To resolve this, modified the codegen to convert the numpy and NIComplex and vice-versa before/after gRPC calls.

What testing has been done?

Built the code locally. All test passed except flake8 indentation tests. Will fix it after final changes
{79274F19-7518-4F56-8C11-801639AC8892}
Ran System Test by attaching the gRPC session locally.
{45E02D91-BE38-4F84-9251-294A3831CE32}
{02553939-7690-40DF-ABED-22AC5F6123B3}
9 Tests are failing.
{9DA4DBE1-EF4E-48D8-BD6C-89B621B3EE1F}
TODO: Will fix one by one

  • System Tests Passing

Also Validated with the NI-IO Trace logs for the calls to driver from gRPC client.
{07019223-D977-4416-AE3B-F8A028000359}

All 3 Examples are passing with the gRPC calls.

@codecov-commenter
Copy link

codecov-commenter commented Aug 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.00%. Comparing base (4b9434f) to head (afd26c2).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2128      +/-   ##
==========================================
+ Coverage   89.07%   90.00%   +0.92%     
==========================================
  Files          71       50      -21     
  Lines       18960    12515    -6445     
==========================================
- Hits        16889    11264    -5625     
+ Misses       2071     1251     -820     
Flag Coverage Δ
codegenunittests ?
nidcpowersystemtests 94.65% <ø> (+0.04%) ⬆️
nidcpowerunittests 89.53% <ø> (ø)
nidigitalsystemtests ?
nidigitalunittests 68.44% <ø> (ø)
nidmmsystemtests 92.72% <ø> (ø)
nifakeunittests 85.28% <ø> (-0.24%) ⬇️
nifgensystemtests 94.61% <ø> (ø)
nimodinstsystemtests 73.85% <ø> (ø)
nimodinstunittests 94.20% <ø> (ø)
nirfsgsystemtests ?
niscopesystemtests 92.94% <ø> (ø)
niscopeunittests 43.20% <ø> (ø)
nisesystemtests 91.50% <ø> (ø)
niswitchsystemtests 82.03% <ø> (ø)
nitclksystemtests ?
nitclkunittests 98.26% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 24 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4b9434f...afd26c2. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants