From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.175 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== 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== 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 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 ; Tue, 1 Dec 2026 12:35:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 422AD606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=vAg57vFx Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-2f066274caeso58536665ad.2 for ; Tue, 01 Dec 2026 04:35:02 -0800 (PST) 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 bvgQWNHTg5yfHEAZsVhjBlYzIdzqA0f3fvu0pntGCiFK5hLa2BLOW2M79r9/M5fNafcZ VMVwA3FYbbOhr7r2hK4MOHb2GbneyRW0trdaGaHsooy4Bcr1SIVuL0FyiIWEAexfQPlJ xmfwmzmtxzFP/3+Gw9BuSUKYsM9T0z7VcKOC9K/ML0WXkb/AhOsH2ZWWTyXvGIHH3BoW Rd12vxvlKGc75db8QRF23I/YizvypYbCASPkYsf1FInvrmyKMLekbrDr5sTxvgH1+w6Q abmA== X-Gm-Message-State: APuU4Z/JkXYWQyBy4eWEbMOjm3LpxumzuF/B460RSHbHT2P7iuvWNooP ZGWpnD0dIj/JSJ+Saa2wv8wkE6rsM5jHh7sDJR1/iB21jMtd8HLdWYFp X-Gm-Gg: AZFdTZcTSwpG0jmdtdfMUyvubTrsG/jqXNP7P2zp44Ok1jTq4daMgDjZ7lsD0iSL9EA uOT4wEJj3YFudG0G9onsDgb+b5e9vvfilGmhhNcxlfQtplbImm2N8N0wruMzNFzVTbf3D9M50u9 ErS1jGm/2HjSQ+E+7xc2SobGBpH+NRbUndfuFw9TLNYQCgZEKIhPhVdtde6qaRYi2jPA1KK45jM bhzvfZjGTyw54VIyGxTKVtij1N3ayvRxfi931DpDZ25AOKkenY/9+Bc5GeVLVBxpzslB4FGc5Vf VRfgM7EKJg+zmkusgGrw496dP4cTBagY9SYUic4mg1Bh0mPjMU8TXpLHKb3Bd5qtl1gyGgttAZA 7W3/44/hL/WNRasysf3/Efiy+L2rLabPBmvfUoVzlx79aftwQMoJM8iuDQck/CVFlSOzor5+aFW bftF6Z1Dvaz/PeTkdald1fwpIjbCRC2xCDg8FOmH4Kllg9tQaeP+WT5QB1zWrZ2oQbks//Qg4vC FoD5AdTph5elLLLhnQ0LFsgSCksWDCnuLTOAgqhSaIKhcAl3xfR8OTcEh0p/PiVJ6QdiRc+WAQ0 3t/OmLeRDFEeDYinrYgwHLhJlJFSCGv280eK3MtGtQ== X-Received: by 2002:a17:903:4b07:b0:2ee:2557:4069 with SMTP id d9443c01a7336-2f03f18f3b2mr357317855ad.23.1796128501362; Tue, 01 Dec 2026 04:35:01 -0800 (PST) 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) Message-ID: <9fe3506b-c784-4827-a038-e7b70dd10de5@gmail.com> Date: Tue, 1 Dec 2026 18:04:57 +0530 X-Mailing-List: git@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/2] test-lib: run EXPENSIVE tests one at a time To: Christian Couder Cc: Git mailing list , Harald Nordgren , Junio C Hamano , Patrick Steinhardt 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> <8427f816-2d04-460e-8909-f0740724f2a5@gmail.com> Content-Language: en-US From: Kaartic Sivaraam In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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