-
Notifications
You must be signed in to change notification settings - Fork 31
Add pty comm layer #295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add pty comm layer #295
Conversation
benchkit/communication/__init__.py
Outdated
| import os | ||
| import os.path | ||
| import subprocess | ||
| from abc import ABC, abstractmethod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't use ABC in benchkit.
benchkit/communication/pty.py
Outdated
| # Copyright (C) 2026 Vrije Universiteit Brussel. All rights reserved. | ||
| # SPDX-License-Identifier: MIT | ||
|
|
||
| from __future__ import annotations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
| @@ -0,0 +1,194 @@ | |||
| # Copyright (C) 2026 Vrije Universiteit Brussel. All rights reserved. | |||
| # SPDX-License-Identifier: MIT | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you give docstring documentation for this module.
benchkit/communication/pty.py
Outdated
| or ignore_any_error_code | ||
| or ignore_ret_codes != () | ||
| ): | ||
| raise PTYException("Not supported attributes") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| raise PTYException("Not supported attributes") | |
| raise PTYException("Unsupported attributes") |
benchkit/communication/__init__.py
Outdated
| return list_hosts | ||
|
|
||
|
|
||
| class StatusAware(ABC): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is that class necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its a way to have stronger guarantees on a comm status. Should I remove it and assume that init always open instead and, while the class is alive the comm is as well ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep it but move it to pty.py for now. Also please document the different methods.
Add a pty comm layer and a status aware abstract class