From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796523748; b=Br7eVfMoFBtMiRV2aOWYJUCxKFc4Irq5ntMfaLOyyKCNQnc82cRLBAha0IufMcQr5e08 T9viNjPq9o2UPCj+ncT6avLUV1hCti7sciaptTkpoVuyHTSL3ZaTo4lCLOcgGsRqHg9lR AD1Dh2TwRab5+njVmumn5i5+V8ZpJhSqLJ4+ge6wrwJ19Ci5YFFmaz8z44fst4xPzVvKi XFA4pMwIuN+JXrOXYvfC/wZzdDED1OMnLuZZr5YYkxjIHtHCAzh6kbFG/NVxVfYh9RKTk PiWmpFPv+I9plqbm+1ltNHBLk3Da1abHWdymJo101BHGHbipuY2sr9BUryFPUWXtzDg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796523748; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=UyiZTFgdmmaI2hxQ5mk+bF5+yDX+7qJnpTruqGVe1B0=; b=Lvpaw9+yDAUKgw6pkJjt1XbnzzQLuI/36QPiLvFi6p9Hw7v08IinUbaf+MhHFesz+R1X gFoSYVuJhA0oZVHptRc3l+6sNKQ30wRkrC1iCT3/0zQNBZS9yDIJ/CfInOWRGzkywYrUv n7toLGtBB7gn9TWj1mJIViqWRueNreRuJVp9D9Eg9mna9mdX6lOswipj3P0x3/DHEK74w RM0JSY7z3SNcED2Q5U8IWGCwG6MSjpBCk6+WxZ/8Wy0QQa8T2xnEZwr834zZeXWivMpEU u11baFFZaN0Kmo32P+JhFbER/pHeX0+4jBG5o8EeB304kHYXzFWhzCWd8qg/eWJCgHg== 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=hzzljLaS; arc=none smtp.remote-ip=100.103.45.18 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 05469606A31F for ; Sun, 6 Dec 2026 02:22:27 +0000 (UTC) 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=hzzljLaS Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B6AD1F0092B; Sun, 6 Dec 2026 02:22:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796523747; bh=UyiZTFgdmmaI2hxQ5mk+bF5+yDX+7qJnpTruqGVe1B0=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=hzzljLaSBPZ4DDv6zG52jcO9bPno4yd6saeJbJJ2A4aTUKJyNvQV03ldQKStbfC6O EKj5CSfVCphU9POF6W0ImFEj7PuNfd46UEu6Ej8Ik5rVSFX0gCSgNNicGmzVU2WnM5 bsGYWULJ+VJz3Ln41anMkFRO3RNBWaQOUC0lNwMBK049XIjV8JsEeyTmiHmvQAUCjI pz1kHqP2sUQ4JU2/kvWY04LPsZsm7+FM7HrDM+SXCLpSNc17pfikMwYypEeNnffxdw NiUs3vdTL6QH10Sht3Wc5/l/3zybAP7FcvdmaGu1csLJCMqt8z56MkXZKC8CbSCzhA kR3buRdlWVXMg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 8/8] perf tests make: Only run shellcheck, mypy and pylint in pure builds Reply-To: sashiko-reviews@lists.linux.dev To: "Ian Rogers" Cc: linux-perf-users@vger.kernel.org In-Reply-To: <20261206021147.3036701-9-irogers@google.com> References: <20261206021147.3036701-1-irogers@google.com> <20261206021147.3036701-9-irogers@google.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 06 Dec 2026 02:22:27 +0000 X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Medium] perf tests: disabling linters in make_kernelsrc leaves broken pure checks - [Low] perf tests: clean and auxiliary sub-makes omit NO_LINT_OPT version bypass -- commit 748bfa2fc848f5e6768659f6b773e357691e78b1 Author: Ian Rogers perf tests make: Only run shellcheck, mypy and pylint in pure builds This commit passes NO_SHELLCHECK=3D1 NO_MYPY=3D1 NO_PYLINT=3D1 to every bui= ld target in tools/perf/tests/make except make_pure and make_pure_O so the linters only run once in-tree and once out-of-tree. > diff --git a/tools/perf/tests/make b/tools/perf/tests/make > index 491a0813b6307..dbb6407d0506f 100644 > --- a/tools/perf/tests/make > +++ b/tools/perf/tests/make > @@ -394,11 +394,16 @@ MAKEFLAGS :=3D --no-print-directory > =20 > clean :=3D @(cd $(PERF); $(MAKE_F) -s $(O_OPT) clean >/dev/null && $(MAK= E) -s $(O_OPT) -C ../build clean >/dev/null) > =20 > +# Only run shellcheck, mypy and pylint in the pure build so build-test d= oesn't > +# repeat identical static checks on every build configuration. > +NO_LINT_OPT :=3D NO_SHELLCHECK=3D1 NO_MYPY=3D1 NO_PYLINT=3D1 > +lint_opt =3D $(if $(filter make_pure make_pure_O,$1),,$(NO_LINT_OPT)) [Severity: Low] Should clean, python_perf_target, and feature-dump also pass $(NO_LINT_OPT)? In tools/perf/Makefile.perf, the SHELLCHECK probe is unguarded and the MYPY and PYLINT probes only check ifneq ($(force_fixdep),1), which is still true for clean. Every $(call clean) invocation therefore still runs the linter version probes (including pylint --version) on each build configuration. Defining NO_LINT_OPT earlier and passing it to those sub-makes, or gating the probes on config=3D1 in Makefile.perf, would eliminate the remaining probing. > $(run): > $(call clean) > +@TMP_DEST=3D$$(mktemp -d); \ > trap 'rm -rf $@ $$TMP_DEST; exit 130' INT TERM; \ > - cmd=3D"cd $(PERF) && $(MAKE_F) $($@) $(PARALLEL_OPT) $(O_OPT) DESTDIR= =3D$$TMP_DEST"; \ > + cmd=3D"cd $(PERF) && $(MAKE_F) $($@) $(call lint_opt,$@) $(PARALLEL_OPT= ) $(O_OPT) DESTDIR=3D$$TMP_DEST"; \ > printf "%*.*s: %s\n" $(max_width) $(max_width) "$@" "$$cmd" && echo $$c= md > $@ && \ > ( eval $$cmd ) >> $@ 2>&1; \ > echo " test: $(call test,$@)" >> $@ 2>&1; \ [ ... ] > @@ -434,7 +439,7 @@ endif > +@TMP_O=3D$$(mktemp -d); \ > TMP_DEST=3D$$(mktemp -d); \ > trap 'rm -rf $@ $$TMP_O $$TMP_DEST; exit 130' INT TERM; \ > - cmd=3D"cd $(PERF) && $(MAKE_F) $($(patsubst %_O,%,$@)) $(PARALLEL_OPT) = O=3D$$TMP_O DESTDIR=3D$$TMP_DEST"; \ > + cmd=3D"cd $(PERF) && $(MAKE_F) $($(patsubst %_O,%,$@)) $(call lint_opt,= $@) $(PARALLEL_OPT) O=3D$$TMP_O DESTDIR=3D$$TMP_DEST"; \ > printf "%*.*s: %s\n" $(max_width) $(max_width) "$@" "$$cmd" && echo $$c= md > $@ && \ > ( eval $$cmd ) >> $@ 2>&1 && \ > echo " test: $(call test_O,$@)" >> $@ 2>&1; \ [ ... ] > @@ -453,15 +458,15 @@ ifneq ($(O),) > endif > =20 > make_kernelsrc: > - @echo "- make -C $(PARALLEL_OPT) $(K_O_OPT) tools/perf" > + @echo "- make -C $(PARALLEL_OPT) $(K_O_OPT) $(NO_LINT_OPT) = tools/perf" > $(call clean); \ > - ($(MAKE) -C ../.. $(PARALLEL_OPT) $(K_O_OPT) tools/perf) > $@ 2>&1 && \ > + ($(MAKE) -C ../.. $(PARALLEL_OPT) $(K_O_OPT) $(NO_LINT_OPT) tools/perf)= > $@ 2>&1 && \ > test -x $(KERNEL_O)/tools/perf/perf && rm -f $@ || (cat $@ ; false) > =20 > make_kernelsrc_tools: > - @echo "- make -C /tools $(PARALLEL_OPT) $(K_O_OPT) perf" > + @echo "- make -C /tools $(PARALLEL_OPT) $(K_O_OPT) $(NO_LINT= _OPT) perf" > $(call clean); \ > - ($(MAKE) -C ../../tools $(PARALLEL_OPT) $(K_O_OPT) perf) > $@ 2>&1 && \ > + ($(MAKE) -C ../../tools $(PARALLEL_OPT) $(K_O_OPT) $(NO_LINT_OPT) perf)= > $@ 2>&1 && \ > test -x $(KERNEL_O)/tools/perf/perf && rm -f $@ || (cat $@ ; false) [Severity: Medium] Does disabling the linters in make_kernelsrc and make_kernelsrc_tools leave build-test silently passing on shellcheck, mypy, and pylint failures? Both make_kernelsrc and make_kernelsrc_tools chain && directly from $(MAKE) into test -x, so they previously failed on linter errors. In contrast, $(run) terminates ( eval $$cmd ) with a semicolon, and $(run_O) ends its && chain with a semicolon after echo before $(call test_O,$@), so both discard a non-zero exit status from make. In tools/perf/Makefile.perf, the shellcheck, mypy, and pylint targets are independent prerequisites of all: listed after $(OUTPUT)perf. When perf links before a linter target fails, test -x .../perf still succeeds, rm -rf removes the log, and make_pure or make_pure_O exits 0. Chaining && from ( eval $$cmd ) through echo into $(call test,$@) and $(call test_O,$@) in $(run) and $(run_O) would preserve linter failures. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261206021147.3036= 701-1-irogers@google.com?part=3D8