🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #2881

Re: [PATCH 00/20] t9300: group and move tests to other files

#2881
From: Junio C Hamano
Date: Tue, 10 Nov 2026 20:06
36 lines
14001 bytes
Junio C Hamano <gitster@pobox.com> writes:

> Karthik Nayak <karthik.188@gmail.com> writes:
>
>> While reading the git-fast-import(1) code, I stumbled upon t9300. The
>> test file is around 4000 LoC and each test has some dependency on the
>> state setup by previous tests.
>>
>> This long series unwinds some of these tests and moves them into
>> new/existing tests based on what they exercise. This leaves t9300 in a
>> better state. I think we can do more here, but I decided to stop before
>> this series got even longer. Based on the reception of this series, I
>> will follow up with more cleanups.
>
> Wow, cleaning up this script is long overdue.  Thanks for tackling it.

Having said that, there are a few topics in flight that touch this
age-old script and they are already in 'next'.

(cc/early-scan-options)
c2b4099f84 fast-import: use early_scan_options() for --allow-unsafe-features
cc4affc5ee parse-options: add early_scan_options()
f7fd8656e9 parse-options: extract lookup_long_opt() from parse_long_opt()
6aa1fb2271 parse-options: add parse_options_takes_argument()

(tj/drop-no-parseopt)
1db50e0e62 t0012: catch builtins that keep NO_PARSEOPT after conversion
5d735e50ef git.c: drop NO_PARSEOPT from builtins that use parse-options
ee68c316a7 parse-options: answer --git-completion-helper before command runs

So you may want to rebase this clean-up on a synthetic base, starting
at 1891de46f7 (Sync with Git 2.56.1, 2026-11-09) and merging these
two topics on top.

Thanks.
Technical Details
Message-ID: <xmqqfqx8qwmv.fsf@gitster.g>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!git+bounces-75126-linux-kernel-git=dewy.ru
References: <20261110-kn-fast-import-tests-1-v1-0-dbd9ee502aae@gmail.com> <xmqqik24tz2x.fsf@gitster.g>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!git+bounces-75126-linux-kernel-git=dewy.ru
From: gitster@pobox.com (Junio C Hamano)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH 00/20] t9300: group and move tests to other files
Date: Tue, 10 Nov 2026 12:06:32 -0800
Organization: Usenet Network
Message-ID: <xmqqfqx8qwmv.fsf@gitster.g>
References: <20261110-kn-fast-import-tests-1-v1-0-dbd9ee502aae@gmail.com>
	<xmqqik24tz2x.fsf@gitster.g>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: usenet.network;
	logging-data="691322"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:kLV0X1N8e9mN4VioMhAFx+wa4ig= sha256:x0cRoG+0hAusHTxjEoKGofRUsST7eyLe92hINOXpkvA=
	sha1:o0uujoT7HNbxZflKUAmTLzWsfsY= sha256:5LWQVjIJRH2CnY4xWg7ZYcSbRoIK137UpjVxX1Ulh6w=
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 1C4C3113CFB; Tue, 10 Nov 2026 23:07:18 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 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.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=pobox.com header.b=foZsTaLT; dkim=pass (2048-bit key)
	header.d=messagingengine.com header.b=DhJOPrOS
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 FoS5f6Ig5ngX;
	Tue, 10 Nov 2026 23:07: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-75126-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=pobox.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id C0531113CF9; Tue, 10 Nov 2026 23:06:58 +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 4EFE13437A; Tue, 10 Nov 2026 20:06:38 +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=1794341196;
	b=gyf1Lw8527duL+ZXhKHbRJ8iUyE+MS+kVBOxQODsoiYNe/wfrxBDneHLNLtqTtXsuJ7z
	 0GtqkwQUVJHh8GzfYO3XSUpgVb4kBUZF5FsWf3Jm/t7aiqepLO2gWcf1G8vbRFYspUHBy
	 RBUkMJZqITZSuHRIVz8tCBFLxlAd9b6ycyBq+n3m/s6RAmjW/eXZybW4JjHAok1Qhfvfi
	 1bPaS/SfAKUM15FaLYc2VqLwWpKLI59jD3wQlnoEJpHN6HZf0mNajI1YDR6d4tg+aA1sp
	 52YCk65SRHsXkOlpFgOmW7Aon6CywcLixswk1CTDB2GSX4xkanv6vv1fwhXZsoxdE7w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794341196;
	h=X-Original-To:Received:DMARC-Filter:Received:Received:DKIM-Signature:
	 DKIM-Signature:X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:
	 Message-Instance:X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:
	 X-ME-Proxy:Feedback-ID:Received:From:To:Cc:Subject:In-Reply-To:
	 References:Date:Message-ID:User-Agent:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type;
	bh=xCoA239HUvk2YCk/8da1xGAQ6sokjIycTdwgtEI/3aI=;
	b=IipstjM4N6+RWua+zqAOuHKuzDtH5jNH36MNM5uZpjXI0/64rg3ASNncyjQZJwHDxMwc
	 9NaC0ss/zch7o9v3AQCHPd+gcxctIqu0VII1UrwZyNDcFAd7WEXyDxssCn/B+m/dVOorv
	 IHCyzQQv8ES+bf6hPKKyCYcbPYY1DgKD/1qbFiZncsfoJB7HZ4aGTq2fKhAhdJRdb5ZjL
	 1yVgSv6fNz5t3X1EX0HJR/+7k0RLWcVx7SoFB5jgSHlNE1wJS8yoB1QmlwwHNDFYxwToZ
	 KZ9kUkZATA7t07DpDFRL+C7wbT3t1vVHzXj3o7LjnrHtykCABmzenk8e/Z7xF4KISdw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=foZsTaLT;
	dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=DhJOPrOS;
	dmarc=pass header.from=pobox.com;
	spf=pass smtp.mailfrom=pobox.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 E3E63606A321;
	Tue, 10 Nov 2026 20:06:35 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=foZsTaLT;
	dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=DhJOPrOS
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=202.12.124.148
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794341195;
	b=M/O2kPVsTqi6ximaBf7uQ28mFGwjDF2sOFPwU14HCP2WOGdUyHAJkGU2GAzisBexEL3f
	 g75oV+tbOQFIivW0VI+gBuIcYaqwsiL1mh+Nn3srJOx96T76KT2Hn3MYZ8wY9aIMp0Z/p
	 0WfNwna2dBhPVfHpvYlwYOM3Hf/QM8NpOrPKSYecp3igcN5zHHaRlrTL/PPxsqmYHpSSl
	 b8/yaCxPM6M4f3U/sOezTnO2dAvV3UXp2BOoaTJEcI+aOxS4K91j2855Hzq02lnkbdmcj
	 90eWGlNoBuRXZ7FG7QWKAVCEtmioa/4w/lqUiZI75IC1d8Pjmeg5LJaEFgtVldgX6fQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794341195;
	h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature:
	 X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance:
	 X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:
	 Received:From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:
	 User-Agent:MIME-Version:Content-Type;
	bh=xCoA239HUvk2YCk/8da1xGAQ6sokjIycTdwgtEI/3aI=;
	b=V6uXGPlYKFo5NSP9wxqEBxcoQqT55Uvedf3gmE//Mix5RRnL+qmAKpxH3qIkKjRNJMGj
	 Cs0W6KpFOd2zkO6mSIO5lrySc8Y7gMCeANa5vq3X0wtzVp6L1rDspk1vqbKbL4jMFcJwx
	 AMj/FU0eWz2Sqtojj1i/V/cPn4j2HlQm20PMnaQeDklZpsVvMG19LCQNXs8cWh+iRoKOm
	 CRfTsJmdnL6fv9bV1KzH9gsAG1MmkLx1L2+c9EfHyACQSJqqu6xZxIlLp/2/BFXhUmYII
	 a3g/2fjzHj/ubV2wE644EXS+jiMN5TrWI9bXukW7WMyOVxhpD9zC3XNfF1DSG+VXsMw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=pobox.com;
	spf=pass smtp.mailfrom=pobox.com;
	dkim=pass header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=foZsTaLT;
	dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=DhJOPrOS;
	arc=none smtp.remote-ip=202.12.124.148
X-Received: from fout-b5-smtp.messagingengine.com (fout-b5-smtp.messagingengine.com [202.12.124.148])
	(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 99A1F606A323
	for <git@vger.kernel.org>; Tue, 10 Nov 2026 20:06:34 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 99A1F606A323
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com
X-Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44])
	by mailfout.stl.internal (Postfix) with ESMTP id 0BB951D000AE
	for <git@vger.kernel.org>; Tue, 10 Nov 2026 15:06:33 -0500 (EST)
X-Received: from phl-frontend-02 ([10.202.2.161])
  by phl-compute-04.internal (MEProxy); Tue, 10 Nov 2026 15:06:34 -0500
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h=cc
	:cc:content-type:content-type:date:date:from:from:in-reply-to
	:in-reply-to:message-id:mime-version:references:reply-to:subject
	:subject:to:to; s=fm2; t=1794341193; x=1794427593; bh=xCoA239HUv
	k2YCk/8da1xGAQ6sokjIycTdwgtEI/3aI=; b=foZsTaLTfCGlV2+ZNH1xijASRS
	hgDYwSf5170DRZjOT9J3zUsF6IWg+YCW5IXDWiK+OMXN6cjmxEroMnautlvy9ufB
	D6RgKorgb8eH985YKPiyoEeqMbHhTD+iDMG9jjRLGVMAlbYgze168PW9kjkfz+/1
	HPAJe6HgfdOefUL23e3GvJSKbr1LhqzhcPSlz4rsj+tGgFL2PyDLdse+cBYifojo
	cjgomz4HYxI7uMRAZvAKgYKXX8Cu1ld1RcaZfoOQyY6XeVDLew1CnFdBgzf5pJ/r
	2ZhYlBwxBiFj7EyoLOyj2nxJIFfqZ7/J4APSt3eDR6Q+tb2QmRYVVAT+efVg==
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
	messagingengine.com; h=cc:cc:content-type:content-type:date:date
	:feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
	:message-id:mime-version:references:reply-to:subject:subject:to
	:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=
	1794341193; x=1794427593; bh=xCoA239HUvk2YCk/8da1xGAQ6sokjIycTdw
	gtEI/3aI=; b=DhJOPrOSRm5dDeh97ii3+4SJEJlpj4Uveny4n1dF7XAh0ixrjvd
	RL4pSKi3oTwh4xrmHEcCfR6YqrYRZWVpd/hR4qeKaiilm5TJejf7exkxuHuSQ1zg
	slfWbALau55ZX/KAwPL+hdkLQXfuoA9mNmC42AELWLQExHvE5G3NKPlggi8AG7cA
	gZ0d5bsrbQVwpUsArKchnMOpeeHkGvjolzSHiN5RAUvlHD/6shajA8TA9S7iI9Ab
	pE1hLYL/ZtnUwuMUKN6S+dehdCJ8XF1Sr1EqAylcHXpc6ggFAOXwBZslaefXlMTi
	EKTzcvC9rJFRE7Yw07RqBAkhFnZD/3dTKqQ==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09;
	repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox;
	action=sign d=pobox.com a=rsa-sha256;
X-DKIM2-Signature: i=1; m=1; t=1794341193; d=pobox.com;
	mf=PGdpdHN0ZXJAcG9ib3guY29tPg==;
	rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+;
	s=fm2:rsa-sha256:QtGBHGYs3/npki2YtG+euISeBNtFcmXU0+sZ2gEl2MA9Dc3
	RX5lNn4D8UgpOJzfgznoKd+ZBaWwpedhCwAUso8AZcTU9Jii/kywpf2QWF7fyWWW
	tvcewLMfrf4Y0mXE+UgfKaKPxbxNzBm+EKejTDMTtoYgx8LQKoKQWzmDlts7D2e3
	E9jsj32pYn0z4QS2t4Bb5fkmobg1eZXMXKRk7if9fXRby7IHoY53WuHlQMFlZ1dI
	4D1Z1nv/A6HlQCpgLBLiEIXv2lrHlbAoNTeAyryang4Cq3XfcngPdzjMe7tjBCzH
	PKLFsCFyIedGGGiLfsoI4PkvM2OdieoJUOrzt1Q==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09;
	repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox;
	action=mi-m=1; hc=12;
	hn=cc,content-type,date,feedback-id,from,in-reply-to,message-id,
	mime-version,references,subject,to,user-agent;
X-Message-Instance: m=1; h=sha256:BDXumq+TRwSkxwGi5Axo2G8GWU+UayOemZci3rXH5Bc=:mz4RuQYkZ6Uxh/KaUBLSXYGQds19uNPU6l+vxfdeEUU=;
X-ME-Sender: <xms:SXnzaoDUh26Yo-jhywPTFdN6mo3AkdLmWEYGccPzx4KHpflSriEL8Q>
    <xme:SXnzah9ykrA6Mx2erDavGytg0OQAFh-qkbuiI0GlRf_6JUnJrZNs89HIZ9ZuUKSPE
    w6t5bFL1XosBmOQXuaeWVz-UHjf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yUVQbjYDZ7t-m-1Ni0VXFU2BOf6WZ3FKaWGeal4q7ukbQ>
    <xmx:SXnzah9Z-WOc9-l3B_yiayrEAjuGnaNB0htpnAObEvwxPgepyWOunBFZ>
X-Feedback-ID: if26b431b:Fastmail
X-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue,
 10 Nov 2026 15:06:33 -0500 (EST)
X-Cc: git@vger.kernel.org
X-In-Reply-To: <xmqqik24tz2x.fsf@gitster.g> (Junio C. Hamano's message of "Tue,
	10 Nov 2026 08:45:26 -0800")
X-User-Agent: Gnus/5.13 (Gnus v5.13)
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