Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26677218rwd; Mon, 3 Jul 2023 13:12:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlHU80EYZuvrQUC2Jd2hicyNN+K3gfo1Lcb6ZV4mn8bIxwzdJt5rA8b+TBu+tF1imKtwhVmA X-Received: by 2002:a05:6a20:6a22:b0:12e:626a:7455 with SMTP id p34-20020a056a206a2200b0012e626a7455mr6749377pzk.58.1688415151677; Mon, 03 Jul 2023 13:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688415151; cv=none; d=google.com; s=arc-20160816; b=V6xrZhiovKeTJhDn2mnSGyETixp9TtE+h39cBKkIlEBrE9EDDSCwCG0G1l5/UMlZGM nzGw8MBN67eXX0tjwgLY4uYl0VlPDoQfd2tpWXGqg2VAmz7gzZi5uppjVeCWW7wZ2pPi J05QSb2UDODIxOF5ctHhBxMfRw7tVIIQ1y+Z4WRzYDp8Ha4OJD30Ny5r8Cc/WpkeVCZb G8pKRKVAviNcQVAzcV4zYKnJaD9Nl1q66XQE6omwUk/cMu+M8cPh88ilK5VknbzbsEYS M/HS7SNwBQI3cUE3YYj2cQ45A+ZcIXCkFtYtN1DMkOSQfi0gq1ijDZckIAloixqkq9eo J6cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EdLURxp2rO3MItJ7kVNR0xLW0NSGGqYojoX1f1jlDBE=; fh=68eopEWpX0pqVgsjYgkCBNZv/lZ8+8f9LaXdjhgogaw=; b=yJ7tAXsszljI2eC/BFbocXHSSksGbATP0Vrp/GvYTYEYn8tlVAScl/WU3ipnU9gJaK qL7wmX2CGqdnHClm8jqXk09uxWxUvuTqwhtyGggAku6e+/dOWZLb5eTGjd01YCIlZyE5 eotUESfMwJe/1G4Qw/GQQfeeGUFloasx0DICujgYZuz+uz5CtiXNFiBkdcVEln9sLXF9 OmblV4HG9pIzJwSLdm6X9KKOOAW1uAAfVkUoYwwi5Nxw08Dec/67ROHOEKYqS9XZyURw Nqi4/C2kJO96ZLC9sf56lEMvVgDshYNGoXeXUdCc826SF4oopacA6DtaET0ysrS3F0bC Wr/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HCrJpWy4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bk13-20020a056a02028d00b005539d3ab914si20311115pgb.694.2023.07.03.13.12.19; Mon, 03 Jul 2023 13:12:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HCrJpWy4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230367AbjGCT1K (ORCPT + 99 others); Mon, 3 Jul 2023 15:27:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230090AbjGCT1J (ORCPT ); Mon, 3 Jul 2023 15:27:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29157E5E; Mon, 3 Jul 2023 12:27:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id ADDF56101C; Mon, 3 Jul 2023 19:27:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25882C433C8; Mon, 3 Jul 2023 19:27:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688412427; bh=1sHzolJz+greNltpJ1b90I71j1+7uxRTyUkH13RNk6w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HCrJpWy4Gn4tvyVdAg3vht/JMyUo8PJFUwPFqoGXMzbUYm1aI70oiEqmiA+hOSp3v 2RVOdh0bQ5IHNLnVW0rkv3L7+K7QPAI+yJoOzhCKb9QlGvyPJYcEON9a6n6Bgqgr65 FgqJ70nWS98G+7L6UlE/ka2TS0hgP3HRqRf9tka/seu/1i/oCR9t6/Ad0FAEOqwJsl /B/Zmfj5wrMWLnCu41F1IDtwRzCk0wztrMKK6UE/hZ22E5C56+Y/7/1IOhOkNn4LuA foIR3AvJjs6jSG2ecDyJk9OWCn5CjJUwNnmyu9hBAJghZHFfQ4hqftlbLxCtCFhB18 D0eJ6GLDGIpEw== From: SeongJae Park To: SeongJae Park , stable@vger.kernel.org, gregkh@linuxfoundation.org, sashal@kernel.org Cc: David Gow , Daniel Latypov , brendanhiggins@google.com, rmoar@google.com, linux-kernel@vger.kernel.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, skhan@linuxfoundation.org, johannes@sipsolutions.net Subject: Re: [PATCH] kunit: tool: undo type subscripts for subprocess.Popen Date: Mon, 3 Jul 2023 19:27:04 +0000 Message-Id: <20230703192704.16500-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230610175618.82271-1-sj@kernel.org> References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi Greg and Sasha, On Sat, 10 Jun 2023 17:56:18 +0000 SeongJae Park wrote: > On Sat, 10 Jun 2023 12:15:55 +0800 David Gow wrote: > > > [-- Attachment #1: Type: text/plain, Size: 2275 bytes --] > > > > On Sat, 10 Jun 2023 at 03:09, SeongJae Park wrote: > > > > > > Hi David and Brendan, > > > > > > On Tue, 2 May 2023 08:04:20 +0800 David Gow wrote: > > > > > > > [-- Attachment #1: Type: text/plain, Size: 1473 bytes --] > > > > > > > > On Tue, 2 May 2023 at 02:16, 'Daniel Latypov' via KUnit Development > > > > wrote: > > > > > > > > > > Writing `subprocess.Popen[str]` requires python 3.9+. > > > > > kunit.py has an assertion that the python version is 3.7+, so we should > > > > > try to stay backwards compatible. > > > > > > > > > > This conflicts a bit with commit 1da2e6220e11 ("kunit: tool: fix > > > > > pre-existing `mypy --strict` errors and update run_checks.py"), since > > > > > mypy complains like so > > > > > > kunit_kernel.py:95: error: Missing type parameters for generic type "Popen" [type-arg] > > > > > > > > > > Note: `mypy --strict --python-version 3.7` does not work. > > > > > > > > > > We could annotate each file with comments like > > > > > `# mypy: disable-error-code="type-arg" > > > > > but then we might still get nudged to break back-compat in other files. > > > > > > > > > > This patch adds a `mypy.ini` file since it seems like the only way to > > > > > disable specific error codes for all our files. > > > > > > > > > > Note: run_checks.py doesn't need to specify `--config_file mypy.ini`, > > > > > but I think being explicit is better, particularly since most kernel > > > > > devs won't be familiar with how mypy works. > > > > > > > > > > Fixes: 695e26030858 ("kunit: tool: add subscripts for type annotations where appropriate") > > > > > Reported-by: SeongJae Park > > > > > Link: https://lore.kernel.org/linux-kselftest/20230501171520.138753-1-sj@kernel.org > > > > > Signed-off-by: Daniel Latypov > > > > > --- > > > > > > > > Thanks for jumping on this. > > > > > > > > Looks good to me! > > > > > > > > Reviewed-by: David Gow > > > > > > Looks like this patch is still not merged in the mainline. May I ask the ETA, > > > or any concern if you have? > > > > > > > > > > We've got this queued for 6.5 in the kselftest/kunit tree[1], so it > > should land during the merge window. But I'll look into getting it > > applied as a fix for 6.4, beforehand. > > Thank you for the kind answer, Gow! I was thinking this would be treated as a > fix, and hence merged into the mainline before next merge window. I'm actually > getting my personal test suite failures due to absence of this fix. It's not a > critical problem, but it would definitely better for me if this could be merged > into the mainline as early as possible. This patch is now in the mainline (e30f65c4b3d671115bf2a9d9ef142285387f2aff). However, this fix is not in 6.4.y yet, so the original issue is reproducible on 6.4.y. Could you please add this to 6.4.y? I confirmed the mainline commit can cleanly applied on latest 6.1.y tree, and it fixes the issue. Thanks, SJ > > > Thanks, > SJ > > > > > -- David > > > > [1]: https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git/commit/?h=kunit&id=e30f65c4b3d671115bf2a9d9ef142285387f2aff