🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #952

Re: FYI, git output messages are being used by other tooling

#952
From: Steven Rostedt
Date: Tue, 20 Oct 2026 19:23
44 lines
10689 bytes
On Tue, 20 Oct 2026 11:37:01 -0700
Junio C Hamano <gitster@pobox.com> wrote:

> Steven Rostedt <rostedt@goodmis.org> writes:
> 
> > Hi,
> >
> > I just want to let you folks know that ktest.pl (tools/testing/ktest/ in
> > the Linux kernel repository) parses the output of git to display the first
> > bad commit found in an automated git bisect.
> >
> > The output was recently updated via: 0c0f93e7fa64 ("bisect: print bisect
> > terms in single quotes") which made ktest.pl fail to find the bad commit.
> >
> > The change is being addressed:
> >
> >   https://lore.kernel.org/all/20261009-ktest-git-bisect-v1-1-1d1428f6cbf4@marliere.net/
> >
> > But I figured it would be good for you to know about this dependency.  
> 
> Shouldn't the script instead seeing "git show bisect/bad" instead?

Hmm, it also is used to see if the bisect finished or not. It looks at the
output of the last git bisect action and has:

    if ($output =~ m/^(Bisecting: .*\(roughly \d+ steps?\))\s+\[([[:xdigit:]]+)\]/) {
	doprint "$1 [$2]\n";
    } elsif ($output =~ m/^([[:xdigit:]]+) is the first bad commit/) {
	$bisect_bad_commit = $1;
	doprint "Found bad commit... $1\n";
	return 0;
    } else {
	# we already logged it, just print it now.
	print $output;
    }
    return 1;

Where returning 0 means the bad commit has been found.
Otherwise it keeps looping.

Is there a git command to know if the bad bisect has been found or not?

-- Steve
Technical Details
Message-ID: <20261020152354.165ad128@gandalf.local.home>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-72603-linux-kernel-git=dewy.ru
References: <20261020141011.0015d172@gandalf.local.home> <xmqq8q3sw75e.fsf@gitster.g>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-72603-linux-kernel-git=dewy.ru
From: rostedt@goodmis.org (Steven Rostedt)
Newsgroups: linux.kernel.git
Subject: Re: FYI, git output messages are being used by other tooling
Date: Tue, 20 Oct 2026 15:23:54 -0400
Organization: Usenet Network
Message-ID: <20261020152354.165ad128@gandalf.local.home>
References: <20261020141011.0015d172@gandalf.local.home>
	<xmqq8q3sw75e.fsf@gitster.g>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="3934965"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:jJk9fSCbZL2Zc54wFaCHnW7qxTc= sha256:vH4hAs2c5Q9uQ0kkBaVSZb4+jMqqzSoS5QGT+JtxUgA=
	sha1:Na79+piIKF/ccRhuAQmTHs6WrhE= sha256:ejl2qK94GGh2p8mHoqZEDPxzZuLuUTR8ZqTAgVXxzJQ=
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 3D99F110DF6; Tue, 20 Oct 2026 22:25:24 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 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, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=goodmis.org
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 ilr15EQkBO-Y;
	Tue, 20 Oct 2026 22:25:20 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-72603-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=goodmis.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 61558110DC9; Tue, 20 Oct 2026 22:25:11 +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 4549F31616; Tue, 20 Oct 2026 19:24:01 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
	t=1792524241;
	b=ktcV1w1iIcPAOxvokK5DOJafX97lv322jzA8IkoStN29PrspgIMbe+KVYhi6F5dMAX13
	 xEYMQaloz3lspHGfvMfftWM6IyrkSNshwLbU26uxfDgelDCEVhrH1fvIOUzXpqw7Mfv/n
	 lAkTdaX9qFJ5KQYCK3K5LP7K0QaPpdjrIduieOVd1AoVQOAJMoycO+D8ZSRN/HshkdFIB
	 Sf20FtzE0nXepCUwZz7/FS7EWRj81HRELXGtW4Es61061+lQ26Uq0lqm4C6Anfrrcndr+
	 XBkxueoCUCSRnis1zthOTEcnGdir6YnYouAha9zfOXJCE4iQRFtbc3w+haHl0LJM4Cw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792524241;
	h=X-Original-To:Received:DMARC-Filter:Received:Received:Date:From:To:
	 Cc:Subject:Message-ID:In-Reply-To:References:X-Mailer:X-Mailing-List:
	 List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
	 List-Owner:Precedence:MIME-Version:Content-Type:
	 Content-Transfer-Encoding:X-Rspamd-Server:X-Rspamd-Queue-Id:
	 X-Stat-Signature:X-Session-Marker:X-Session-ID:DKIM-Signature:
	 X-HE-Tag:X-HE-Meta;
	bh=/tfBImnshU5NpP7d0QDXb5DGBXQWNObOq9TC0JcC5V4=;
	b=ceTGbtO18wwaI7zx5a0cYD9Yw8FPwnmdkd8btx5JSqVOCkda9brAPwpvyDPJLauuj8Lx
	 459ahcvMWG62xPV+T4FwLjsC4N9pp1b+sT12fHuFuOi2KCC91MC3/a3xg34caviCk/3Em
	 1NaNGTYo5b6wl85DT/j/1TzT1K2f64wpCzdZUrbRwIlHD/TmB64Si8muptuQDCxlAF5ye
	 fSJYRkeMK9vuQqEwiZJwSQi07BIBwdEdj0I0d3l3BCUT6zAtlmU9xVeoXTeXBSRmcTW/N
	 1jhoslb/3m5je5chR7+VPt+olW136fKiIGaEs2od818INiPI+jVVsGvtEpO1nBaB+Ow==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=goodmis.org header.i=@goodmis.org header.a=rsa-sha256 header.s=dkim1 header.b=RFmuCuKk;
	dmarc=pass header.from=goodmis.org;
	spf=pass smtp.mailfrom=goodmis.org;
	arc=fail 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 1AF76606A321;
	Tue, 20 Oct 2026 19:24:01 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=goodmis.org header.i=@goodmis.org header.a=rsa-sha256 header.s=dkim1 header.b=RFmuCuKk
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=216.40.44.15
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792524240;
	b=EQWgwA6USDWY6YStvvVl5IElcDsdDb1Fm3ZLVLBmLuwfgOfxh7NOHB3NdgxD5BQDdtPR
	 fZ6/QrZkh+vbMq/0HEBZLNTPAvL8++AzNGR86rinlWLWFUwvVvxAtdWUoUJ61LoZaPAuS
	 K1QDST98OH5LIHGWj6i1GEEjmXe3yNwnNxfRBlmpa9UJF0bWVcKr3QXgW+GAB9jnrHaX4
	 arJKBTQ23sU15RvP9+ZHPXmNLSh3bcW9KONxJQ6puwccqK2cxNLkyxv8M2TIl1LAkxNZv
	 85ZkaqI3J1B21dDu6ilS1VypUJvkZnljlix+bGjTlNvNp3KnFwC5h1Vfrgu38bUYmZw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792524240;
	h=DMARC-Filter:Received:Received:Date:From:To:Cc:Subject:Message-ID:
	 In-Reply-To:References:X-Mailer:MIME-Version:Content-Type:
	 Content-Transfer-Encoding:X-Rspamd-Server:X-Rspamd-Queue-Id:
	 X-Stat-Signature:X-Spam-Status:X-Session-Marker:X-Session-ID:
	 DKIM-Signature:X-HE-Tag:X-HE-Meta;
	bh=/tfBImnshU5NpP7d0QDXb5DGBXQWNObOq9TC0JcC5V4=;
	b=qxFUYx2h1AFI57RCYMQ8TgcCafVTyLa1VCNB5Y7QZ14wc2Dim6hQdU485ssk5ozbrgSD
	 SsxaBPyeOfaeKpAoLZ0xqKEJV3TnFpzsnr20pOuekMWyaPy3IbufFD1j46rwr7hk1R0WL
	 AUPF6L6kuNNo7XhLxrtbsMC10us8VuMUsKU7C12NM/hWX+2q+GQn15rZ4rAS6fGCDx2QV
	 NegTKwDZ8KwRk+70hnnSxlP3Pgsa+hG/vZsfOOZPAj6DjDqYQK8akQXbIjfSxJUDhCywK
	 vdrjm7NXkgwYkfqMkXGmqgN2UulLNtaU4QCsVJlwC7JnO0td9UmB+mO2c8lcc0ew/+w==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=goodmis.org;
	spf=pass smtp.mailfrom=goodmis.org;
	dkim=pass header.d=goodmis.org header.i=@goodmis.org header.a=rsa-sha256 header.s=dkim1 header.b=RFmuCuKk;
	arc=none smtp.remote-ip=216.40.44.15
X-Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD2AE606A319;
	Tue, 20 Oct 2026 19:23:58 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DD2AE606A319
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=goodmis.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=goodmis.org
X-Received: from omf15.hostedemail.com (lb01a-stub [10.200.18.249])
	by unirelay04.hostedemail.com (Postfix) with ESMTP id 5AC801A03AC;
	Tue, 20 Oct 2026 19:23:57 +0000 (UTC)
X-Received: from [HIDDEN] (Authenticated sender: rostedt@goodmis.org) by omf15.hostedemail.com (Postfix) with ESMTPA id AD61F1B;
	Tue, 20 Oct 2026 19:23:55 +0000 (UTC)
X-Cc: git@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>, Jonas Rebmann
 <kernel@schlaraffenlan.de>, "Ricardo B. Marlière (SUSE)"
 <ricardo@marliere.net>
X-In-Reply-To: <xmqq8q3sw75e.fsf@gitster.g>
X-Mailer: Claws Mail 3.20.0git84 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
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-Rspamd-Server: rspamout05
X-Rspamd-Queue-Id: AD61F1B
X-Stat-Signature: o3kmb5gptbjpqdjmyg9jgy4rpjnmx8se
X-Session-Marker: 726F737465647440676F6F646D69732E6F7267
X-Session-ID: U2FsdGVkX19vWj6JdH42Kv6IEwrq+O1A50WgADvckvw=
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=goodmis.org; h=date:from:to:cc:subject:message-id:in-reply-to:references:mime-version:content-type:content-transfer-encoding; s=dkim1; bh=/tfBImnshU5NpP7d0QDXb5DGBXQWNObOq9TC0JcC5V4=; b=RFmuCuKk5Y/bbdOniGXco2p8gqxKd0k/R9QgGiWITPpqdk54HQKmBZSiZXh+qymP2TDAqlR0lQ5rimYR7bF7z2nVaa/QQmjxWrbb1q1KTIHN8KQn6oW9yZKwGW1PZCFjAEj8J+5xSNvKeBb6fag71vi+fYcxbpVv+IDe2BznD2s=
X-HE-Tag: 1792524235-919834
X-HE-Meta: U2FsdGVkX1/wxXpb8npp62Mc9e7637Td92OcWwyy6p7Uc3EiJY5eBfR73cdqjYc1XIlub5V22opkvrr78dTLRc802r5YuAE02gXCRgsyVox2TqRAJy1JB6YLizx+ZklX5/F2Gr/T5vwyknYRzas8R1YCTN/hn/iZCnpXdaxQtz9F4I0OBbkADtnCQUSawsYaX2vytaxbiGI2ZBz052cCKVtvkgCbdMUI5ePc7bIXCNQd3KowM37OAizPZRxwz5PuhTFp+GOiLyrbCaCAIcKOLtHkyOrVK7YuTF3Gn9+N11wgtN72Wp6T7yKD5Ox59RIBHF3iQwYSvxdOk7dl3kvHtmyrLiMU6CvBw+AZQPp1ya711+UqV/DB6E07JZQLjRkpX8NfG1FjyCRRVjwXaX9KYiY6MbaA3D3o3rKDRiqPfLdgq0jT0etEnNqTl1AhjjgAliThsUS4/QXZbzFAR8lbII64NiKEFNo/0bep8LCwGgFpWIsarebmPR+KD1PfG1dhNhIj4uNMBvU=