Message ID | 20240724183914.436188-1-jspewock@iol.unh.edu (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4F359456A2; Wed, 24 Jul 2024 20:39:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3E92A42709; Wed, 24 Jul 2024 20:39:33 +0200 (CEST) Received: from mail-yw1-f227.google.com (mail-yw1-f227.google.com [209.85.128.227]) by mails.dpdk.org (Postfix) with ESMTP id E409140B97 for <dev@dpdk.org>; Wed, 24 Jul 2024 20:39:31 +0200 (CEST) Received: by mail-yw1-f227.google.com with SMTP id 00721157ae682-661369ff30aso909237b3.2 for <dev@dpdk.org>; Wed, 24 Jul 2024 11:39:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1721846371; x=1722451171; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SXtLzYyoEFP8Ce+BBLAasOFTlq5PzKeW9M1DTghIoTo=; b=et9E4kxWeNi2IYrxGnVfPD+yV/wGMlhdKywh8uvImfKEpIUxY/hlmBgg2xAtlJ/9ea Fr+rDVMc/fa1PfgCF6wrHj+R+jl8Faruk++apCUnXYNTc88UEGaEplAK2O/UGXsMWJqA mBGgRGSsBe1uv/dDegH7jvVp6+g3SEGFjOWeQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721846371; x=1722451171; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SXtLzYyoEFP8Ce+BBLAasOFTlq5PzKeW9M1DTghIoTo=; b=JTflyp+JHqOkIT3QGIuGL0PbOC0doXizDnU6lx7lCd6+tp0osiC/Uop3npZZOs18dW neyeXsO7aLp8kGWknL2ckJpuqDmBTxEHRIt73rBVCRF9YfvCVmjGeCHQjhtadbaTuHhm 7QICZUwGvP0FM+MugdDEql3cVnPejkxgqPJ1K8oVYmXF3ULATsVyo7Ua31yhRCjevoYG IroRxvBzarAdsXyd0PPkKuf1qd8Bvz7jbjtrRAVEU7Tvdy7nAc1h7ZSvLQGT51JvgUoz 4aa7yaoZaCDIStALLXWHDJyS8Ig2D8KLpOZsqV5bXe0KN6o77VQhk339HAbaVpHVFKts ol3A== X-Gm-Message-State: AOJu0YxQcWkMSdq0XDXqwpGL6YX2+86MyPc1NMx/ri+DHIV6t5TN5+t0 wp9u3NiZuDOiRB+kVur/uawHdnuvqsvjYtfzyeMXRhSCwpa2mpYWKuM5IP90UDTnvctriW1RXrx rmDTy1tMPnEUSvVETHcnKhlxZa6zGR5JS X-Google-Smtp-Source: AGHT+IFElz+ZJfdUoxdb+icFLZloP2FJnM0AO0SW3kdZTQmh9X/QpTlbK1GnrSiPsvOZde8aGgVftoGtoMQX X-Received: by 2002:a0d:c285:0:b0:65f:7bb3:97f3 with SMTP id 00721157ae682-67510fdee7cmr4231857b3.17.1721846371246; Wed, 24 Jul 2024 11:39:31 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [132.177.123.84]) by smtp-relay.gmail.com with ESMTPS id 00721157ae682-66953ec65fbsm7826507b3.65.2024.07.24.11.39.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jul 2024 11:39:31 -0700 (PDT) X-Relaying-Domain: iol.unh.edu Received: from iol.unh.edu (unknown [IPv6:2606:4100:3880:1257::1083]) by postal.iol.unh.edu (Postfix) with ESMTP id 53373605C351; Wed, 24 Jul 2024 14:39:30 -0400 (EDT) From: jspewock@iol.unh.edu To: juraj.linkes@pantheon.tech, probb@iol.unh.edu, yoan.picchi@foss.arm.com, wathsala.vithanage@arm.com, Honnappa.Nagarahalli@arm.com, npratte@iol.unh.edu, paul.szczepanek@arm.com, thomas@monjalon.net, Luca.Vizzarro@arm.com Cc: dev@dpdk.org, Jeremy Spewock <jspewock@iol.unh.edu> Subject: [PATCH v6 0/3] Improve interactive shell output gathering and logging Date: Wed, 24 Jul 2024 14:39:11 -0400 Message-ID: <20240724183914.436188-1-jspewock@iol.unh.edu> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240501161623.26672-1-jspewock@iol.unh.edu> References: <20240501161623.26672-1-jspewock@iol.unh.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
Improve interactive shell output gathering and logging
|
|
Message
Jeremy Spewock
July 24, 2024, 6:39 p.m. UTC
From: Jeremy Spewock <jspewock@iol.unh.edu>
v6:
* Fix error catch for retries. This series changed the error that
is thrown in the case of a timeout, but it was originally overlooked
that the context manager patch added a catch that is looking for the
old timeout error. This version fixes the patch by adjusting the
error that is expected in the context manager patch to match what
this series changes it to.
Jeremy Spewock (3):
dts: Improve output gathering in interactive shells
dts: Add missing docstring from XML-RPC server
dts: Improve logging for interactive shells
dts/framework/exception.py | 66 ++++++++++++-------
dts/framework/remote_session/dpdk_shell.py | 3 +-
.../single_active_interactive_shell.py | 60 ++++++++++++-----
dts/framework/remote_session/testpmd_shell.py | 2 +
.../testbed_model/traffic_generator/scapy.py | 50 +++++++++++++-
5 files changed, 139 insertions(+), 42 deletions(-)
Comments
For series: Reviewed-by: Juraj Linkeš <juraj.linkes@pantheon.tech> On 24. 7. 2024 20:39, jspewock@iol.unh.edu wrote: > From: Jeremy Spewock <jspewock@iol.unh.edu> > > v6: > * Fix error catch for retries. This series changed the error that > is thrown in the case of a timeout, but it was originally overlooked > that the context manager patch added a catch that is looking for the > old timeout error. This version fixes the patch by adjusting the > error that is expected in the context manager patch to match what > this series changes it to. > Here's the diff for anyone interested: diff --git a/dts/framework/remote_session/single_active_interactive_shell.py b/dts/framework/remote_session/single_active_interactive_shell.py index 7014444d0c..77a4dcefdf 100644 --- a/dts/framework/remote_session/single_active_interactive_shell.py +++ b/dts/framework/remote_session/single_active_interactive_shell.py @@ -150,7 +150,7 @@ def _start_application(self) -> None: try: self.send_command(start_command) break - except TimeoutError: + except InteractiveSSHTimeoutError: self._logger.info( f"Interactive shell failed to start (attempt {attempt+1} out of " f"{self._init_attempts})" self.send_command raises InteractiveSSHTimeoutError (and not TimeoutError) which is why we needed this change. > Jeremy Spewock (3): > dts: Improve output gathering in interactive shells > dts: Add missing docstring from XML-RPC server > dts: Improve logging for interactive shells > > dts/framework/exception.py | 66 ++++++++++++------- > dts/framework/remote_session/dpdk_shell.py | 3 +- > .../single_active_interactive_shell.py | 60 ++++++++++++----- > dts/framework/remote_session/testpmd_shell.py | 2 + > .../testbed_model/traffic_generator/scapy.py | 50 +++++++++++++- > 5 files changed, 139 insertions(+), 42 deletions(-) >
26/07/2024 13:01, Juraj Linkeš: > For series: > Reviewed-by: Juraj Linkeš <juraj.linkes@pantheon.tech> > > On 24. 7. 2024 20:39, jspewock@iol.unh.edu wrote: > > From: Jeremy Spewock <jspewock@iol.unh.edu> > > > > v6: > > * Fix error catch for retries. This series changed the error that > > is thrown in the case of a timeout, but it was originally overlooked > > that the context manager patch added a catch that is looking for the > > old timeout error. This version fixes the patch by adjusting the > > error that is expected in the context manager patch to match what > > this series changes it to. > > > > Here's the diff for anyone interested: > diff --git > a/dts/framework/remote_session/single_active_interactive_shell.py > b/dts/framework/remote_session/single_active_interactive_shell.py > index 7014444d0c..77a4dcefdf 100644 > --- a/dts/framework/remote_session/single_active_interactive_shell.py > +++ b/dts/framework/remote_session/single_active_interactive_shell.py > @@ -150,7 +150,7 @@ def _start_application(self) -> None: > try: > self.send_command(start_command) > break > - except TimeoutError: > + except InteractiveSSHTimeoutError: > self._logger.info( > f"Interactive shell failed to start (attempt > {attempt+1} out of " > f"{self._init_attempts})" > > self.send_command raises InteractiveSSHTimeoutError (and not > TimeoutError) which is why we needed this change. > > > Jeremy Spewock (3): > > dts: Improve output gathering in interactive shells > > dts: Add missing docstring from XML-RPC server > > dts: Improve logging for interactive shells Applied, thanks.