Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1013412iob; Fri, 13 May 2022 19:38:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLA6Rtc71B6BBb86MVPvSuPguyKycYz47UR/eHTGH4s0Lvq3ws78bUMyAmLPjdubSIPLcj X-Received: by 2002:a5d:5051:0:b0:20a:e005:cca3 with SMTP id h17-20020a5d5051000000b0020ae005cca3mr5771926wrt.560.1652495889574; Fri, 13 May 2022 19:38:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652495889; cv=none; d=google.com; s=arc-20160816; b=GmR5zQOhQGP+M0GcPuGn7JQBo10vnwTrdOas4ykvB4pl5FQnapPkorV531HVsvU7lv DcM9ytrgnAqI4F5WzHqHmkbHw2ALPiSpnBLg5LdKw7Tv8sdTqom/E0hIRnDNIFxFGOI6 pbi5wjzoxodyOcs20Mv/vkBHBde4PVIaptJ275fZHm//fBligq/5//TYv/kUIJufMwNw nVlpkKKG9fS9n8VHDrpWrRyinN/ihZT9nucH5rdoSmv/2QdK3qXqxhEwW8CZw8IDAQoe zcfJ7aXJKnHPIBRbTO8OImIrCGRciXYinYbEqqjnzSd2zOtRxE5YG4m6tZelRIdtyjip kPbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LZMxjSJmldQ3JWCoivCnvn/+FiMrBE9vcPF4uGtQz2A=; b=YapNKeOmJGombpMH0YkuxOspOjwL9YHh6Na4eTjOqR3ArPf3KwRDh3qDjJX0cf1hhv Gsx64Qix0iAI5+qolQGHzcbh3KoHfimD5NJQ7RyeXpWZNCmtKzAH/CLkzX6kKjPHbuSv EzjTk4HXiT0dEP169UYCTGaIr5/O94gCqcCdDY98EqYPrMde4vohxzgTC4CSiDE/jgRk NPZU1qVxRmU2q7zDMKSSe6O3HRgOKeo0EFTPGBCnL7ZIvaJFgi775dfqDJ6l8pN9WaBr l4hrWmzlAH0R/4FHgtFJYdg8ovoN3Lcahc0J3IiCArP8kYNmhX2TflhwvftvzNoRx33R j65w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=hhzaIlWa; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y3-20020a056000168300b0020ac48673e6si5456749wrd.190.2022.05.13.19.38.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 19:38:09 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=hhzaIlWa; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4EA0033E5DE; Fri, 13 May 2022 17:49:42 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355913AbiELPZY (ORCPT + 99 others); Thu, 12 May 2022 11:25:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355915AbiELPZS (ORCPT ); Thu, 12 May 2022 11:25:18 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0452920F4E6 for ; Thu, 12 May 2022 08:25:17 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id i19so10894413eja.11 for ; Thu, 12 May 2022 08:25:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LZMxjSJmldQ3JWCoivCnvn/+FiMrBE9vcPF4uGtQz2A=; b=hhzaIlWaIG4YpufqFFKKB+9c/4n/9E89t2cVHITLb/CTZiRXgM4WOJTmuW5fPTCYtC c/jh9WFhKOMhx5aVbeKji3Tus8LJw4bjHpNOfXm+PqFrROCEA6/i0kitKKu49HOEzdzz 4sobYKpWQqGS+YoDGoLZ/xoT2+4FdIAQgU9YbMrz1boNVhux5IHe8ZdQ/dqcwgcNq1Dh N9enZ/zIy58r4SEc42V6EkirsIn9CWFVD82Wfx2nk6whuMj++SmG7uYjm1wvISVRnprR xXLLtQvXbWxruFV4WKCz6UeWZiYrAcJPVsvRxLuxAQvAdy+8T5CjQiLzuSqz6pUBq2wM JX+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LZMxjSJmldQ3JWCoivCnvn/+FiMrBE9vcPF4uGtQz2A=; b=4mS+CuIQbSQ1PPhe786cC/eAH8H38xC/lPHqzatxy2JnfH5gAcytimAzcttaEg/hSP C5/t0h2FGaH1uk7FArAGTxIAp4906Pl17xhpNlnApBvzpNifcgI6wEDgtLooqL1Jxmis 5FvY2r9v5WV54WFxA0lUwfSaS6cA68FEpWrxEA+L++rcopj1hJa4iT/NKbsNhtavs9aX E46u/bTJID5/oyHzXj/6fQoY0o/QNHSjhLweaoKvWiIGHWKLdaOJbpq5QbdyAxkPPEBf sM6UWkqWWMirwVqFdtXBrXt+cI29/a3Oa0AWEVsVOOt/G9fzTHN+Nt4VY2PAkwaeKoFX 5U0g== X-Gm-Message-State: AOAM5316E6NTyWiL92//bhrs80PGTMGaUrmI4Gv5S8ttWa7QwT7O/i2v accWoQWa3kd0ZAaJe06Bd8cvW2HlXO6WQAVXxiYOnA== X-Received: by 2002:a17:907:72ce:b0:6f4:5a57:320c with SMTP id du14-20020a17090772ce00b006f45a57320cmr389491ejc.75.1652369115386; Thu, 12 May 2022 08:25:15 -0700 (PDT) MIME-Version: 1.0 References: <5ca35c47-6145-4ec1-6c05-3c46f436cb4d@gmail.com> In-Reply-To: <5ca35c47-6145-4ec1-6c05-3c46f436cb4d@gmail.com> From: Daniel Latypov Date: Thu, 12 May 2022 08:25:04 -0700 Message-ID: Subject: Re: [RFC] KTAP spec v2: prefix to KTAP data To: Frank Rowand Cc: David Gow , Shuah Khan , Kees Cook , Tim.Bird@sony.com, Brendan Higgins , Jonathan Corbet , rmr167@gmail.com, guillaume.tucker@collabora.com, kernelci@groups.io, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 11, 2022 at 11:01 PM Frank Rowand wrote: > ================================================================================ > #### discussion notes: > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > PRO: minimally invasive to specification. > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > CON: > > KTAP does not include any mechanism to describe the value of > to test harnesses and test output processing programs. The test output > processing programs must infer the value of by detecting > the in the "Version lines". > > The detection of a "Version lines" might be a match of the regex: > > "^.*KTAP version 2$" > > This risks falsely detecting a "Version lines", but the risk is small??? Agree this is a risk and also think it's probably small, but it's hard to say. I think the $ anchoring the regex is probably safe enough. As noted earlier, this tracks with what kunit.py already does. That was necessitated by dynamic prefixes such as timestamps, etc. So I think this is probably a fine risk to take. I imagine we could add constraints of prefix string, e.g. must have [] around it, etc. if we want to try and minimize this risk. But I don't know if it's necessarily worth it, given what we know right now. Along those lines, I think I like this approach (Alternative 1) more than Alternative 2/2b. I'm not sure we need a structured way to specify metadata in KTAP yet? The prefix seems like a reasonable candidate, but do others have ideas of other bits of metadata we'd want to be able to declare? Daniel