Skip to content

Conversation

@divakar-selvam07
Copy link
Contributor

What does this Pull Request accomplish?

  • This Pull Request implements support for the Feature 3079033: View which machine has registered/reserved a session in the Manage Instrument Session UI.

  • To enable this, we populate the newly introduced annotations parameter with client machine details during session reservation and registration. The following request types now include these annotations:

    • ReserveSessionRequest
    • RegisterSessionsRequest
    • RegisterMultiplexerSessionsRequest
    • ReserveAllRegisteredSessionsRequest
  • A new _helpers.py file has been added to encapsulate helper methods for retrieving client machine details. These methods use:

    • Win32 APIs to fetch hostname and username
    • socket.gethostbyname to retrieve the IP address

Why should this Pull Request be merged?

This change ensures that client machine details are sent via the Python SDK whenever a session is reserved or registered. These details are then displayed in InstrumentStudio's Manage Instrument Session UI, improving traceability and user context.

What testing has been done?

Manually verified the behavior using the Argo Installer.
TODO: Add testing if required.

Additional references:

@github-actions
Copy link
Contributor

github-actions bot commented Sep 3, 2025

Test Results

0 files   -     52  0 suites   - 52   0s ⏱️ - 1h 14m 13s
0 tests  -    689  0 ✅  -    689  0 💤 ±    0  0 ❌ ±0 
0 runs   - 20 700  0 ✅  - 19 644  0 💤  - 1 056  0 ❌ ±0 

Results for commit cc950a3. ± Comparison against base commit ef7d421.

♻️ This comment has been updated with latest results.

@divakar-selvam07
Copy link
Contributor Author

This PR is on hold until we get clarity on the recent changes done here. It can be reviewed once we mark it as "ready for review".

…into users/diva/populate-annotations-with-client-details
@csjall
Copy link
Collaborator

csjall commented Sep 8, 2025

The session management client have been moved to the ni-apis-python repo. All implementation and tests now reside in that repo and are included into measurement plugin sdk as a Python package dependency.

@divakar-selvam07
Copy link
Contributor Author

Code changes have been moved here. Hence, abandoning this pull request.

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