Article View: linux.kernel.git
Article #501[Outreachy PATCH 0/2] t0410: fix exit code and hash assumptions in the missing-tree test
From: Dorine Tipo
Date: Wed, 14 Oct 2026 13:45
Date: Wed, 14 Oct 2026 13:45
29 lines
8659 bytes
8659 bytes
This series cleans up the 'rev-list stops traversal at missing and promised tree' test in t0410: - Patch 1 replaces the 'git ls-tree | grep | head | cut' pipeline that finds the OID of a_dir with 'git rev-parse HEAD:a_dir'. The pipeline drops git's exit code, and its cut assumes a SHA-1 length, so it yields an abbreviated OID under SHA-256. - Patch 2 stores the output of 'git rev-parse' in variables before passing it to test_grep, so a failure in git stops the && chain. I ran the full test suite with both SHA-1 and SHA-256, and it passes. There are more places in t0410 that pass "$(git ...)" directly as an argument. If this approach looks good, I'm happy to convert the rest in a follow-up. This is my microproject for Outreachy. Dorine Tipo (2): t0410: use rev-parse to get the subtree OID t0410: keep git's exit code in test_grep calls t/t0410-partial-clone.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) -- 2.34.1
Technical Details
Message-ID:
<20261014134504.1152225-1-dorine.a.tipo@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-72009-linux-kernel-git=dewy.ruShow 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-72009-linux-kernel-git=dewy.ru
From: dorine.a.tipo@gmail.com (Dorine Tipo)
Newsgroups: linux.kernel.git
Subject: [Outreachy PATCH 0/2] t0410: fix exit code and hash assumptions in the missing-tree test
Date: Wed, 14 Oct 2026 16:45:02 +0300
Organization: Usenet Network
Message-ID: <20261014134504.1152225-1-dorine.a.tipo@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="2306588"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:u7EkY0rwyCe2y8qnf0kq4duX2RQ= sha256:/zzdplDwiPM3FD8zleYcD289N44htFq+PXw9q//xCTM=
sha1:5bUSZRxprrdhENBur16TyLX4UGY= sha256:oOdKBvj+EL47A301oHO0d3r0p4anSO8RKHTR2dFy9dw=
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 9EBB7110122; Wed, 14 Oct 2026 16:54:16 +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.25,
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 SAJDHbMRrcBs;
Wed, 14 Oct 2026 16:54:13 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-72009-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id E2EFF11010E; Wed, 14 Oct 2026 16:54:04 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
by tor.lore.kernel.org (Postfix) with ESMTP id 48AA03B548; Wed, 14 Oct 2026 13:45:29 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 8894552F264;
Wed, 14 Oct 2026 13:45:25 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="POOYoa4X"
X-Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2317152E073
for <git@vger.kernel.org>; Wed, 14 Oct 2026 13:45:22 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1791985524; cv=none; b=YXpYdXUqnar5viba0VXfC+Ss1jHmVtAyhg+fQOrwbZXJmWl7s/VYlP1N/Yeb5qrj7VU8nUD+v38AlaqPdCqkhG1Y7b8m2bK/pKQeHBkL2cPtR3CCLcNRK+8skvxi88ymQtJ5Y6FO7COzy2WEMeTxJSO4LNfFNer03eqy0tu31L4=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1791985524; c=relaxed/simple;
bh=3wu3hDEXjhaONGba9jjcYQK11hcN3zua3siOdSJ4oLE=;
h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=C0M/MvyIj0wHBYd+WTJe3WOnO2Dh8oxUkvxvv6O3XcYz7asIL2hDOPQl+V0WaY6eZajgxydYvmN4BeQk0nXNf+hUO0WniudYbKDGo2ew02VlR+8zHlK4lGVh8NXQ5i1sR6toyL+hDloIhMjdWVlb1JAqjWQctP8hpyePaNyHfAs=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=POOYoa4X; arc=none smtp.client-ip=209.85.128.47
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-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4a01933b584so36474395e9.0
for <git@vger.kernel.org>; Wed, 14 Oct 2026 06:45:22 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1791985521; x=1792590321; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=SPr6+F+nDp2vD7N6F+VoJDH4AMsF+rElpWLwkAn4xk4=;
b=POOYoa4XUKBwE77rAWpHlp2Yv9eOFC54Ay5uQ9aZm9o4pC2yUvOfyjKkrTOhPyKRej
j+lYuu3/GbjbwRm92O66ixv7GeBZMVSZPOGxdeU/N060Kj9671/2CK1P0XP6TF83p4iH
Ttt2dm1OId5uCSZyiia4tN/lh2XkYuuKfG0ZmixEhDNZjl9E4hqkT4BpoFgH1z3gfcS3
Ad1VaGfgaHJXWglWAua74fVnlIJbhxC4Yp2yLsTWrPUQJ3KdCPdD3IuFBoGvSMIddrTU
kMecxgEaTUleTdCN3ecckiMawyUWjTZCFTogoi3pQr+lyIEXAxdgWAjttLbmzfvuTAK1
gzoQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1791985521; x=1792590321;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
: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pGEJTdNF00okSk5T/cAj9OXJziBw3HEeL1tXz
X-Received: by 2002:a05:600c:548c:b0:4a1:a7f8:c11f with SMTP id 5b1f17b1804b1-4a1a7f8c1cfmr120952705e9.9.1791985520605;
Wed, 14 Oct 2026 06:45:20 -0700 (PDT)
X-Received: from Stealth.zuku.co.ke ([197.237.143.156])
by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48de7003982sm9334303f8f.8.2026.10.14.06.45.18
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 14 Oct 2026 06:45:20 -0700 (PDT)
X-Cc: kaartic.sivaraam@gmail.com,
christian.couder@gmail.com,
siddharthasthana31@gmail.com,
usmanakinyemi202@gmail.com,
Dorine Tipo <dorine.a.tipo@gmail.com>
X-Mailer: git-send-email 2.34.1
X-Precedence: bulk
X-Mailing-List: git@vger.kernel.org
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>