Skip to content

Conversation

@EstAK
Copy link
Contributor

@EstAK EstAK commented Jan 13, 2026

Add a pty comm layer and a status aware abstract class

EstAK added 4 commits January 13, 2026 15:05
Signed-off-by: estak <esteban.aguililla.klein.pro@outlook.com>
Signed-off-by: estak <esteban.aguililla.klein.pro@outlook.com>
Signed-off-by: estak <esteban.aguililla.klein.pro@outlook.com>
Signed-off-by: estak <esteban.aguililla.klein.pro@outlook.com>
import os
import os.path
import subprocess
from abc import ABC, abstractmethod
Copy link
Collaborator

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.

# Copyright (C) 2026 Vrije Universiteit Brussel. All rights reserved.
# SPDX-License-Identifier: MIT

from __future__ import annotations
Copy link
Collaborator

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
Copy link
Collaborator

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.

or ignore_any_error_code
or ignore_ret_codes != ()
):
raise PTYException("Not supported attributes")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
raise PTYException("Not supported attributes")
raise PTYException("Unsupported attributes")

return list_hosts


class StatusAware(ABC):
Copy link
Collaborator

Choose a reason for hiding this comment

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

is that class necessary?

Copy link
Contributor Author

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 ?

Copy link
Collaborator

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.

Signed-off-by: estak <esteban.aguililla.klein.pro@outlook.com>
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.

2 participants