From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78CED3DE45C for ; Wed, 15 Apr 2026 15:40:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776267642; cv=none; b=nyBMCJusIqbZg8DNi4TNuTjHqWlBnR1bVqQDXDnB/bXtamQweeGAFtPT+q+c2BrMP1S3DRuKngjK9y0H+rNiOFpLm7G9DUZUMCh1ntu6V6UR9U+8TseCKqVNTCUUFmVieyzCPwHeIPg1a/23ld2XzRpMDEfbsUoeyNVMfkDcvho= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776267642; c=relaxed/simple; bh=peiaXFopgD2U2+byFyO3EYl1KnMQYZFQdtVvq5N8icM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=FflmnAuFnkrAfOTu4Y3bOKt7HjS49hIoMifct3DHNPdvDkElrtDjb5fD0rVRJgccasALAcXWB0xb4FM9DiEeZXUqyz2VdIMOJUeGdect7sGWP6QR0siuK+EzYUKsiswOOS1UfEB8HrHj+uCjH1WmLiBMAgm4xqMSZIvZFvjWOh8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XglkLSTl; arc=none smtp.client-ip=209.85.210.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="XglkLSTl" Received: by mail-ot1-f50.google.com with SMTP id 46e09a7af769-7dbd08144deso6288678a34.0 for ; Wed, 15 Apr 2026 08:40:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1776267639; x=1776872439; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=bRbU9EO4HkCghO3rFTcKaAJtXlf84b+M9U+wgEYVq24=; b=XglkLSTlxeLFgvXJvM/Vu282lSe+0DAJ2I/Qt+vIjTWprfzeo82P2n2ffXS2Q2vC4u hH4Mu256F5Ov6Lt4m5+ylnel5nq/EW1MJw34BI2FonBFBRzBaa7q0m9LJyMFFDEckjXk 24NEJOedkfropoyPlhOPsZVAz4pXzX6IkArzA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776267639; x=1776872439; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bRbU9EO4HkCghO3rFTcKaAJtXlf84b+M9U+wgEYVq24=; b=OyBZpHKTnHXQTNVkyWKac9fNX6tUjHaFxINLg9t+fp7Vj9ZpdQWqNW6Od3QksV6d2K mmVnDCjOf5fQb9Hav14zjrHIZJ7TtX669d7+Ri7z3aKmcKjY5g1VUrveBODmYa33d7Hi Sq3jAE6TzBKiff8ddmlzNh6UUZJ/PQN/WPCU/faMpZ8HERB0nKJf4SKawY+mT8Xvw0y3 qtLUjWj6DTZb5jVBXF2dPmsBPmH3OOT9ObtplI9Ntr5K4tFzPOH8IDm7GCgfmjDox5nE WPAZc6qJAjYI6oXmyuDKLNlmmXi5LkpnC+2Ia4VhnW60x1qM1vA+lauOHzri/ljgYRFq Zkag== X-Forwarded-Encrypted: i=1; AFNElJ81qiXaZd+nvb/RU1CNQ9fkguu8HQFMUlQgtjBqympxvPk+9nucSA3KO3IAqzXb0Zu3yqOpfx1883YmP4k=@vger.kernel.org X-Gm-Message-State: AOJu0YzYe80GAHRWgSdnhScHn/M1pd8GO+AMIMAYg55O8HMiXPlzq1XC yci/dqD8RPSo7NsnshOtwzH3hLcWDn6LChrUbV5lK4aL0/+/wUMC4zX5l3alltUUwXA= X-Gm-Gg: AeBDiev+T+1IoESWOrDqI21GzPGzf57Bnx8t3GLcPK47bUjjKBipcSI/X4ooOawvcjb ctaAsKC3VluSDJktBYub3XJG7qUEGr+vIfDb++mqKpZc1kzqYS+lWRANXFUQ1V8aU04ybHkWXIB uhW7g49xYXE0a2DqVyAIepQJvR6Aqk435CEIAKQSQlrm7vcjzKGu70YlBYvzFR/05GIOJcBN1K0 m/kRYnN8nkbEKYgv5usU9JidqEeza7YD7o1X5iKhwn5ttZ8RYZL0ONtBSAu3eXZRHziIt7RB9Dl 19HntEtw2OFSdXnRkYLuF6+BDGvd4YQcW3qKQBbuwilypjeiayaBqb4aHmrHuCI+LvHXA5MHqQe SUVUchrEeB1Mahv50nOUIXwdbYXOCNWujDEUJO8yGlbyNQRG/xBaoVWkCas4Ut7T/ZKHsuxIpqz Q5JrsoAZ9+rXnQLYBFuuKtIu41CdRRAZ0= X-Received: by 2002:a05:6830:6f85:b0:7db:b7ae:ef0b with SMTP id 46e09a7af769-7dc27e1a8fbmr12524416a34.24.1776267639310; Wed, 15 Apr 2026 08:40:39 -0700 (PDT) Received: from [192.168.1.14] ([38.15.57.99]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7dc76a333e8sm1470984a34.8.2026.04.15.08.40.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Apr 2026 08:40:38 -0700 (PDT) Message-ID: <3cdf8e79-7c59-4831-9b38-e9c2cef97fe1@linuxfoundation.org> Date: Wed, 15 Apr 2026 09:40:37 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 5/6] selftests: Preserve subtarget failures in all/install To: Mark Brown , =?UTF-8?Q?Ricardo_B=2E_Marli=C3=A8re?= , torvalds@linux-foundation.org, Shuah Khan Cc: Nathan Chancellor , Nicolas Schier , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Aishwarya.TCV@arm.com, ben.copeland@linaro.org, kernelci@lists.linux.dev, Shuah Khan References: <20260320-selftests-fixes-v1-0-79144f76be01@suse.com> <20260320-selftests-fixes-v1-5-79144f76be01@suse.com> Content-Language: en-US From: Shuah Khan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 4/15/26 07:58, Mark Brown wrote: > On Fri, Mar 20, 2026 at 03:29:20PM -0300, Ricardo B. Marlière wrote: >> Track failures explicitly in the top-level selftests all/install loops. >> >> The current code multiplies `ret` by each sub-make exit status. For >> example, with `TARGETS=net`, the implicit `net/lib` dependency runs after >> `net`, so a failed `net` build can be followed by a successful `net/lib` >> build and reset the final result to success. >> >> Set `ret` to 1 on any non-zero sub-make exit code and keep it sticky, so >> the top-level make returns failure when any selected selftest target >> fails. > > This patch, which is now in mainline as 7e47389142b8, is breaking a > bunch of CI systems - at least KernelCI, our Arm internal CI and my > personal stuff. It causes the equivalent of FORCE_TARGETS behaviour in > the top level Makefile, the prior behaviour where the exit status of the > top level Makefile ignores failures from individual directories is > desirable since by default we try to build almost all the selftests but > between quality issues and build time dependencies it's very common for > at least one of them to fail. With this commit unless the user has > configured a more restricted set of selftests it would be surprising if > we manage to get a successful build and install. > > As well as being a poor default due to the very high likelyhood of build > failures this also has the undesirable effect of causing a build failure > in one selftest to cause the whole install target to fail, meaning that > the build failure is escallated to a complete lost of coverge for all > selftests in common CI usage. > > This wasn't showing up in my -next build tests since I set FORCE_TARGETS > and explicitly choose a restricted set of kselftests which actually > build with my system and configuration. It was less obvious than it > should have been with the other systems since they did not expect there > to be a complete failure to generate a kselftest tarball and variously > masked the error or reported it in a manner that looked like an > infrastructure issue. I didn't see it when I did test on linux-next and my repo. I did install to catch problems. Sorry for not catching this. We can drop this patch. > > It would be really nice to get to the point where we can reasonably do > this but we're simply not there at the current time. At the moment if > people want to see build failures reported at the top level that really > needs to be opt in, we have FORCE_TARGETS for that. Good point - I will go look and see if we document this in kselftest doc and add it. Mark, would you like to a revert for this? thanks, -- Shuah