Skip to content

Enhancement: Improved handling of disconnected nodes - #200

Merged
RyanTheRobothead merged 15 commits into
mainfrom
198-enhancement-improved-handling-of-disconnected-nodes
Dec 15, 2025
Merged

Enhancement: Improved handling of disconnected nodes#200
RyanTheRobothead merged 15 commits into
mainfrom
198-enhancement-improved-handling-of-disconnected-nodes

Conversation

@tginsbu1

@tginsbu1 tginsbu1 commented Dec 11, 2025

Copy link
Copy Markdown
Contributor

PR Info

Addresses issue #198

Developer Checklists

I have:

  • Run Pre-commit and Unit Tests, and ensured that they pass
  • Created or updated documentation relevant to your change
  • Created or updated unit tests relevant to your change

@tginsbu1 tginsbu1 linked an issue Dec 11, 2025 that may be closed by this pull request
@github-actions

github-actions Bot commented Dec 11, 2025

Copy link
Copy Markdown

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/madsci_client/madsci/client/node
  abstract_node_client.py
  src/madsci_common/madsci/common/types
  node_types.py 417
  workcell_types.py
  src/madsci_workcell_manager/madsci/workcell_manager
  workcell_engine.py 86-92, 108-118, 626
  workcell_server.py 313-324
Project Total  

This report was generated by python-coverage-comment-action

@RyanTheRobothead RyanTheRobothead left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In addition to the in-line comments and suggestions:

  • Please update the PR title to be a clear and concise description of the PR. Since this is used to generate release notes, it's important that the title clearly communicates the content.
  • [nitpick] When referring to issue or PR's by number on GitHub in places like PR descriptions, one should prepend a # in front of the number to automatically link to the relevant item, like #198 -> #198
  • For automated testing, I would recommend adding two test cases in test_workcell_engine.py. You can patch the node client in the test to raise an exception, and validate that the node ends up properly marked as disconnected afterwards. For the second case, I would test that sending a reset correctly marks the node as initializing.

Comment thread src/madsci_common/madsci/common/types/node_types.py
Comment thread src/madsci_common/madsci/common/types/workcell_types.py Outdated
Comment thread src/madsci_workcell_manager/madsci/workcell_manager/workcell_engine.py Outdated
Comment thread src/madsci_workcell_manager/madsci/workcell_manager/workcell_engine.py Outdated
Comment thread src/madsci_workcell_manager/madsci/workcell_manager/workcell_server.py Outdated
tginsbu1 and others added 2 commits December 13, 2025 08:39
…erver.py

Co-authored-by: Ryan D. Lewis <ryan.lewis@anl.gov>
Co-authored-by: Ryan D. Lewis <ryan.lewis@anl.gov>
@tginsbu1 tginsbu1 changed the title basic functionality seems to be working Enhancement: Improved handling of disconnected nodes Dec 13, 2025
@RyanTheRobothead RyanTheRobothead added the enhancement New feature or request label Dec 15, 2025
@RyanTheRobothead
RyanTheRobothead merged commit 535c358 into main Dec 15, 2025
4 checks passed
@RyanTheRobothead
RyanTheRobothead deleted the 198-enhancement-improved-handling-of-disconnected-nodes branch December 27, 2025 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhancement: Improved handling of disconnected nodes

2 participants