From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 906A4C001B0 for ; Fri, 14 Jul 2023 02:25:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234072AbjGNCZb (ORCPT ); Thu, 13 Jul 2023 22:25:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229622AbjGNCZ3 (ORCPT ); Thu, 13 Jul 2023 22:25:29 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F5E7270B; Thu, 13 Jul 2023 19:25:27 -0700 (PDT) Received: from dggpeml500026.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4R2Fd30YvZzLnhR; Fri, 14 Jul 2023 10:23:03 +0800 (CST) Received: from [10.174.178.66] (10.174.178.66) by dggpeml500026.china.huawei.com (7.185.36.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 14 Jul 2023 10:25:24 +0800 Message-ID: Date: Fri, 14 Jul 2023 10:25:23 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.0.2 Subject: Re: [PATCH net 1/3] selftests: tc: set timeout to 15 minutes To: Matthieu Baerts , Jamal Hadi Salim , Cong Wang , Jiri Pirko , Shuah Khan , Kees Cook , "David S. Miller" , Paul Blakey , Marcelo Ricardo Leitner , CC: Pedro Tammela , Shuah Khan , , , , References: <20230713-tc-selftests-lkft-v1-0-1eb4fd3a96e7@tessares.net> <20230713-tc-selftests-lkft-v1-1-1eb4fd3a96e7@tessares.net> From: shaozhengchao In-Reply-To: <20230713-tc-selftests-lkft-v1-1-1eb4fd3a96e7@tessares.net> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.178.66] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpeml500026.china.huawei.com (7.185.36.106) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/7/14 5:16, Matthieu Baerts wrote: > When looking for something else in LKFT reports [1], I noticed that the > TC selftest ended with a timeout error: > > not ok 1 selftests: tc-testing: tdc.sh # TIMEOUT 45 seconds > > The timeout had been introduced 3 years ago, see the Fixes commit below. > > This timeout is only in place when executing the selftests via the > kselftests runner scripts. I guess this is not what most TC devs are > using and nobody noticed the issue before. > > The new timeout is set to 15 minutes as suggested by Pedro [2]. It looks > like it is plenty more time than what it takes in "normal" conditions. > > Fixes: 852c8cbf34d3 ("selftests/kselftest/runner.sh: Add 45 second timeout per test") > Cc: stable@vger.kernel.org > Link: https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230711/testrun/18267241/suite/kselftest-tc-testing/test/tc-testing_tdc_sh/log [1] > Link: https://lore.kernel.org/netdev/0e061d4a-9a23-9f58-3b35-d8919de332d7@tessares.net/T/ [2] > Suggested-by: Pedro Tammela > Signed-off-by: Matthieu Baerts > --- > tools/testing/selftests/tc-testing/settings | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/testing/selftests/tc-testing/settings b/tools/testing/selftests/tc-testing/settings > new file mode 100644 > index 000000000000..e2206265f67c > --- /dev/null > +++ b/tools/testing/selftests/tc-testing/settings > @@ -0,0 +1 @@ > +timeout=900 > I remember last year when I tested all the tdc cases(qdisc + filter + action + infra) in my vm machine, it took me nearly 20 minutes. So I think it should be more than 1200 seconds if all cases need to be tested. Maybe we should really optimize the parallel execution process of tdc. Zhengchao Shao