🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #4309

Re: [PATCH v5] test-lib: run EXPENSIVE tests one at a time

#4309
From: Kaartic Sivaraam
Date: Thu, 03 Dec 2026 15:27
58 lines
13081 bytes
On 12/3/26 15:08, Patrick Steinhardt wrote:
> On Wed, Dec 02, 2026 at 01:23:30AM +0530, Kaartic Sivaraam wrote:
>> Range-diff vs. v4:
>>
>> 1:  ad8fa8d872 ! 1:  2fcdeefff3 test-lib: run EXPENSIVE tests one at a time
>>       @@ t/test-lib.sh: test_missing_prereq=
>>
>>        test_external_has_tap=0
>>
>>      ++# Remove the lock only if it still names $1 as its owner, so that
>>      ++# a lock someone else has just taken is left alone.
> 
> I feel like this comment is a bit on the verbose side as it doesn't
> really provide much value over what the code already trivially tells
> you, but okay.
> 

Makes sense. I'll drop it.
>>      @@ t/test-lib.sh: fail_117 () {
>>       +			#
>>       +			# Another waiter may have taken it over since we
>>       +			# looked, so only remove it if it is still the same.
>>      -+			if test "$(cat "$expensive_lock_" 2>/dev/null)" = "$owner"
>>      ++			#
>>      ++			# Rarely, after a holder is killed, two waiters can
>>      ++			# both get past this check and run together.
> 
> Heh, it takes courage to claim that a race happens rarely. My experience
> is that no matter how unlikely a race, CI systems know to trigger that
> race often enough to annoy the hell out of you.
>

Haha. That makes sense. Will replace the "Rarely" part with "In some 
scenarios". Hope that reads better.
  >>      ++			if remove_expensive_lock_owned_by_ "$owner"
>>       +			then
>>      -+				rm -f "$expensive_lock_"
>>      ++				echo >&2 "# removing stale EXPENSIVE lock left by PID $owner"
>>       +			fi
>>       +			continue
>>       +		fi
> 
> It's a bit funny to say "removing" after you have removed the lock
> already. But providing that context can definitely be helpful, I'd
> assume.
> 

Good point. Will do a s/removing/removed/

> Anyway, my comments are really only just nits, so please feel free to
> ignore them. Other than that I'm happy with this version, thanks!
>

Cool. Thank you for the review!

-- 
Sivaraam
Technical Details
Message-ID: <d028eadb-90ff-4927-8f2b-0bce895d3db0@gmail.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76961-linux-kernel-git=dewy.ru
References: <20261119-ks-ci-long-test-hang-fix-v1-1-45c2fff6d9f0@gmail.com> <20261202-ks-ci-long-test-hang-fix-v5-1-aeb09e4dbc25@gmail.com> <axE4meb1_pNz7BTJ@pks.im>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76961-linux-kernel-git=dewy.ru
From: kaartic.sivaraam@gmail.com (Kaartic Sivaraam)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v5] test-lib: run EXPENSIVE tests one at a time
Date: Thu, 3 Dec 2026 20:57:46 +0530
Organization: Usenet Network
Message-ID: <d028eadb-90ff-4927-8f2b-0bce895d3db0@gmail.com>
References: <20261119-ks-ci-long-test-hang-fix-v1-1-45c2fff6d9f0@gmail.com>
 <20261202-ks-ci-long-test-hang-fix-v5-1-aeb09e4dbc25@gmail.com>
 <axE4meb1_pNz7BTJ@pks.im>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="2527553"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:EPO4BUlZI9S3HxipfA8YAkLG5a4= sha256:vAY9mNsnCSdew0qUZGahCUiq5GA/LThhj4TnEuS/dfA=
	sha1:V1hg8JDfjgIMsMC8HA/bOM+MvJI= sha256:rlqdlz6F2KoOB+sAuuHRd+fEvHbRAKDy3fSYxzAAwDI=
Content-Language: en-US
List-ID: <git.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 CEC9311799A; Thu,  3 Dec 2026 18:28:13 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.297
X-Spam-Status: No, score=-2.297 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, FORGED_GMAIL_RCVD=1,
	FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001,
	HEADER_FROM_DIFFERENT_DOMAINS=0.001, 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=gmail.com
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 evs2vVRhrb_0;
	Thu,  3 Dec 2026 18:28:11 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76961-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 05F571179A4; Thu,  3 Dec 2026 18:28:00 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 449232987D; Thu,  3 Dec 2026 15:27:54 +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=1796311672;
	b=UHGpoiPv3IntFWaYReBnQF+0SGF1Ube1TLV/0XF1b8CRz67u3RmgnjsD7jNemPyKa28u
	 GfIPqMbZbFc4F6IimdIlohNIDpgqOwUgWxlxTecvd+2G+i4MJb6AqBxxf4w9o+5IrNbwy
	 fCsYk3wfYNTp7Kos8lBP/FTfR/ymfIe4Q3s53YuMagpJuAoZIi2TQT6GWy4phgRGBL+iC
	 gY5uWDX045tvApESfpiNuOWaXSde3jwStznOM3kSDGxfyTmMPUMiVKAqkhzbr6U+Ptng8
	 eDYrCxJdKrAbfNc2IHFoeMMjNEh5n9H+EqCsngy8ViKAojRT0QMUxGqer9vtddmYLyA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796311672;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 Received:Message-ID:Date:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To:
	 Content-Type:Content-Transfer-Encoding;
	bh=ul3UnCiD+7mEoUE29GSWQmtr5opsk61KkqxfH/nNlyM=;
	b=DsNId/nFgtmfgJW185M6Z7Rls8VvTlbw+h8Z1YBvY0LGalatazEw7YEsuY3U8JF8TipL
	 pt/p1RvHQ/GoxIIU7f4e3K7OvTANjzyXnVJG1t8AZ5SyatNjYieX9gqObtZYahMPJBRX3
	 W+WebcLczqp1wDA3sq2rcAHbW9fSh/xg3m+0naQ3BwhcU2dvzbF8Rz+3CoSEQr8NFWeSp
	 4YiCCSKDl6XetiwZC890Isr1FH71FQodxbh44zhZZ4DOF+a7ADg6lqLrWOeObCCKNycbN
	 2mpVHTEtFzKkIZ/ddltbFDJgsAgGXFxRCGHAQ2OHMzkoXaKhuZTug2ocs/Y6XXmVcng==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=kNXeDys7;
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	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 8FA2B606A68F;
	Thu,  3 Dec 2026 15:27:52 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=kNXeDys7
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.175
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796311671;
	b=Nj6LkN1+a1o/PWNSfL7OiXT7ZkdbnV1UClNIYQqhnmgL6FA1X7g1kQv7debTKsukyF+9
	 k4rfnRxsha836kVAP5Iw7GPTmgGyJvnviLHyQw0ZcS2wCfGB+z+SWX5RKAZYj1PEP7wl+
	 BBOOAQX3jKrUZeLyEp/T9Gh3uTwbK+VUS56/GRTJW+/EKmjD4Qz1MlVX91aDqADiI45ix
	 sU1NEIcZnCChFd6KMubBMIS7NNjRbofKCXcz6I0g46FJzUAZLokrJNDZq+26JWcEgEpNp
	 cIPI/yPEhPE8CJEPyToJzUKFwSBTwxlpEhQqzX0BnADURLlZFwmK9QlfaTukWaj/iHA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796311671;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Message-ID:Date:
	 MIME-Version:User-Agent:Subject:To:Cc:References:Content-Language:
	 From:In-Reply-To:Content-Type:Content-Transfer-Encoding;
	bh=ul3UnCiD+7mEoUE29GSWQmtr5opsk61KkqxfH/nNlyM=;
	b=j+RrjwNXWeoYBI79kLtsvSDQSVxP/nsNqLzYJTPQf0O0Lge/0GV4Ki8LGmGAXqe9/Wej
	 oPWw8EuuszCMYwCfZESEtpcz8wHA5Oimh6x1LGh6MfoWOSGPYmNwTHYXTD8w7LGmC+qS1
	 DAXn46fnjA/RDZcUht1VWXmxiaa8l7VWGXHWjyh+qW6RdVCy56GFmgsR9/YQjiZ0suTZj
	 TuD9SPnE/xqX3Xbn1ElI8s5F230nQ1Qvc423RcFR6s47AHbfdMeyUOj9/5598DwnqvuPt
	 Yr/LjPy4Jem3+kt2PNZvLjtHoWhIw6eGMfP8XZimsIx5lAkjRsrib+Lm6A1A2kNJwEw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=kNXeDys7;
	arc=none smtp.remote-ip=209.85.210.175
X-Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 560A9606A322
	for <git@vger.kernel.org>; Thu,  3 Dec 2026 15:27:51 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 560A9606A322
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-8c4cc85a315so9232077b3a.0
        for <git@vger.kernel.org>; Thu, 03 Dec 2026 07:27:51 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1796311670; x=1796916470; darn=vger.kernel.org;
        h=content-transfer-encoding:content-type: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
         :content-type;
        bh=ul3UnCiD+7mEoUE29GSWQmtr5opsk61KkqxfH/nNlyM=;
        b=kNXeDys7kvpgRk/yocaydN1ZgLJmRINF84QfpudqrCnrRM1E624jUJxrXOGKTJwx65
         J0u86rtP8zWnHnEu6gFLS9wtxdKAJuVpHvW0Gy+IeSHxmibC1YMpCY0lb9q1g6P0HmUM
         qMfFYYnTky1SASRohv0iWd9ZUz3VS1oM1+NpGEitQdFX7XMXfCuWsCgBixGR8SfXwcwp
         INhaDWcaPKqrkA/tBx16hgxovYJ5AMBUJEnGJoJnjDswvz5sU6Or5yNCUopVgJKcNNx1
         7lQlFMf9H3EVyTIUrU51bg9r1afuCTAEgvJZiL4ca7CzQ35pUBzOMJv0xGjUwb6gcVxZ
         B/gQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1796311670; x=1796916470;
        h=content-transfer-encoding:content-type: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:content-type;
        bh=ul3UnCiD+7mEoUE29GSWQmtr5opsk61KkqxfH/nNlyM=;
        b=Baf0pYsuMlLo1ouqpk5ZuTm6GF5zpGCdppAIr1PGNkOWufoxAagRPhn2hdbm5+rgMb
         /k3bZVD8UvZRdEWFGQbCsggahIaylqgQdmJgOGerYX+Mjum1mwRV5TLOmKUkGASfcP0y
         TCq7Et4HLF+HAuEa66KqbD0YeNBOV0FH9URh0i2aG/6OFXyaVD4mHy+D9mL3jq2jHGAL
         aVu4J+HAps2bNga1gPohWEHzG9XD4UBi6i5GbrA0acVd0ixqLa+vTDpdGNPhkSQ5R9kS
         djRyG+RKJekO3Sc8eT7VXxLqIRTH9rSun1bPAC19N88v8wuPfBREllTelpXadk0n96ZC
         dJyQ==
X-Gm-Message-State: APuU4Z9GO++2WuNOB9ggA2koSVjrFgnB3nzmoaPCKJxgyLI2aMRkHUoj
	bTe9tNW/jLW5FGodf3npdABqyA4z5ssqiA5WE7AUvZhFHJGlNi/bYAv2
X-Gm-Gg: AZFdTZd8LjsJjZ/1oRfnf9gvsMXkHKPdKSQombGAxel2VvhYXOQM82SvCwHxQvaNVu0
	QE6AoNkZYcQCT1m6Y0cOGGch/r+MprFPB1FH4/xv5mHLy/K3xxuOTX6a4gjB8lHBePJKv9KEZvD
	59/5QKjd+NQH4ju6sjVISpkwNQNg/YQ9eR7metSoiMAKIxzFAbv4OnRuOm1eYoJbqeOvYJq3sC5
	e1FL/NCjUZmHQbS49tiIWX4fiLQzHUDfP3APDqnwmVlIkv/iKsOawRbM55cvEWq4SMoPae9nFzC
	WYjwYTOxuej90iNArClLfw0jGHgCJAMBTbIHJryk28tjMwjkvHHJZAkkspg+9GXUaP2az0tsBig
	PDOVR/aSAQfZFdHahycbLlSUzdiy2HhndGpd8lh5ldApwQ8UYN0eRD0awVRAq7YgnWebrMQgHjM
	tPs5xRvYEHRPyUpWxbQE/WDK6KGFK8AtYi6PNBylwKYUD6ZUxVPOrR2NVGRfMUoXWaO/37EobeJ
	f+g7JSjpUqXTas2PkNjsNHDH+orwMrvcPHQnMHwpyhGwpbQqAKT/wADQ7qWUAlmnjWBWBtB19RG
	psJ9scKuS/K0FiPXlfyRhafgGuvmZl54znZ7mkJZoA==
X-Received: by 2002:aa7:8dce:0:b0:8a0:3ed7:93a1 with SMTP id d2e1a72fcca58-8d9f00a1866mr8169702b3a.50.1796311670493;
        Thu, 03 Dec 2026 07:27:50 -0800 (PST)
X-Received: from [192.168.1.34] ([103.215.237.233])
        by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c872e457d1sm23527508b3a.30.2026.12.03.07.27.47
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Thu, 03 Dec 2026 07:27:49 -0800 (PST)
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list
X-User-Agent: Mozilla Thunderbird
X-Cc: Git mailing list <git@vger.kernel.org>,
 Christian Couder <christian.couder@gmail.com>,
 Junio C Hamano <gitster@pobox.com>,
 Harald Nordgren <haraldnordgren@gmail.com>
X-In-Reply-To: <axE4meb1_pNz7BTJ@pks.im>