Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp609073rdb; Thu, 15 Feb 2024 09:38:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXi3pqkWnjdOs7uYBsRhntFAjanMFxnNaeGUC4jEkFlJYsbtziCYjhYB4kbE9oTrNQjAZh+Cr/l6ujYzdbD+iFJT6tCa3T79wFPN01Uzw== X-Google-Smtp-Source: AGHT+IGlKUO5+AwNECt2PoscwHvDmtyqyMPdxk2DVlUNecVsXzkvIb9u4S1FeoKtV0NwZeIGrdvf X-Received: by 2002:aa7:c597:0:b0:55f:e147:2524 with SMTP id g23-20020aa7c597000000b0055fe1472524mr1644456edq.38.1708018709439; Thu, 15 Feb 2024 09:38:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708018709; cv=pass; d=google.com; s=arc-20160816; b=Kldz7tZgYqKdgr+53AKOicuV52greaOiY5bR1eIG6osyIhYS1znYGu5d1qNau29USQ EP+Ww9/tPQZZvOjj6Gc3jEU4BBjC5QoBd/vxtdWI1v/xQeGK4QDCITzvNnTDmeh4NGgF OegL7/mlYBlqIrhdUBVW+MmDqKQDS8zBDhfKCfZM8ldyQDXyGmaCyKzUgNfmMvtUYhMI jrnRDV6SrdJIYg1sgjPyYlpFGwKp47FKenMI3/W/pNON6O7CcHP5PJM8arp8UABlUcdj k9MYsrtphMm1bG6DiPGVnP0+thwez+lTomu6/jdbhVRRasVk6KI9cNuvoIBcQUQx2GPf /dUw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WKujQBQrVUJjXR80iuACMbDhu6cNiLpIU8q///YY7rg=; fh=9AUxbjCWLx/abL3pRXhzH/3jLIW1fSMMFLFErppQH4w=; b=o5nKutC98d1zrhgn9oeZNWyvJGCjz9io5E/a9BPGOhL4l1bM+6v4Mi+NPn/XNDFjU4 sjS8cmeSPUrkZr3vYDnR5T1LxdCvdL5C8/dbbz+HNrUXqs1ECDRqml8Ctb8EdgS9ZxWo +09jm20pbtdvp8KnKF8Le22Tu9sqQItS7disujtH/qGSKzS1HiuCIWeS4XxmnzRPzBsK hVoKasIcVoEo6xyqSztXi47fiu0wu9xWi/NoNnYyfIQKuVj47Ps81p/gHadi1i/09CZh eJYA4JR1FmCsON8OvGLEErm6AXyuEIRpCnQxZzaaafmF9zKUrfNEzzOkB8FgJjPy2yjb XLrA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eQO52yak; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-67418-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67418-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q30-20020a50cc9e000000b00563d381a060si145344edi.502.2024.02.15.09.38.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 09:38:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67418-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eQO52yak; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-67418-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67418-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 357E21F231B1 for ; Thu, 15 Feb 2024 17:38:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 720F8138485; Thu, 15 Feb 2024 17:38:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="eQO52yak" Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E5A6137C5A for ; Thu, 15 Feb 2024 17:38:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708018691; cv=none; b=R7oOAdu/E/DuQ9J3cnTYEGc36P58rMpCW/8FJorzhM6wwqEZ1R8y6GjPvs20/IGYlbb2Yw2Gxk75IxtWTToyHCI/zxvFON+nOMPsUXwei6VMR1cMVNnHn36ndYY1YT2QJbcJ2qhPM7B/vode8NTcURxKDjL1IKfjU5QI/SMtSwk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708018691; c=relaxed/simple; bh=CmA2yNqbhHxRJP/sPUsviXqi+eveftIcv605DlHS1OE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EhIf6nKay0WTmZwPXykjrkgciqS5VJQjSvCYNxCzd/Z7alROXZHSDRS9CbRlyTUg1jsddqPGNi5XsAJZU+93zOD7K4rmoj3cJOP5hkNuEJUWQUk0T0qk3cMhJ2FBy0UTQo/6N3VyldzqNFFt4QWDB3xRI/PwORZ5BtZdGjnAvVY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=eQO52yak; arc=none smtp.client-ip=209.85.210.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-6e0f5934813so955737b3a.2 for ; Thu, 15 Feb 2024 09:38:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1708018689; x=1708623489; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=WKujQBQrVUJjXR80iuACMbDhu6cNiLpIU8q///YY7rg=; b=eQO52yakXn32UfP3BdzLziWgogY/qQw7FaSCkE5iIrnX8qgGech6NCf46WztkBTJvq BRkqKGGRJt8MkR3n+k6HR6I6Jrbhaz2uCUoqPJW+IAQjdgiPaGw1+rak0J7p3YBfBhbe MXc60dUUqvc2NwnRBgQlKoRJK9gmUr2oTSDoo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708018689; x=1708623489; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WKujQBQrVUJjXR80iuACMbDhu6cNiLpIU8q///YY7rg=; b=bLIJUFoq6FYHxjnfZqWw0BuXFJWXcV37PtVhyK9VFXi/iIJZ929owpsdrw+dCrwKIn ldvoJrmDJP8Nz4IB8P+8pSDCDg/x4N/OM8/Vk6yyfmHeTojz2oDQoWXBoTm0azLXZnq/ IwZSje/WTo6QJAuXz0saUYMb0lY3w54xGhxrqe51x3b3pNIOf9FvHaZW+YSNj8npxTSd x3YbbIfyzxxzqW2MlNT1a8lXAa/yM3komP6lUfQcDN2ZeD9SCwE8hsyib1hJuLRgjqRR Gt28iKhJVlBkFAR1gDvbKzvE4ylM+o33Qx0NzvQmo6XGtjssgI5SuG5MZ/3N+H5DKQAO B5lA== X-Forwarded-Encrypted: i=1; AJvYcCXdmNY3SkW1pAulRK7z4VJZOJxN2RTTGJbKKHiGsYhAuYLfne5FGaaKRmvnKavZ8SBUpE2UVA8Qaxw0onDSCQ8hcHIWx+ZmWVA85cQB X-Gm-Message-State: AOJu0YzJ3bksYX8BcB7j5YS9r2fjD1E8/OdVDgJ2d2DN6VTWVO4fm7Js mn5Iiy5wW7IyxpgZzBg1y0s27sMdhzNjz82P+CwkX44W2nLPvkmoeQ1eT07Llw== X-Received: by 2002:a05:6a20:d90c:b0:1a0:841a:64c3 with SMTP id jd12-20020a056a20d90c00b001a0841a64c3mr928295pzb.39.1708018689482; Thu, 15 Feb 2024 09:38:09 -0800 (PST) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id e4-20020aa79804000000b006e02da39dbcsm1665651pfl.10.2024.02.15.09.38.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 09:38:09 -0800 (PST) Date: Thu, 15 Feb 2024 09:38:08 -0800 From: Kees Cook To: Rae Moar Cc: frowand.list@gmail.com, davidgow@google.com, Tim.Bird@sony.com, shuah@kernel.org, brendanhiggins@google.com, dlatypov@google.com, tytso@google.com, gustavo.padovan@collabora.com, ricardo.canuelo@collabora.com, corbet@lwn.net, kernelci@lists.linux.dev, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [KTAP V2 PATCH v3] ktap_v2: add test metadata Message-ID: <202402150937.3CAD9E69D5@keescook> References: <20240215171859.1907668-1-rmoar@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240215171859.1907668-1-rmoar@google.com> On Thu, Feb 15, 2024 at 05:18:59PM +0000, Rae Moar wrote: > Add specification for test metadata to the KTAP v2 spec. > > KTAP v1 only specifies the output format of very basic test information: > test result and test name. Any additional test information either gets > added to general diagnostic data or is not included in the output at all. > > The purpose of KTAP metadata is to create a framework to include and > easily identify additional important test information in KTAP. > > KTAP metadata could include any test information that is pertinent for > user interaction before or after the running of the test. For example, > the test file path or the test speed. > > Since this includes a large variety of information, this specification > will recognize notable types of KTAP metadata to ensure consistent format > across test frameworks. See the full list of types in the specification. > > Example of KTAP Metadata: > > KTAP version 2 > #:ktap_test: main > #:ktap_arch: uml > 1..1 > KTAP version 2 > #:ktap_test: suite_1 > #:ktap_subsystem: example > #:ktap_test_file: lib/test.c > 1..2 > ok 1 test_1 > #:ktap_test: test_2 > #:ktap_speed: very_slow > # test_2 has begun > #:custom_is_flaky: true > ok 2 test_2 > # suite_1 has passed > ok 1 suite_1 > > The changes to the KTAP specification outline the format, location, and > different types of metadata. > > Reviewed-by: David Gow > Signed-off-by: Rae Moar Thanks for the updates! Reviewed-by: Kees Cook We'll need to update the test runners to adjust their outputs... -- Kees Cook