Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1867752ybh; Fri, 13 Mar 2020 08:47:01 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuQb7FAOKMqAJsk2q+xyfvoZs0ZrUINVDOhdNXJ76xQFaheYe7V/Ar/rxBBW5kUjsglgosU X-Received: by 2002:aca:4843:: with SMTP id v64mr7270205oia.13.1584114421001; Fri, 13 Mar 2020 08:47:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584114420; cv=none; d=google.com; s=arc-20160816; b=zD5sMdHGGc8z/rancKQb2anVYS4j9TFiOgVUpBaUGTtSpJbp1OpZWlLJ0EXFNWuAEd kR+/HjTppA2fuuZa12C3U9wZoYvAeoV+GRbLmoW459K2NWwnXLqAY+HhXquf3oMtwm1g FfDbU+6vO2RVEkAp8SzzDQBtcnmhH/I0cG67y2CapRKrMyo/4KAo4fMOJW6XuCRMRGJj V1vefdBsYpgM4QLFAT6eeunO+6Wi+LWV7YitH6ihjFtuMzcf5mTlQO80p3akfDVONSeh FaPe2l9QLU8piAu9hUxi3BMTxfXUWTvQnroLoO+slhqvJwCECj2I6lj0CiUwMQf7wU/u dr9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=6mEkMaoaGCKGfx86BPs2VA4rzkquf9yhFc1OFH37Vd0=; b=0HFJgn21Cdgm67YK3EDJcyNpgxKwFDJJ+1yu8yYJ0NWc0r5BXHreANcyFOv82dETD8 6OLMxUJ1DP3UsImdVm9yJhiByNOEIVkW/aA0xaFy4iizJX6MmGhXlNr2X+l0iE6DkhOp UXLIBnR48+00OYQOlTSNKsOsHmfAiN6s7nztOMW55RyRxXPHGQZ7IzH6kjZphcZwaEM9 8/6G2SC9q4R0EuQpYmrTVF1k+6HDMMo1eqTMDlu2HfmQJ+jpUC2Nr7+SS7ybfNBLJa7u CtoqYM49qUYSCXuhxoT0dr8Bm7q0iDft4G5weu7bmNtx5qFrNQ5hU95bGVsQVg7AOWfR ZqRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=D3DD6qqK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s2si5129169otd.184.2020.03.13.08.46.49; Fri, 13 Mar 2020 08:47:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=D3DD6qqK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727080AbgCMPp4 (ORCPT + 99 others); Fri, 13 Mar 2020 11:45:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:50058 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726926AbgCMPpz (ORCPT ); Fri, 13 Mar 2020 11:45:55 -0400 Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net [24.9.64.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DF5E920724; Fri, 13 Mar 2020 15:45:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584114355; bh=/N1wgZESVKWP6KVjaSbiwILH85i8xFK95LFFyo4x1rE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=D3DD6qqKms7TlPEM19TNtCICsddIc5yjc0fPsOHqZPjCg6WKD+DgYgCS+1XRBAmNN HRdVgTJlHagJl727dl3lDQQCGQCu+X/vcpwxqYa4CLMoICBWruIilp8v/zykq3TZOk P6HBO+KYOjJVSOegcXgBT3z1N69A4EK2S0T4M3T4= Subject: Re: [PATCH] kunit/kunit_kernel: Rebuild .config if .kunitconfig is modified To: Russell Currey , Brendan Higgins , David Gow Cc: SeongJae Park , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , Linux Kernel Mailing List , SeongJae Park , Theodore Ts'o , Bjorn Helgaas , shuah References: <20200205021428.8007-1-sj38.park@gmail.com> <009fe3f5-7b27-46c4-90a7-ff97cbd8c931@www.fastmail.com> From: shuah Message-ID: Date: Fri, 13 Mar 2020 09:45:40 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <009fe3f5-7b27-46c4-90a7-ff97cbd8c931@www.fastmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/5/20 3:09 PM, Russell Currey wrote: > On Thu, Feb 6, 2020, at 7:00 AM, Brendan Higgins wrote: >> On Wed, Feb 5, 2020 at 9:58 AM David Gow wrote: >>> >>> One thing we'd like to do with kunit_tool is to make its functionality >>> a bit more independent: in particular, allowing the configuration, >>> running the kernel, and parsing the results to be done independently. >>> >>> If that's the case, it may make sense for "kunit.py run" or similar to >>> not do anything with the .config, and to relegate that to a separate >>> "configuration" step, which would allow someone to modify the >>> configuration themselves (e.g., using make menuconfig) and re-run the >>> tests, but also allow the config to be explicitly regenerated when >>> helpful. >>> >>> Exactly what that'd end up looking like (and to what extent we'd still >>> want to support a single command that'd do both) are still up in the >>> air: but I think a general "separation of concerns" like this is >>> probably the right path forward for kunit_tool. >> >> You and I have talked about splitting up kunit_tool's functionality >> before. I agree with the idea. >> >> I imagine it that we would have >> >> - configuration >> - running tests >> - dmesg/TAP parsing >> >> as separate runnable scripts. I think that would make it a lot easier >> for people with various test bed setups to reuse our code in their >> test harness. >> >> Nevertheless, I think it would also be nice to have, as Ted has >> previously suggested, a short easy to remember one line command that >> just works; it is easily said, and much harder to do, but I think it >> is at odds with the separation of functionality. I guess one solution >> might just be to have these three separate tools, and then the classic >> kunit.py script that combines the functionalities in a single step, or >> as Ted suggested we could have some sort of default "make kunit" >> command or something like that. I am not really sure what is best >> here. >> >> It doesn't address the problem of separation of functionality in >> anyway, but one way we could achieve the idea of having a command that >> just works, is by putting a line in MAINTAINERS file entries that have >> a command that a maintainer expects a submitter to run before sending >> a patch to LKML. That might at least make it possible to hack together >> a single line KUnit command for every relevant MAINTAINERS entry. >> (Obviously there is no reason we have to do this particular idea just >> for KUnit. We could do this for other tests as well.) Russel, I think >> this was your idea at LCA? > > Hi Brendan, it wasn't me, it was someone in the audience during questions in my > testing talk. I don't recall who. > > They were suggesting a script like get_maintainers - i.e. get_tests - that for a > given file/patch/commit it gives you a suggested set of tests, whether that's > KUnit you can run there and then, or selftests you can run once it's booted, > or maybe external test suites that are relevant. > I like this idea of get_tests type script that could be run separately as well as part of check_patch or get_maintainers will serve as a reminder or hint to patch submitter. We have some pieces in the MAINTAINERS file now. Selftest files are usually listed under subsystem entries. get_tests could leverage that and we will definitely more information to for a complete set of tests for a subsystem. thanks, -- Shuah