From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=202.12.124.149 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796283089; b=XIOfEirVUtNQfL+A5T1X/L0FwI2k0znDdYVztNhDG01Kbh8wruu+f3Et+5TB6eApHHZq OHUk1gi9FAHAmZj+3wQPM5KsUZzNBknyM9Wvx36cxXjStHce3vXthbRkDxJbwaV9m6MuV YUH/l+6akWF9+1ummUHwaa5E4tzUQt7ccUozb8CUkT1u7jHpagZvZMseSdAU3YKTHJ5qU Rt4TlKw8a1AmdzSAYqlEh0gLaxtyGs97mj/5nAeDrFxPXMgCOxSi3FsC7SaGEvkCPDft8 qRMxeo0Qvvwe7hCrdFxodom1Kdr9NlZWjVMSm/Qfh5bRciBORAy/rWQ0sE3lpa+W6aw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796283089; 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:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=HGmlc2JLu9SislDC35JldtLEGDoZot16xAFs4QMEalc=; b=0xY1j1Hw4hd6ZT4x2AoUerY5EBHD0qIz84rpLGJn+6qxgCICHzJLzoOIdSZwP+9+jCva bb3dGDmh6ui3MxOTO4VbpQrDLcbTBa0khG4lDDi9iPvDqsVif2Cgfs33+Zx7eDPFrj4L0 C1kLZWRRpXzsMHFP7lOJcORwfB+ECMA8vY3jYVI0pnlrMQ31g8Rl1noCJD2qvzJnhO0iz eYgqmSrFa0eV4ztd+MxEX1sVh3bQ0V4h7wMEnYcIP3KnYNsC31WTYweefxgPhxDV2fLwV rJvlSsrpZRj5AjcGRzFOpjflaOE//H2j0cqgYaSWd5Ob4jqz6rbUGFMIpu1IElZkdfg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=pks.im; spf=pass smtp.mailfrom=pks.im; dkim=pass header.d=pks.im header.i=@pks.im header.a=rsa-sha256 header.s=fm3 header.b=rhDtSvk0; dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=GQDpgoWT; arc=none smtp.remote-ip=202.12.124.149 Received: from fout-b6-smtp.messagingengine.com (fout-b6-smtp.messagingengine.com [202.12.124.149]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74D04606A333 for ; Thu, 3 Dec 2026 07:31:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 74D04606A333 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=pks.im Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pks.im Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=pks.im header.i=@pks.im header.a=rsa-sha256 header.s=fm3 header.b=rhDtSvk0; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=GQDpgoWT Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfout.stl.internal (Postfix) with ESMTP id C32BE1D0022F for ; Thu, 3 Dec 2026 02:31:28 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Thu, 03 Dec 2026 02:31:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; 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=fm3; t=1796283088; x=1796369488; bh=HGmlc2JLu9 SislDC35JldtLEGDoZot16xAFs4QMEalc=; b=rhDtSvk0QF0hXJYcSNLoVo6+yX KH+U12tCxKve3Rkxvl7LTjx9wXGKzprphtOTgXCYshBAFnGUhQWNhAJrBjhn6njm oKOS1mj7t9jweLnRLkDHzNjgCrGOpaT3t7dJxHCAn8OR3CLkKRs/Uv2eb0iSfHg9 VV/2AzLW615eo8O+U3N1EHUfF9v0SJq4OqQPgvu5xbrhLYPnCLyiEHKxNyCyUDTv eX8QZjov6PBch02l9MFaCa+fibEhkVShggVmq6mg7+EKGn7TcEBpGUMiCtvqeoRN LmvbjNZMMHWrTFc2FFq9dV/D9Vgj+71c9cdhViVNUHOSx1YNkOHps8Piylbw== 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= 1796283088; x=1796369488; bh=HGmlc2JLu9SislDC35JldtLEGDoZot16xAF s4QMEalc=; b=GQDpgoWTmBha74zzEo8kbfOrGTNFJph5okIUwCwX4Fmj7AMrUDM tUNQlacyoSrhDJwrCP5gA/2oeDyu1P38WpeIKl0CuptaWffNcqZKS1jxP25zsMLg Sn0uON1bdD5hacR4CWhHSW38Sf5EC/sY9qi3In0Y+zNP83GRFqQhg+4IuSCz2npu eSXoBdBKEfNIt5gibOe6Oq41f68wB05nTsT/WnCBnbfFLYe5Ro7HtJxEXA6tqg0z ejpB1XEnKLC6ZZfIpa5NKdrGJ4goKknK2F11FksLvpNUuCz10h10JySus3f6IVvg sXkChQtuhiL09grAk7CQEVf5PZfWxkGb/aw== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=sign d=pks.im a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1796283088; d=pks.im; mf=PHBzQHBrcy5pbT4=; rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+; s=fm3:rsa-sha256:jEnJQvArVPAxIPOuN+DSqulLsQ3jXDbpP4lPyhNxU6j88ha UPAfNNNl2CSbsc13DZONboJu++ES5SUC1Dxj/FYD7ZMycUF6QkcDbBxQl9axEd0f G3nPsUFXx/utYJL9nvs1ISih1qfHQ96t4RabBkFwLrl+XPRE2Baoy5pVOIbeYp6q UEIFScv6zTtnAkMFQC/S59DwHgqQudMYHL6eRr+rQz2jo6EbHqd1B7En5g2dML5N DLXPEjeJcMnQ+57yQ47FZq/tjFXEpGykxAhSSTa4HK2VgGZXzq67FR60TmzYcOro +iJqtX4aVZXvHoMQuW2Ez4yOBTSKtWVF4YPZGOQ==; 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-disposition,content-type,date,feedback-id,from, in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:GlepAb77QqIGgcRierAHS41g9sO4o/4AKMu+iwXO1q8=:pPakBWVc/97Xp5hQX6K7z/3dV8KMP+43xdFxO91zucU=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTE7l/LTOyUnhUTBgjunpjgG+dTGTQczqueHXEi/dejc2NLsJpX6/kMJXV57R86fQj dJzSd2Gckrc6OkIS3EPsshNkQWUNSJeT+PU76P/DPPndh01yNEWvzOJoXEHR+feil4BKrl l98a324F9FxpKx484E76f8eON8vBynUd3HzHySvZUGW3qC69CAZexu9fa/lOmod1Mxok4H aAUP+3/8/7ri0f8D94984PwzSAtaxDIp0g8jRbBw5eaweykF5ombVE5WpV15QOM+efZHMn JubJnbkx7yn6ikMueBEhTyF/7nGH+aUSYQpjF9HLdHv4/hvQrnFxlgoibcLZu1ENBw5INE Pb3gWZEDNF+8MrcJaozMIfEe0wT5ak6TJ1dZ3/pbYGBLhFOeaSAQiwz173cwkxGTY6461+ SuuBcP3w3BwRTXRpy9rxrsAzealn9KIotSnXhZbFDNo/GWwBiNZ/xyDz5hmVpvWNZnmo4A XjH0oh7AyKqW4SLbk24iMrBSmMrcUNNitzAh+4W9YtBMkujSOde41Md/aCqzqgCFJu+ZTZ gKt79fQ+c4oySETN6Z8BZY7+KCGpjUWwBD5bLCbJ+f2ZIL4eOdlKz4mzjxh86kSDXYsuD+ mFpKF6yFdqYtE+rG3EEW69SD5rUs8KQ3uu/D3H2AMBDInyS5wdCMRHgROjWg X-ME-Proxy: Feedback-ID: i197146af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 3 Dec 2026 02:31:27 -0500 (EST) Received: by mail (OpenSMTPD) with ESMTPSA id 17abaacd (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 3 Dec 2026 07:31:26 +0000 (UTC) Date: Thu, 3 Dec 2026 08:31:23 +0100 From: Patrick Steinhardt To: Justin Tobler Cc: git@vger.kernel.org, Junio C Hamano Subject: Re: [PATCH v2 1/7] commit-graph: verify all trailer hashes against the chain file Message-ID: References: <20261120-pks-odb-pluggable-commit-graphs-v2-0-31f2341a9932@pks.im> <20261120-pks-odb-pluggable-commit-graphs-v2-1-31f2341a9932@pks.im> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Dec 02, 2026 at 04:29:11PM -0600, Justin Tobler wrote: > On 26/11/20 01:22PM, Patrick Steinhardt wrote: > > @@ -341,6 +342,32 @@ test_expect_success 'warn on base graph chunk incorrect' ' > > ) > > ' > > > > +test_expect_success 'tip layer trailer must match chain file' ' > > + git clone --no-hardlinks . tip-trailer && > > + ( > > + cd tip-trailer && > > + test_line_count = 2 $graphdir/commit-graph-chain && > > + tip_file=$graphdir/graph-$(tail -n 1 $graphdir/commit-graph-chain).graph && > > + corrupt_trailer "$tip_file" && > > + git -c core.commitGraph=false log >expect && > > + git -c core.commitGraph=true log >actual 2>err && > > + test_cmp expect actual && > > + test_grep "commit-graph chain does not match" err > > + ) > > +' > > With this test we corrupt the trailer of the tip layer and check that is > was indeed validated. Previously it would have been ignored. The base > layer should still be loaded and used though, but we don't really check > explicitly which layers were kept. Not sure it there is a good way to do > that anyway though. Not that I'd know of, at least. `test-tool read-graph` gives us some info, but it doesn't give us the ability to figure out which layers have been loaded. Now we could of course extend it to give us that info, but I'm not sure that's worth it for a single test. Hmm. That being said, the test-tool works somewhat funny in that it seems to only give information about the uppermost layer. So we can assert that initially it covers less commits, and then when we corrupt the uppermost layer it covers more commits because it uses the base layer now. I'll adapt the test a bit. Patrick