From: Patrick Robb <probb@iol.unh.edu>
To: Luca Vizzarro <luca.vizzarro@arm.com>
Cc: dev@dpdk.org, Paul Szczepanek <paul.szczepanek@arm.com>
Subject: Re: [PATCH 1/6] dts: merge RemoteSession class
Date: Thu, 7 Aug 2025 21:15:06 -0400 [thread overview]
Message-ID: <CAJvnSUAdZJKbaxwnw587SAvre1WoVh4g+hvH3HYK-1GxtAF=HQ@mail.gmail.com> (raw)
In-Reply-To: <20250725151503.87374-2-luca.vizzarro@arm.com>
[-- Attachment #1: Type: text/plain, Size: 2936 bytes --]
On Fri, Jul 25, 2025 at 11:15 AM Luca Vizzarro <luca.vizzarro@arm.com>
wrote:
> Merge the RemoteSession class with SSHSession as there is no current use
> of a separate channel other than SSH.
>
> Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com>
> Reviewed-by: Paul Szczepanek <paul.szczepanek@arm.com>
> ---
> doc/api/dts/framework.remote_session.rst | 1 -
> .../framework.remote_session.ssh_session.rst | 8 --
> dts/framework/remote_session/__init__.py | 3 +-
> .../remote_session/remote_session.py | 110 ++++++++++++-----
> dts/framework/remote_session/ssh_session.py | 116 ------------------
> 5 files changed, 79 insertions(+), 159 deletions(-)
> delete mode 100644 doc/api/dts/framework.remote_session.ssh_session.rst
> delete mode 100644 dts/framework/remote_session/ssh_session.py
>
> diff --git a/doc/api/dts/framework.remote_session.rst
> b/doc/api/dts/framework.remote_session.rst
> index 27c9153e64..e4ebd21ab9 100644
> --- a/doc/api/dts/framework.remote_session.rst
> +++ b/doc/api/dts/framework.remote_session.rst
> @@ -12,7 +12,6 @@ remote\_session - Node Connections Package
> :maxdepth: 1
>
> -class RemoteSession(ABC):
> +class RemoteSession:
> """Non-interactive remote session.
>
> - The abstract methods must be implemented in order to connect to a
> remote host (node)
> - and maintain a remote session.
> - The subclasses must use (or implement) some underlying transport
> protocol (e.g. SSH)
> - to implement the methods. On top of that, it provides some basic
> services common to all
> - subclasses, such as keeping history and logging what's being executed
> on the remote node.
> + The connection is implemented with
> + `the Fabric Python library <https://docs.fabfile.org/en/latest/>`_.
>
> Attributes:
> name: The name of the session.
> @@ -82,6 +94,7 @@ class RemoteSession(ABC):
> password: The password used in the connection. Most frequently
> empty,
> as the use of passwords is discouraged.
>
This isn't really about your patch but at some point we need to decide to
remove password support for real, or (re)document it in the DTS
documentation so that people can use it if they want. I'm not super keen on
us keeping around easter egg code which will break later. :) Something we
can chat about at the next DTS meeting.
> history: The executed commands during this session.
> + session: The underlying Fabric SSH session.
> """
>
> name: str
> @@ -91,6 +104,7 @@ class RemoteSession(ABC):
> username: str
> password: str
> history: list[CommandResult]
> + session: Connection
> _logger: DTSLogger
> _node_config: NodeConfiguration
>
> 2.43.0
>
>
Happy to see the two classes reduced into just RemoteSession.
Reviewed-by: Patrick Robb <probb@iol.unh.edu>
[-- Attachment #2: Type: text/html, Size: 3967 bytes --]
next prev parent reply other threads:[~2025-08-08 1:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-25 15:11 [PATCH 0/6] dts: add file management Luca Vizzarro
2025-07-25 15:11 ` [PATCH 1/6] dts: merge RemoteSession class Luca Vizzarro
2025-08-08 1:15 ` Patrick Robb [this message]
2025-07-25 15:11 ` [PATCH 2/6] dts: add node retriever by identifier Luca Vizzarro
2025-08-08 18:10 ` Patrick Robb
2025-07-25 15:11 ` [PATCH 3/6] dts: add current test suite and cases to context Luca Vizzarro
2025-08-08 18:19 ` Patrick Robb
2025-07-25 15:11 ` [PATCH 4/6] dts: add artifact module Luca Vizzarro
2025-07-25 15:11 ` [PATCH 5/6] dts: make log files into artifacts Luca Vizzarro
2025-07-25 15:11 ` [PATCH 6/6] dts: use artifacts in packet capture and softnic Luca Vizzarro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJvnSUAdZJKbaxwnw587SAvre1WoVh4g+hvH3HYK-1GxtAF=HQ@mail.gmail.com' \
--to=probb@iol.unh.edu \
--cc=dev@dpdk.org \
--cc=luca.vizzarro@arm.com \
--cc=paul.szczepanek@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).