git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] t5310-pack-bitmaps: skip JGit tests with SHA256

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Nov 18, 2020, 18:30 UTC
Message-ID
<20201118183022.GA8396@szeder.dev>
In-Reply-To
<nycvar.QRO.7.76.6.2011152252520.18437@tvgsbejvaqbjf.bet>
On Sun, Nov 15, 2020 at 11:08:40PM +0100, Johannes Schindelin wrote:
Show 21 quoted lines
> Hi Gábor,
> 
> On Fri, 13 Nov 2020, SZEDER Gábor wrote:
> 
> > In 't5310-pack-bitmaps.sh' two tests make sure that our pack bitmaps
> > are compatible with JGit's bitmaps.  Alas, not even the most recent
> > JGit version (5.9.0.202009080501-r) supports SHA256 yet, so when this
> > test script is run with GIT_TEST_DEFAULT_HASH=sha256 on a setup with
> > JGit installed in PATH, then these two tests fail.
> 
> I wonder whether there is a way to change the `JGIT` prereq in a way
> that automagically will recognize a (future) SHA256-enabled JGit?
> Something like
> 
> test_lazy_prereq JGIT '
> 	jgit --version &&
>         test_have_prereq !SHA1 ||
> 	test "$(git rev-list -n 1 HEAD)" = "$(jgit rev-list -n 1 HEAD)"
> '
> 
> What do you think?

I'm not sure. It is surely a substantial effort to fully support SHA256, and I suppose there will be JGit versions with only partial support. I'm worried that there will be versions that can already read SHA256 objects, but can't read/write SHA256 pack bitmaps, or can't transfer/negotiate SHA256 objects yet (for t5512), so even though they could fulfill such a prereq test above, the test would still fail.

Previous: Johannes SchindelinNext: Jeff King
Message 6 of 9 in “t5310-pack-bitmaps: skip JGit tests with SHA256”
  1. t5310-pack-bitmaps: skip JGit tests with SHA256SZEDER Gábor, Nov 13, 2020
  2. Taylor BlauNov 13, 2020
  3. brian m. carlsonNov 13, 2020
  4. SZEDER GáborNov 15, 2020
  5. Johannes SchindelinNov 15, 2020
  6. SZEDER GáborNov 18, 2020
  7. Jeff KingNov 18, 2020
  8. Johannes SchindelinNov 19, 2020
  9. Jeff KingNov 19, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.