Skip to content

nirfsg: Synchronize API updates with latest driver#2169

Merged
vnktshr21 merged 6 commits intoni:masterfrom
rahur-NI:AzDoMatchingForNirfsg
Mar 17, 2026
Merged

nirfsg: Synchronize API updates with latest driver#2169
vnktshr21 merged 6 commits intoni:masterfrom
rahur-NI:AzDoMatchingForNirfsg

Conversation

@rahur-NI
Copy link
Contributor

@rahur-NI rahur-NI commented Mar 13, 2026

  • This contribution adheres to CONTRIBUTING.md.
  • I've updated CHANGELOG.md if applicable.
  • I've added tests applicable for this pull request

What does this Pull Request accomplish?

This PR synchronizes with latest API updates included for nirfsg. These updates are also necessary since the latest gRPC-device proto that will be used for adding gRPC support already contains these.

  • This PR adds below APIs:
    • get_script - Retrieves the content of a compiled script by name
    • delete_script - Deletes a script from memory
  • Enums added:
    • SCRIPTS added to enum LoadOptions
    • DO_NOT_DRIVE_SIGNAL added to enum PulseModulationSource
  • Includes sorting updates to be consistent with the ordering of the metadata.

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

What testing has been done?

  • A successful tox execution.
  • All existing system tests are passing.
  • Added test_get_script and test_delete_script for recently added get_script and delete_script APIs and these tests are passing on real hardware. These are expected to be skipped on simulated devices.

@rahur-NI rahur-NI changed the title Sync nirfsg metadata and Include system_test for newly added APIs nirfsg: Sync metadata and Include system_test for newly added APIs Mar 13, 2026
@codecov-commenter
Copy link

codecov-commenter commented Mar 13, 2026

Codecov Report

❌ Patch coverage is 23.80952% with 32 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.98%. Comparing base (c021ccb) to head (0044082).

Files with missing lines Patch % Lines
generated/nirfsg/nirfsg/_library_interpreter.py 10.52% 17 Missing ⚠️
generated/nirfsg/nirfsg/_library.py 25.00% 12 Missing ⚠️
generated/nirfsg/nirfsg/session.py 57.14% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2169      +/-   ##
==========================================
- Coverage   90.13%   89.98%   -0.15%     
==========================================
  Files          71       71              
  Lines       18669    18711      +42     
==========================================
+ Hits        16827    16838      +11     
- Misses       1842     1873      +31     
Flag Coverage Δ
codegenunittests 84.90% <ø> (ø)
nidcpowersystemtests 94.65% <ø> (+0.04%) ⬆️
nidcpowerunittests 89.53% <ø> (ø)
nidigitalsystemtests 92.26% <ø> (ø)
nidigitalunittests 68.44% <ø> (ø)
nidmmsystemtests 92.72% <ø> (ø)
nifakeunittests 85.68% <ø> (ø)
nifgensystemtests 94.61% <ø> (ø)
nimodinstsystemtests 73.85% <ø> (ø)
nimodinstunittests 94.20% <ø> (ø)
nirfsgsystemtests 81.30% <23.80%> (-1.11%) ⬇️
niscopesystemtests 92.94% <ø> (ø)
niscopeunittests 43.20% <ø> (ø)
nisesystemtests 91.50% <ø> (ø)
niswitchsystemtests 82.03% <ø> (ø)
nitclksystemtests 94.87% <ø> (ø)
nitclkunittests 98.26% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
generated/nirfsg/nirfsg/session.py 90.05% <57.14%> (-0.28%) ⬇️
generated/nirfsg/nirfsg/_library.py 77.61% <25.00%> (-1.27%) ⬇️
generated/nirfsg/nirfsg/_library_interpreter.py 74.10% <10.52%> (-1.78%) ⬇️

... and 1 file 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 c021ccb...0044082. Read the comment docs.

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

Copy link
Collaborator

@vnktshr21 vnktshr21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

List down the newly added APIs in PR description and update changelog as well.

@rahur-NI rahur-NI changed the title nirfsg: Sync metadata and Include system_test for newly added APIs nirfsg: Add get_script and delete_script APIs Mar 13, 2026
@rahur-NI rahur-NI changed the title nirfsg: Add get_script and delete_script APIs nirfsg: Synchronize API updates with latest driver Mar 16, 2026
@vnktshr21 vnktshr21 merged commit f6256a0 into ni:master Mar 17, 2026
75 of 79 checks passed
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.

3 participants