🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #4190

Re: [PATCH v4 1/2] test-lib: run EXPENSIVE tests one at a time

#4190
From: Kaartic Sivaraam
Date: Tue, 01 Dec 2026 12:34
48 lines
13155 bytes
On 12/1/26 16:40, Christian Couder wrote:
> 
> People might not know they need diagnostics as a script waiting on the
> lock looks just like a slow EXPENSIVE test. And, when using `-v`, the
> output is around 20 times (60 times if `-x` is also used) more verbose
> than without it, so there are good reasons not to use `-v`.
> 
> Also under `prove`, `-v` is not even allowed ("verbose mode forbidden
> under TAP harness; try --verbose-log"), and not sure a lot of people
> use `--verbose-log` with it.
> 

Got it.

>>> With Meson, or when running scripts or `prove` directly, nothing
>>> cleans test-results/. So a lock left behind by SIGKILL (including the
>>> OOM killer) can still be there days later. The same PID could then be
>>> reused by a long-running process of the same user. This would result
>>> in the script silently waiting forever.
>>>
>>> In such a case, printing something even if `-v` or `--verbose-log` is
>>> not used, would likely make it much easier to understand what's going
>>> on.
>>>
>>> So I would suggest sending this message, as well as the "running
>>> anyway" and "removing stale" messages, to stderr instead. There are
>>> only a few dozen EXPENSIVE tests, so this should not add much output.
>>> The subtests in 2/2 that go through the stale lock removal would then
>>> need to expect that message on stderr though.
>>>
>>> The message would also help even more if it included the holder's PID,
>>> for example like "waiting for EXPENSIVE lock held by PID 1234".
>>>
>>
>> Okay. I guess sending to stderr doesn't do us much harm either. I'll
>> prefix it with a '#' to ensure it doesn't interfere with TAP.
> 
> Great, but don't TAP parsers only read stdout? If sending to stderr, a
> '#' might not be needed.
>

TAP parsers do read only stdout, but with --tee or --verbose-log 
test-lib merges the script's stderr into stdout, so these lines reach 
the TAP stream. That's also why the existing -x warning in t/test-lib.sh 
has the '#'. It keeps them valid TAP comments.
-- 
Sivaraam
Technical Details
Message-ID: <9fe3506b-c784-4827-a038-e7b70dd10de5@gmail.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-76773-linux-kernel-git=dewy.ru
References: <20261128-ks-ci-long-test-hang-fix-v4-0-f117badd2e13@gmail.com> <20261128-ks-ci-long-test-hang-fix-v4-1-f117badd2e13@gmail.com> <CAP8UFD3V8hb+uHzCeEP1Tx8+kPi3rWyrTP7d_4QerJ6XPn+CtQ@mail.gmail.com> <8427f816-2d04-460e-8909-f0740724f2a5@gmail.com> <CAP8UFD3XPr_rfv6dui4ExLnhRkmyL71bqT1POwVHiGqigVO60Q@mail.gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-76773-linux-kernel-git=dewy.ru
From: kaartic.sivaraam@gmail.com (Kaartic Sivaraam)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v4 1/2] test-lib: run EXPENSIVE tests one at a time
Date: Tue, 1 Dec 2026 18:04:57 +0530
Organization: Usenet Network
Message-ID: <9fe3506b-c784-4827-a038-e7b70dd10de5@gmail.com>
References: <20261128-ks-ci-long-test-hang-fix-v4-0-f117badd2e13@gmail.com>
 <20261128-ks-ci-long-test-hang-fix-v4-1-f117badd2e13@gmail.com>
 <CAP8UFD3V8hb+uHzCeEP1Tx8+kPi3rWyrTP7d_4QerJ6XPn+CtQ@mail.gmail.com>
 <8427f816-2d04-460e-8909-f0740724f2a5@gmail.com>
 <CAP8UFD3XPr_rfv6dui4ExLnhRkmyL71bqT1POwVHiGqigVO60Q@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1709573"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:DDfSm9nhs+K+Bc6o4o7KiuzBFn4= sha256:uldwhPTngPhDfn5/a2fqN4wEU2CpsUTDv8QrThj6Q1g=
	sha1:5yAC20S6+vspOypnDduq8Z8Md8U= sha256:pkK/W+4OyLqgOnAYvYJnAv/oJ6qlvhUYx7XJL0PgRZg=
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 9113311737C; Tue,  1 Dec 2026 15:35:17 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 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, 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, URIBL_BLOCKED=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 6zGuIPUA5LvM;
	Tue,  1 Dec 2026 15:35:14 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76773-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 6251B117378; Tue,  1 Dec 2026 15:35:05 +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 92D032BA19; Tue,  1 Dec 2026 12:35:03 +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=1796128503;
	b=pQYLfQuoOKnI/TowXEfiZy1nj/wleaEoppoF4l3iu8Gf2Qwbfk+nCb5hLrM/+70dOhvW
	 DGMGT1T8e365IW9fl0yMDdy2j37MNkL6+SjxxuL+/lNI2h0rHRrSB4TSBpqWlMyRoYGxn
	 M2FgXYPoKHnDolR2DBbjhMnC962h+tC4qhhCFGOE9scfuagyggXcu5gMFabrH84h0oIMP
	 7BvbgwR7Oflj9UvQdvNEp6klfoTKBpjBGGd5cl+W9tZlkiy4ZPIltJRuWlqXSVQXFnDQk
	 29SmU9FhCHmENG9aqxs7qMiq4JFCn9n08cAl+ecUxDi7yU4ZBEgdN/l2X0f1ye6iwZw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796128503;
	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=4YLSQzMBOr3+imxahcHhjl6FEE2meuWc/pN8CMqlF6w=;
	b=tl5A2YSUdCw2sHZE9XcFclCJfz5mRF71dxKc9Sd0Nek+tV1hz/EARcrcnm8nGSTNO/tN
	 1c8gQulZW3f/MWXloELkNRc5+mq39qJJVnnLG1pGlJBknZc1u9CNAKxMGPRkiosz/no2i
	 Ty48y7lcE7yYwakvIOW+7pDPUNnCWixJyGIyjlNo+zeR3943X0vksLA4BOUAja3H54P2h
	 yf/97wDp/5y6N5VaIZynw03By5zsLU7Wus+IAgfFDHnGd8NcUbSS4U5RAJVzakGNT2loy
	 boGpGfsRhi8hPhMAWMI1ObuKv2bcuyVHiOo0Hh/UE1ptilJGcLVMRrtUasSr57WkL1A==
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=vAg57vFx;
	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 68899606A32C;
	Tue,  1 Dec 2026 12:35:03 +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=vAg57vFx
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.175
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796128502;
	b=vqfXNuRbNyCkJYX3d2fcbB7PdvGcPbdXOBckdLUvCoFu7xEOYEa5yzrjU4NZEB9Io568
	 GLKO+8llCzLWdCImVppnOHIhkP11tpOVgnbKQYh+DXqDHSeTqB1I1VlIXc6Wib6p9beYh
	 7wgMePiUpd2/VLYq2nZb+AUcl/9c1QHpSA0PII28Yfxn9gCr0+tk5OVtRCiy8K7HZvjq9
	 GU8l0KC8E6vGBQWeKYVax7NYv9RBH+KEkYFHZFSDcY1/mjwTC/AM64aX+hNoTgp+OGKYi
	 /vlZ3oZq4K58ENgKWADXR+9xz3gflC1S65Rwr+tkiGbaYAqW7Ofu0x6WdbRM5LgNvUw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796128502;
	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=4YLSQzMBOr3+imxahcHhjl6FEE2meuWc/pN8CMqlF6w=;
	b=O2+CiL9vBuad4nI/zFyIrPlsAMVA4977gYQUQuAM5XH/d+kfyu/5oUUkpRcXvavJ6YCM
	 sKzPq9HhRz0l9FgzbKFC6BRcGGdrZg6CqoZLFrNqvetEyung9Igkp9CyFdTPDLfDaHfrn
	 aQdCZD3j7nNPCH+SZxZkBuPmhaakaxfSx3Pw1uYhtJverEmYBwE6hpZ+OBjPh+ImHFk2c
	 q9hTkYurwv4mhWwJ+TfGxEgU9yAxMlDzkvxtBg6+34sJ7a+I26bt2r157MW81asMsyMUa
	 4hYqyMqhortpUW9R/o9K4d8ImHVAag60BLRjkMY2eIOG5JYx00BX2423NIbjSMBd0tw==
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=vAg57vFx;
	arc=none smtp.remote-ip=209.85.214.175
X-Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.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 422AD606A32D
	for <git@vger.kernel.org>; Tue,  1 Dec 2026 12:35:02 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 422AD606A32D
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-pl1-f175.google.com with SMTP id d9443c01a7336-2f066274caeso58536665ad.2
        for <git@vger.kernel.org>; Tue, 01 Dec 2026 04:35:02 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1796128501; x=1796733301; 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=4YLSQzMBOr3+imxahcHhjl6FEE2meuWc/pN8CMqlF6w=;
        b=vAg57vFx999uAcH0b/6YyuI0pQuqcJzhpnir2h1CSbMay7LYWL6T/yXyNJclHiygX6
         IQ9/VqkwGzpqPjilGTyLhY4bDZEF1/gaFhcAQMWEmaUWMQTycKtvV99MzPwl64ZOTq76
         ZPwMI6QZTyTI/Y5fYaWpbUBEXDW8qEE6kpIatjceAcNmxgqHjpNiE4XoLaenYWWvtXqw
         NkKFOxPoMIWHOpnkR0rmHWJHZZuN7V+/3rt4jn6wsWUJh904H/m+4xNqoylrT4BgFtMo
         2jCUt18dRnniix4JjHc2MFQs2H0BZzLe8RzrwwNFX0KaiQ5k4h0tO68/HsqK1V5Ovs3h
         efwg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1796128501; x=1796733301;
        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=4YLSQzMBOr3+imxahcHhjl6FEE2meuWc/pN8CMqlF6w=;
        b=JyYAsv6vlxxVrfeDZJ1xJ/waIvHNBUu2I5OECtgBJsSjDWDTLqqQ9PrBy2Tc3Fuzcd
         bvgQWNHTg5yfHEAZsVhjBlYz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07:b0:2ee:2557:4069 with SMTP id d9443c01a7336-2f03f18f3b2mr357317855ad.23.1796128501362;
        Tue, 01 Dec 2026 04:35:01 -0800 (PST)
X-Received: from [192.168.1.34] ([103.215.237.185])
        by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f14c8a7281sm34293215ad.61.2026.12.01.04.34.59
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Tue, 01 Dec 2026 04:35:01 -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>,
 Harald Nordgren <haraldnordgren@gmail.com>,
 Junio C Hamano <gitster@pobox.com>, Patrick Steinhardt <ps@pks.im>
X-In-Reply-To: <CAP8UFD3XPr_rfv6dui4ExLnhRkmyL71bqT1POwVHiGqigVO60Q@mail.gmail.com>