Article View: linux.kernel.git
Article #3969Re: [PATCH v2] test-lib: run EXPENSIVE tests one at a time
From: Kaartic Sivaraam
Date: Fri, 27 Nov 2026 13:59
Date: Fri, 27 Nov 2026 13:59
29 lines
12323 bytes
12323 bytes
On 11/26/26 01:51, Junio C Hamano wrote: > Kaartic Sivaraam <kaartic.sivaraam@gmail.com> writes: > >> That's a good catch. I suppose setting the have_expensive_lock_ variable >> before writing the pid to the file, the issue should be sufficiently >> averted. That's because release_expensive_lock_ would proceed with >> removal of the directory even if we fail to write the pid file. >> ... >> I'm not sure if we need to go down the rabbit hold of fixing those too >> without actually facing those issues. I suppose it may be better to get >> the jobs running with a version of the patch that includes the above >> changes and look into further changes as we notice any more issues. I >> would love to hear your thoughts. > > If we open ourselves to a possible deadlock, then it will be a serious > regression. If our locking is leaky or buggy and allows multiple > processes to run simultaneously, that is the same as the status quo, so > as long as we kill the deadlock this proposed version introduces in the > updated version, I will be happy. > Okay. I'll try to send a v3 with another variant of this which tries to avoid deadlocks as much as possible by using a different mechanism for the locking. I suppose we may have to trade-off on the "only one test runs" guarantee as a consequence. -- Sivaraam
Technical Details
Message-ID:
<d10dd696-789c-4c0c-ab6a-ee71f29ecb92@gmail.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76516-linux-kernel-git=dewy.ruReferences:
<20261119-ks-ci-long-test-hang-fix-v1-1-45c2fff6d9f0@gmail.com> <20261119-ks-ci-long-test-hang-fix-v2-1-37011c08380d@gmail.com> <xmqqpkw0rp8i.fsf@gitster.g> <781ae43f-7831-4aa7-a7a0-aee069950eac@gmail.com> <xmqq8q2g1x21.fsf@gitster.g>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76516-linux-kernel-git=dewy.ru
From: kaartic.sivaraam@gmail.com (Kaartic Sivaraam)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v2] test-lib: run EXPENSIVE tests one at a time
Date: Fri, 27 Nov 2026 19:29:12 +0530
Organization: Usenet Network
Message-ID: <d10dd696-789c-4c0c-ab6a-ee71f29ecb92@gmail.com>
References: <20261119-ks-ci-long-test-hang-fix-v1-1-45c2fff6d9f0@gmail.com>
<20261119-ks-ci-long-test-hang-fix-v2-1-37011c08380d@gmail.com>
<xmqqpkw0rp8i.fsf@gitster.g> <781ae43f-7831-4aa7-a7a0-aee069950eac@gmail.com>
<xmqq8q2g1x21.fsf@gitster.g>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="744411"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:z/4aMly894Oh+RtqjwubYhbjalY= sha256:Ad4gjEVHzT1Z8D8R7GzcSSXEiZ6etEyrj/EO/5COqjE=
sha1:/3XmTdc8vqs0ZflUMlm0L5+aQ5s= sha256:b4pD7ivSxxkOOvNxmrsm7QnD9WyCWfqCYzmxMIStP9E=
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 18A9C125F5C; Fri, 27 Nov 2026 16:59:33 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.949
X-Spam-Status: No, score=-1.949 tagged_above=-9999 required=6.31
tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
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 sVQnbYMw_eAg;
Fri, 27 Nov 2026 16:59:30 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76516-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 C5582125F56; Fri, 27 Nov 2026 16:59:21 +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 1F6B947DFB; Fri, 27 Nov 2026 13:59:19 +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=1795787959;
b=OTI5sq0S2wgI5eqjHLfrzRk135Or/K9XyHzLlzHdXwc69tTiVac9uqp1urs7eh1kjVj4
Sz+dCCaBGmgoO4v9w7I3Cyz4M5PfgMyuq1S8eTmKLrGI+HU7dKzeW30CJB5qfuy4XvA2y
6HmLNwIP42MdgDjw5UCGsgNqvUHDHIldxUxsl+zUEqheZBi4txzvmTfejqWgxb0LKxuLW
ywqODsxqt0NCu8qdNHDdo2nrWhI5FTBCUttNpdWDmRhgrsTFWgCouX8+F73s8pgaLYLrf
bOus0Nn4rH3RkWR873JILNn6/SovXhw0JS6Bi3FcMcYYVDwv06V3HlrGmMh0ynUca5g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795787959;
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=zzCjbOku17tAzASZsN2+oZSKiwjhlUZcXkUuyMvLq4s=;
b=lXbz36KkOoACxjv8EN98nC74cPjk70bieoqmuSicM8WMwSnz3zVvIzIiYwGgQFCyfRi6
xq8feKGljr2sO/Ku0eC5X4425Xp6rk4h39Gsx7f909jdhF5gLH+OR6s77q7M9MYYvQpiv
E01xnF0rIZoC/VnnYr0IhhCT5z9uuSftg/obp2Z/ljDl0oTx/1af2M6oyyEFokBaO+jQj
JiBgRROnTbZGalbZzBHG7+HiMKeQA/7uDF28W4PC/f4RCO2Ur1P5cgCev//8JaeV8iywI
HSQEvvaSXaf5U812HxiIxOt8mb7ag/jtBtk0q7wijM3fyVieTK6KKmZ/baKLS8NXLIg==
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=m9F2yrrc;
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 EC0CD606A31E;
Fri, 27 Nov 2026 13:59:18 +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=m9F2yrrc
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.174
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795787958;
b=RdeImg3cgi0scOOiqASBYuPGF5zsfYsxgA4EbCrnvz66EVleRT76TZcgew+HIRyQRvXu
MqQv7oSnn3ml5tgLhcU1k81TG5jgt2wVvxUmC06qc5Smg4gX8DK8xKZ8slFNScFCHeVlU
BBV6nhIvmBcogcMKa0d5fGz/irkciL2eF/7mQOSWa3koQAythdcJLaT1hJIoxD1brZjEN
U3kIiuFCICpbTUt5msDcVTx1I135GxwsCCiD0wrHwhVcxDK1m3rB6oqaGT2xXUuGSJDEk
ILB1wwAVlk0dnWz4UQWlAUtFooTXNyxqSgg5oKWl47EsMUKQRnRWxZ8W7g+3QRxddlg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795787958;
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=zzCjbOku17tAzASZsN2+oZSKiwjhlUZcXkUuyMvLq4s=;
b=q/VYr6P/Zblx/gA0h7v32EqrjCWF1iJ38xeNwxQe5djAkUQISN3kVMBfs/0/nvvm5WFs
Gm8ePsoLLt7WVXu1wl2P4CRkzX2RE3n7f3oRnYRpN/FGoUBv1kuqtxOsBPOXKfwsx6SC5
ce+dc9Dk7Ct89zBljQ+KMzBf/rFojkqEyCzpQpExN0K01vHMxxk/jduLloJ8hqpoQi9dl
3EyeqfbJ+fI4Bn8s7V19fHOH/Gp3YFSAazmBuf+NqEBCElncfltR65pnGei4mq9EHYCoK
k5u3hNV09t/FMusmOi0QDpIQtYAkFZKbVnJ2TkMERvurbqpSIxhF9Mf39i4AMqLEvtQ==
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=m9F2yrrc;
arc=none smtp.remote-ip=209.85.210.174
X-Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174])
(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 C21F9606A324
for <git@vger.kernel.org>; Fri, 27 Nov 2026 13:59:17 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C21F9606A324
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-f174.google.com with SMTP id d2e1a72fcca58-8a052aff9e9so5833885b3a.0
for <git@vger.kernel.org>; Fri, 27 Nov 2026 05:59:17 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1795787957; x=1796392757; 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=zzCjbOku17tAzASZsN2+oZSKiwjhlUZcXkUuyMvLq4s=;
b=m9F2yrrcPMd7IXHbGTphOO7jvRHpPYZqany6IGPTACTe9Yug+GTfwGSEq4d5heQXAw
Jf3X9EAyD5WpSMqKxND9ad1f6dZeKZwj3WMo54nK61pdwjEVu37vpJ3gCo8lVlqrHrUD
3DT/kpTjA8ZQSEiuyMZ8Mx/84L9DOnFtMIpaWkxQSzCrgNsZxb+QoEC7sM8QVZ7TG+ul
AXxY7vnOCkSgfPkjuqX8GTsIRtENqhvIMehdLIdewUWF7ufzy1CUt/ld2QLIU7+8nNp1
5uigWMNvy8wTj2yFPcQd73P9BX+VKNBAIo8wyuOF0Pn3+GqXhaTUvtpd0cU3dT5WEg2i
Bvaw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795787957; x=1796392757;
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=zzCjbOku17tAzASZsN2+oZSKiwjhlUZcXkUuyMvLq4s=;
b=kW2rkolU0kzYxkdsMleidsEWxvfqiE1jxGPMkl247UhWkA1xK3+F0kS7syG2OEKThh
7dhsKAjdW6eCKyop/8Nk0dcZf6NhknFdh8NG8qYzrxn/b+H1ZzQm0S5Qmz/5lLoRVfJy
cKqY1nNIpBfNAHuelB3lgl5vk7W7fzbEoezXK6f34MKGu+sI9LJLlswU8ktr5p6PpIKZ
pU+SVckY4RLKjokHQLFeMy7oTZnITa6LLIVLktOAODtNcKsDtIDc3A2927Y8yHWeACcr
24mMvaES6gBLbuhK5cw+UFcrC4LgFLuSVZNey+cTU1JS5IJxgoVmcwScF/zn87ctDo7D
cvbQ==
X-Gm-Message-State: APuU4Z+Cs+Qox/WhyLEuWwytJb08gdsBGYNYAfdckS5jGYY5yKW7DeVr
vLwx+KkdDBK0i2GQAOvSDKmUGIQlX/6cMSNwJmFE6RnB0sd4Iett5We/31yNnQ==
X-Gm-Gg: AZFdTZdUPJqdJCVQghy0n6CKY3PeNZhpOnEHIA0Pxuumzfi4LpvuTSWpbuDXyyzXY8t
ZW9QWwspL5tmMEFRvsyqNJFS+qCNB4aszdb10ZTIN1BlwMgX/UOu5Catqz+dwNz3tJHVVFTqwDt
PPu6wARHRiusEucwzefWjWUgwhcKMuXYciyMQtsem+VWNIAUVGrp1IIXPnWA5hCIaG/TCgBmN1W
JhUwYVmeTaPeai9CCtOIc3c1wwpzSIAnbudIq0YZz3nhscV67RrLXgOrgp4dM/2rUTbZhAmhaCp
g91CSTQcRdrUjXLH4uVZuFQwruo1A+cBKPVP5m/WW07ukSrIU9Mq/Usy54cDcZFt3r5VWr2HRta
4NJJxrFleWEbrS84JSzGg2tlSq1LVJ8cJouwAcM8uaPElumBe9l8B1SVK9largh+ydwHlh+9o+P
f1v8aOf0gxXado4RHuh5oT6TC/7FLPlKxUGd5rlOYS+IWzupRM7kfHMGNQvfLpSTKiJiQOB10Fg
qTDl9RZaZIEABFkKkSHkgVwcSmxcy4C7SXLEI0HK1rk2GRf3/ERir4R2tpKMg2+QpiAmIjuvJnJ
e8OCEhuRlfS0KWhxwd57TWXpz0CTc5Hbp2DUezRbC7UM3W73D3SBoOqwM51PP3or8WRa7XvEdmp
6oy35nw==
X-Received: by 2002:a05:6a00:1708:b0:874:706d:856a with SMTP id d2e1a72fcca58-8c87c388460mr21385173b3a.27.1795787956966;
Fri, 27 Nov 2026 05:59:16 -0800 (PST)
X-Received: from ?IPV6:2406:7400:12b:ed80:6181:83b:1d91:a768? ([2406:7400:12b:ed80:6181:83b:1d91:a768])
by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c87077bff6sm12573494b3a.3.2026.11.27.05.59.15
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Fri, 27 Nov 2026 05:59:16 -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>, Patrick Steinhardt <ps@pks.im>
X-In-Reply-To: <xmqq8q2g1x21.fsf@gitster.g>