Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1047823iob; Fri, 13 May 2022 21:01:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTgxWNWD0gc/I70UkRVasdG4zPcVAIEg9dUUpENyA9xs/sydoBG2lbYGP1MnUEADlFTLvh X-Received: by 2002:a5d:6792:0:b0:20a:d352:10de with SMTP id v18-20020a5d6792000000b0020ad35210demr6431976wru.326.1652500916220; Fri, 13 May 2022 21:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652500916; cv=none; d=google.com; s=arc-20160816; b=m+YO+ek76JCRONZfDxh6qIG5il23auPsV8/fTHP1Xh+9bdUV/p2zqclQ0+1n3zwRVM 2S564dWMWZlN4PgCmBbGsrN6ooyXbH9GZ3r9eWrb0liea/rfXZucxr02OhIIbgo0UWuf hYMWtZGtyDmBLMun1OPhvn+V6c8GT+PoSs+Pm6YlpG+/itVcQXTUVgRjB5BbIKmFU7zf nIWxvOZSYFDdNaJjFDCxqXgJG+gj6yI64N2KnQMDg/Tw6XeJqY/FxJ55j3mElEdexT5E yazUcu6Lg02QQTzqbQJkPm+bEKdCFVLHBY8wMkf3gt38lNBfscwnTniJskc9a0316Fv2 dYyw== 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=URAyLVGzg8Nt4aDbg3Gbees9letYmMiBHHAQBtnqWOg=; b=USuLgEg7J5S4yUTXvqp1t9ylrIn+9jw1TIVoYZXWRALAfmdo26ZD9SGrYnMrkJPWfE fFxRZmq1HOiJg8hFtScVjc1p0b7iyefWEBpNv/3r6Lw1RAE7oGjxSqM6COyEFScr70lK helx9kCkch/+l3KFO5XNTP5UO2EhaczW8TqYlA/SCRSesr1f9hdpyEVfD8+RRDz7MJ1j /3vniGFOE8DqUzgT/9rgjFr+FokfVKoZ2KeFpbT8QyC4GEYLUHFJOGl6z7wXzXufb+fq GOR6H7wvY0JvueWBSa3j+iFp8jvW+Mb/hh+GqlLHXS5AU5ePlrp0wSI3TYWKrcT+HK83 zu9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="Sz0wAf/n"; 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 l14-20020adff48e000000b0020ace5b73afsi4091743wro.132.2022.05.13.21.01.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 21:01:56 -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="Sz0wAf/n"; 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 out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ED9AE31FCB9; Fri, 13 May 2022 17:32:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355754AbiELPMt (ORCPT + 99 others); Thu, 12 May 2022 11:12:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355759AbiELPMg (ORCPT ); Thu, 12 May 2022 11:12:36 -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 867F0262705 for ; Thu, 12 May 2022 08:12:35 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id i27so10847582ejd.9 for ; Thu, 12 May 2022 08:12:35 -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=URAyLVGzg8Nt4aDbg3Gbees9letYmMiBHHAQBtnqWOg=; b=Sz0wAf/nuR9sykNUsrdx7wu/2uB9VWEK4Lk+0EPPHIb/+SAcG2B0hOLzt3zkTxVlm2 qUeKFfx/kYDQSEfmeSdLV1eAo7/NOUosm/NjXv4hxnf/SMauHIBN0aOaZhYtou/cS+wc yBVTKyOdM7CxbFhx5HcdWWTryb3qhzftC9eygXuJ0vEJ8eemFtvH3cxzxYaj7f6PGOp/ fZTfBE9PZeQdZ4SEvQcrDxPi5EUdmJkmmC+TpOzospFaxKT9QYRu1VSEb24jWIdNlwSI 8tne8p7REzWgW2s6YRW/c6fWS4jqhxI+SfvxcFOXZsB3nXIr8x4BoVrDVfLOYcwjezDu zwZw== 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=URAyLVGzg8Nt4aDbg3Gbees9letYmMiBHHAQBtnqWOg=; b=ydlOhZaQdjnthv6Ep8RxjqctJYpgIWziDJ/oppF07xKuHqF4zRcQJhGX+n6jDphPjq SRbfY7HrsBRGAyN2cdTm/zDOSxh2ZWUGJ9d25uCxRAWi2oEXgzic/xykcOWhUhamJUuV bqT/rqHaqHBvqqU9jvYHatY0ZAC0bQoe6eahU7Cek892ZCQoWH8H3JQCDA02Ou4ILFvk k5uxIojTbB9eEGk0JkWvLGCG33usJ3ta9Zv9/GJSwDHtimbRbNZy2F5O8o9BwZ5onrPz hV3Oz21yh6SLDdlP3nXMwf42mR2BnIITMZCR63cEbWFzKv+/a0c6v9bT/LSAXWXV+zPz ky0Q== X-Gm-Message-State: AOAM532kc+UTrP85NKobFmZ7t5aofevl0zoenC9BJe6gY1HWf0iN9HU4 BxSFmCRCbZub7NpnWXf6hNexsw4YJ7KlvgqWaDFzhA== X-Received: by 2002:a17:907:1c06:b0:6df:b257:cbb3 with SMTP id nc6-20020a1709071c0600b006dfb257cbb3mr315311ejc.631.1652368353809; Thu, 12 May 2022 08:12:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Daniel Latypov Date: Thu, 12 May 2022 08:12:22 -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 10:59 PM Frank Rowand wrote: > > In the middle of the "RFC - kernel test result specification (KTAP)" thread, > started in August 2021, Tim Bird made a suggestion to allow a prefix to the > KTAP data format: > > > Just as a side note, in some Fuego tests, it was very useful to include an identifier > > in thethe prefix nested tests. The output looked like this: > > > > TAP version 13 > > 1..2 > > [batch_id 4] TAP version 13 > > [batch_id 4] 1..2 > > [batch_id 4] ok 1 - cyclictest with 1000 cycles > > [batch_id 4] # problem setting CLOCK_REALTIME > > [batch_id 4] not ok 2 - cyclictest with CLOCK_REALTIME > > not ok 1 - check realtime > > [batch_id 4] TAP version 13 > > [batch_id 4] 1..1 > > [batch_id 4] ok 1 - IOZone read/write 4k blocks > > ok 2 - check I/O performance > > > > Can I propose that the prefix not be fixed by the spec, but that the spec indicates that > > whatever the prefix is on the TAP version line, that prefix must be used with the output for > > all lines from the test (with the exception of unknown lines)? Just chiming in since I didn't see it mentioned after a quick skim of the original thread: This is already basically the behavior of kunit.py's TAP parser since commit afc63da64f1e5e41875c98707020e85050f8a0c5 Author: Heidi Fahim Date: Mon Mar 16 13:21:24 2020 -0700 kunit: kunit_parser: make parser more robust Previously, kunit_parser did not properly handle kunit TAP output that - had any prefixes (generated from different configs e.g. CONFIG_PRINTK_TIME) ... The notable difference is that only the prefix _length_ is fixed, not the contents of the string itself. So ignoring a dynamic prefix is a practical necessity if we want to parse TAP from kernelspace/printk across a range of configs. But I don't know if this dynamic version is worth including in the spec. The static prefix makes more sense to me to formalize, and if we go down that route, at least kunit.py will already be compliant :) Daniel