Article View: linux.kernel.netdev
Article #23998Re: [PATCH net-next v3 10/12] selftests: tc-testing: run dependsOn probes outside the test namespace
From: netdev-bot+sashiko
Date: Sat, 28 Nov 2026 23:57
Date: Sat, 28 Nov 2026 23:57
74 lines
10983 bytes
10983 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] This patch adds a new stage string, 'probe'.
--
selftests: tc-testing: run dependsOn probes outside the test namespace
This patch runs a test's dependsOn probe under a new "probe" stage instead
of the "execute" stage. nsPlugin no longer prefixes the probe with
"ip netns exec tcut", so the probe runs in the base namespace. The README
stage list and AddingTestCases.txt are updated to match.
[ ... ]
> diff --git a/tools/testing/selftests/tc-testing/tdc.py b/tools/testing/selftests/tc-testing/tdc.py
> index 511d66c36a2a0..541caf984519f 100755
> --- a/tools/testing/selftests/tc-testing/tdc.py
> +++ b/tools/testing/selftests/tc-testing/tdc.py
> @@ -399,7 +399,7 @@ def run_one_test(pm, args, index, tidx):
> if 'dependsOn' in tidx:
> if (args.verbose > 0):
> print('probe command for test skip')
> - (p, procout) = exec_cmd(tidx, args, pm, 'execute', tidx['dependsOn'])
> + (p, procout) = exec_cmd(tidx, args, pm, 'probe', tidx['dependsOn'])
[Severity: Low]
This isn't a bug, but should the plugin documentation also list the new
'probe' stage? With this change, every plugin's adjust_command() can now
receive 'probe' through exec_cmd()->pm.call_adjust_command(). The patch
adds it to the README stage list only.
The stage list in the ADJUST section of
creating-plugins/AddingPlugins.txt still reads:
The stages are represented by the following strings:
'pre'
'setup'
'command'
'verify'
'teardown'
'post'
The commented template in TdcPlugin.adjust_command() also has no 'probe'
case:
# if stage == 'pre':
# pass
# elif stage == 'setup':
# pass
# elif stage == 'execute':
# pass
...
The in-tree nsPlugin and valgrindPlugin both pass 'probe' through
unchanged, which is what this patch wants. A new plugin written from
either of these references would not know it can get 'probe' for
dependsOn commands, though.
Could AddingPlugins.txt and the TdcPlugin.py template be updated in the
same way as the README?
> if p:
> if (p.returncode != 0):
> res = TestResult(tidx['id'], tidx['name'])
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261124221758.3230929-1-toddfreed%40meta.com
Technical Details
Message-ID:
<179591023017.3135.10028676935497499761@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.endofthelinebbs.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373295-linux-kernel-netdev=dewy.ruReferences:
<20261124221758.3230929-11-toddfreed@meta.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.endofthelinebbs.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373295-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v3 10/12] selftests: tc-testing: run dependsOn probes outside the test namespace Date: Sat, 28 Nov 2026 23:57:10 +0000 Organization: Usenet Network Message-ID: <179591023017.3135.10028676935497499761@kernel.org> References: <20261124221758.3230929-11-toddfreed@meta.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1062319"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:DYLPlZLo+AVhn6TexnNxzivAubw= sha256:4JF0WxPa2IX6HBUXbV5ACAItuQkrQl3PnLTOQ5TkJFw= sha1:Cr7eWXVrVkCxE92zTpJea1nDVr8= sha256:LxqBShgzll7HEvwXD6lnW/mj2RdjuvQTPvpK3jhXe94= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 207D8125F8D; Sun, 29 Nov 2026 02:57:31 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8-YlRhH7Rj8z; Sun, 29 Nov 2026 02:57:27 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-373295-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 6779B125F88; Sun, 29 Nov 2026 02:57:19 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 8F3BA27581; Sat, 28 Nov 2026 23:57:16 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795910234; b=mgOC0zJ0gPW4bnDewQShBz2cEj4Xrg3t4qwJEnSWVeibx3z2woLgyd93XlJ7TIlLV0tS 2557mUoTxgJjiMHkkcHRsfVv/1w96Dmxf3knlSpdWWkuYwHzBdoStJyVkvUVv1jDUMlv9 of+/jEbqZXhKOhoG0QbK9AqonjQNuWqIsXwMlavEXPbZ5FesXx12UuS2qpmxQqriV7mBy zST5fXCuJKIFkT7RTmiUMYBP9VWrAQ9ZcC/Nc69aEOISEqYtRgTeZ4STYAFNBOAJLGUVX kiDoVWrfRGZJQximCith6Vttrd34tAiEwQtu/S/cmjMJ+YPfP4Yr6TDYLOWJt3b+yqw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795910234; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=UjKVzm3j3oXlGFYx0Sm7epGv/NoLD/6JuZTATBb0mh4=; b=4VhcV6O36WPVPbXQnilciekLNRcXMtLpoC5CX4XZN+6rF4UtwvuZiUNAV9U41SjIDigi 3z7eGrlXhQUT1CEFwRXHh7SPVrccZPuPnBK1lZm6HkdXTLqwi+KxR2zen/NVLA21Ok7jw RiyrN7x0+w9VaDy8WMyOjYq4q6Sx++2CN0oINKZYeWvCI6atVokMMqfLh/FGyT7QQgSxH h+q+tj4tSkwXSl2ZoPirA3Fv9yDbmXOvPpzmU5eZenyqfdLjW7ho03S3o/HnilqFqDVe0 bLWrOIokYHyJc4JIBcbq043C6ph2VEcC74Yo3fXKAFqk0pOW2rDa9DCiRh5EfrY4IdA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KDc8JjDH; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8029606A335; Sat, 28 Nov 2026 23:57:13 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KDc8JjDH X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795910233; b=E35LeVsUqX2WKta5m+bMLl1tzkb3HxqjI/1um/MblE6bhNHH7X/QwDqCV4gHH+hAnj7l QXk1/F/mIK2CTdRB+WSb4OusmZzfo7a8rYbpXb6LYDjmhr+pLlPFeuDjTCc9AI7f0Dmn5 KUhbAVkn6610KWJxhVSgQw3Np19a4VcV1uSY7nnF8Bxsih7v5EXSxC/+i2hWhM/biGH8k 1AVNIiysq71JovoLBtcLb2c4pIa8ZVsotwF4hElLI6uxPXuVoYyVvcImNqspVIKYw6jzQ gFY8vsLh/Ge1EIeoCD9WaZLCvvhmAbI/6z5+hE4T3gPonPX/sgRtqRZh+5abAO41v2A== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795910233; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=UjKVzm3j3oXlGFYx0Sm7epGv/NoLD/6JuZTATBb0mh4=; b=W4bnXeWuJyoh5K1GR776C0ZWws35fJAqrdlBoLfgSLgVQLWWCvvpZn1ZZLw2Fs/RMw0/ MRxAhiuPmDgHgWH2FSNnWz/G8epBkMViP0HHhQ64TS94rBPajtSI/M8VU1JA+jMpdDKr7 RNd1ieDyLgalZPm5auxCoBQSrdGFM0jCt1/y7XlVgDn6XSrpw5k2HKgchpH2QR2PnkOUr +zAtjD21RNGlXPJknDrDlZbdFuNYvlgw8Wudl/NneV1kcYgSu9PLvbaU3KRBWw7QDXe5s qpQHIKHOcZASGwM8ELRG2RQXnmcGj5SYq+Z9WVQvJi6KRwuK9L+UX8XmumGNz1KRlyg== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KDc8JjDH; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0CD1D606A323; Sat, 28 Nov 2026 23:57:12 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DA101F00898; Sat, 28 Nov 2026 23:57:10 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795910232; bh=UjKVzm3j3oXlGFYx0Sm7epGv/NoLD/6JuZTATBb0mh4=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=KDc8JjDHSVikOZmKsiKZpIB3dN7Y5nvkyhApgDKmO/n8VoE1gPKpy+ef/e4vlGJ0M 2xnF/Vbh9hZCOSj4WfpVzvXUQxPFq/VQVM6FuzipEGtnvMIT/khYszazif/fEZIDcg JoZoHUf/sNt8QWKhT4G6QanVPJzOh4zHDLj2TbwwP8W33pXvdIOgx5OaGMisAJCU8V zX89qmzdqnHAelgb8U2g6/kIkaD9q4zt95yiCOdsj4slcP8TklQoJVqi9YRkvT4CGX Ms36JCewGXnaU0nzRaW/IO4tTFYWg3m+7y5sQU4FHyrrflFs6vL2cIXg2xH+K6vAl/ NC0ypp6GG+BBw== X-Cc: netdev@vger.kernel.org, davem@davemloft.net, andrew+netdev@lunn.ch, bjorn@kernel.org, borisp@nvidia.com, cratiu@nvidia.com, daniel.zahka@gmail.com, donald.hunter@gmail.com, dtatulea@nvidia.com, edumazet@kernel.org, kuba@kernel.org, jhs@mojatatu.com, jiri@resnulli.us, leon@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-rdma@vger.kernel.org, mbloch@nvidia.com, pabeni@redhat.com, pctammela@mojatatu.com, saeedm@nvidia.com, horms@kernel.org, tariqt@nvidia.com, weiwan@google.com, willemdebruijn.kernel@gmail.com, kuniyu@google.com, bpf@vger.kernel.org, ast@fiberby.net, qingfang.deng@linux.dev, toke@redhat.com, shuah@kernel.org, corbet@lwn.net, skhan@linuxfoundation.org, rdunlap@infradead.org, matttbe@kernel.org, dsahern@kernel.org, j.koeppeler@tu-berlin.de, hangbin.liu@linux.dev X-In-Reply-To: <20261124221758.3230929-11-toddfreed@meta.com> X-sashiko-severity: Low X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list