DPDK patches and discussions
 help / color / mirror / Atom feed
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 4/6] dts: add artifact module
Date: Mon, 11 Aug 2025 23:26:01 -0400	[thread overview]
Message-ID: <CAJvnSUCHuZWuGbDokC8=qfQj=OXhPcA+36LMv5zVbVN-nTr6Ug@mail.gmail.com> (raw)
In-Reply-To: <20250725151503.87374-5-luca.vizzarro@arm.com>

[-- Attachment #1: Type: text/plain, Size: 1571 bytes --]

On Fri, Jul 25, 2025 at 11:15 AM Luca Vizzarro <luca.vizzarro@arm.com>
wrote:

> Add a new artifact module which provides DTS with remote and local file
> management capabilities. A new Artifact class is provided which acts as
> an abstract representation of a file that is present in any node in the
> testbed model. The same provides several helper file management
> functions, including open, which returns an ArtifactFile class which
> behaves like a standard Python file object for easy interoperability.
>
> Moreover, add a novel directory tree structure for both the remote
> temporary and local output directories. This structure would represent
> the test suites and test cases in structured folders as appropriate,
> where each artifact will be stored. The location of the artifact is
> determined by the time when it was first defined. If an artifact was
> defined during a test case stage, this will be placed in the test case's
> own folder.
>
> Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com>
> Reviewed-by: Paul Szczepanek <paul.szczepanek@arm.com>
> ---
>
> +    def touch(self, mode: int = 0o644) -> None:
> +        """Touch the artifact file, creating it if it does not exist.
> +
>

Oh yeah - is there a reason why we don't call touch in the init function?
running touch should be idempotent so we aren't worried about it being
called too many times. I was reminded when I saw in the softnic testsuite
that it is being called in the testsuite setup. Maybe this is extra work on
the testsuite side for no reason.

[-- Attachment #2: Type: text/html, Size: 2137 bytes --]

  parent reply	other threads:[~2025-08-12  3:32 UTC|newest]

Thread overview: 17+ 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
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-08-12  1:25   ` Patrick Robb
2025-08-12  8:31     ` Luca Vizzarro
2025-08-12 13:50       ` Patrick Robb
2025-08-12  3:26   ` Patrick Robb [this message]
2025-08-12  8:21     ` Luca Vizzarro
2025-07-25 15:11 ` [PATCH 5/6] dts: make log files into artifacts Luca Vizzarro
2025-08-12  3:10   ` Patrick Robb
2025-07-25 15:11 ` [PATCH 6/6] dts: use artifacts in packet capture and softnic Luca Vizzarro
2025-08-12  3:29   ` Patrick Robb

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='CAJvnSUCHuZWuGbDokC8=qfQj=OXhPcA+36LMv5zVbVN-nTr6Ug@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).