feat: Added option to run rshell server as module#44
Open
adrianlasota wants to merge 4 commits into
Open
Conversation
Contributor
|
We don't publish DEVs .whl. |
There was a problem hiding this comment.
Pull request overview
This PR refactors the RShell server into an importable/executable package so it can be launched via python -m mfd_connect.rshell_server, and updates RShell’s startup/check logic plus unit tests/docs to match.
Changes:
- Moved RShell server into
mfd_connect/rshell_server/with__main__.pysupport and arun()entrypoint. - Updated
RShellConnection._run_server()to start via module execution and added tests around startup behavior and error paths. - Increased EFI shell detection timeout to 20 seconds and added a unit test asserting the new timeout.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/unit/test_mfd_connect/test_rshell.py | Adds/updates unit tests for module-based server startup and EFI timeout behavior. |
| tests/unit/test_mfd_connect/test_rshell_server.py | Updates server script path loading and adds a test for the new run() entrypoint. |
| tests/unit/test_mfd_connect/test_rshell_server_module.py | New tests validating rshell_server package structure and module execution wiring. |
| README.md | Documents manual server start via python -m mfd_connect.rshell_server. |
| mfd_connect/rshell.py | Switches server startup to python -m ... and increases EFI shell check timeout. |
| mfd_connect/rshell_server/rshell_server.py | Introduces run() and routes __main__ execution through it. |
| mfd_connect/rshell_server/main.py | Package entrypoint for python -m mfd_connect.rshell_server. |
| mfd_connect/rshell_server/init.py | Initializes the new package with module docstring/header. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
DawidBerk
suggested changes
Jul 16, 2026
Added logging of fail start of rshell server Changed timeout for check if efi shell Signed-off-by: Lasota, Adrian <adrian.lasota@intel.com>
adrianlasota
force-pushed
the
rshell-script
branch
from
July 16, 2026 09:53
46e3410 to
fd3664a
Compare
Signed-off-by: Lasota, Adrian <adrian.lasota@intel.com>
adrianlasota
force-pushed
the
rshell-script
branch
from
July 16, 2026 09:55
fd3664a to
4fcf42c
Compare
Signed-off-by: Lasota, Adrian <adrian.lasota@intel.com>
adrianlasota
force-pushed
the
rshell-script
branch
from
July 20, 2026 12:12
6c2af5b to
a67ae07
Compare
Signed-off-by: Lasota, Adrian <adrian.lasota@intel.com>
adrianlasota
force-pushed
the
rshell-script
branch
from
July 20, 2026 12:16
a67ae07 to
1f6b440
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request refactors the RShell server to support Python module execution, improves startup reliability, and enhances test coverage. The main changes include moving the RShell server to a package for module execution, updating the startup logic to use
python -m, adding new tests to cover the updated logic, and improving documentation.RShell Server Packaging and Startup Improvements:
mfd_connect/rshell_server/) to allow starting it withpython -m mfd_connect.rshell_server, and the startup logic inrshell.pywas updated to use this approach for improved reliability and cross-platform compatibility. [1] [2] [3] [4] [5]Testing Enhancements:
rshell_serverpackage structure and its entry points, ensuring that the package can be imported and executed as a module.Timeout and Reliability Adjustments:
Documentation Updates:
README.mdwas updated to document the new way to manually start the RShell server using the module execution command.Test Infrastructure Maintenance:
These changes modernize the RShell server's deployment, improve testability, and enhance reliability across platforms.