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

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

From
Jeff King <peff@peff.net>
Date
Nov 19, 2020, 15:44 UTC
Message-ID
<20201119154458.GA25426@coredump.intra.peff.net>
In-Reply-To
<nycvar.QRO.7.76.6.2011191215140.56@tvgsbejvaqbjf.bet>
On Thu, Nov 19, 2020 at 12:19:10PM +0100, Johannes Schindelin wrote:
Show 17 quoted lines
> > Yeah, it's likely we'll need to just match the output of "jgit
> > --version". Since their support is hypothetical at this point, I think
> > it makes sense to go with your original patch. It does mean we'll later
> > have to remove the SHA1 prereq from those tests, but that's OK. It's not
> > very many tests, and your commit message clearly explains what is going
> > on.
> 
> It's not just removing the SHA-1 prereq, but testing for a new-enough
> version.
> 
> This most likely entails adding a new test helper to `t/helper/` that
> allows using `versioncmp()` via the command-line, with some clever way to
> indicate the different outcomes, and then using that in a new prereq.
> 
> You know, if it was me, I would opt for the simpler (and future-proof)
> solution I presented above. But hey, if that complex solution using
> `versioncmp()` floats your boat, who am I to stop you.

But that was my (and Gábor's) point: it is not future proof, because we don't know whether it is a sufficient test until we actually see a version of JGit with the correct support.

Not only that, but your proposed solution relies on having commits in the repository, which is not something that a prereq should be relying on.

We may or may not need the version check eventually, but my point is that we should be punting on it until we know what is needed.

-Peff
Previous: Johannes Schindelin
Message 9 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.