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

Re: [PATCH v1] read-cache: add GIT_TEST_INDEX_VERSION support

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 13, 2018, 22:08 UTC
Message-ID
<xmqqh8itdp9n.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20180913215616.GD1719@hank.intra.tgummerer.com>
Thomas Gummerer <t.gummerer@gmail.com> writes:
Show 9 quoted lines
> Thanks, I do think this is a good idea.  I do however share Ævar's
> concern in https://public-inbox.org/git/87h8itkz2h.fsf@evledraar.gmail.com/.
> I have TEST_GIT_INDEX_VERSION=4 set in my config.mak since quite a
> long time, and had I missed this thread, I would all of a sudden not
> run the test suite with index format 4 anymore without any notice.
>
> I think the suggestion of erroring out if TEST_GIT_INDEX_VERSION is
> set would be useful in this case (and probably others in which you're
> renaming these variables).

I am not enthused by "you are using an old variable---we fail your build/test". The assumption is that people let config.mak laying around regardless of how new/old the vintage of Git they are building and testing. I do not think you'd want to adjust your config.mak as you switch between 'maint' and 'next.

I think it is OK to make it error only if the old one is set without the new one. Then people can have _both_ set to the same value during the period in which the topic sails through pu down to next down to master, after seeing an failure once while building and testing 'pu'.

> Btw, I think it would be nice to have all these renaming/documenting
> variables for the test suite patches in one series, so they are easier
> to look at with more context.

Yeah, even though these three were posted as independent changes, their additions to t/README inevitably conflicted with each other.

Previous: Thomas GummererNext: Ben Peart
Message 5 of 10 in “read-cache: add GIT_TEST_INDEX_VERSION support”
  1. read-cache: add GIT_TEST_INDEX_VERSION supportBen Peart, Sep 12, 2018
  2. Thomas GummererSep 12, 2018
  3. Ben PeartSep 13, 2018
  4. Thomas GummererSep 13, 2018
  5. Junio C HamanoSep 13, 2018
  6. Ben PeartSep 14, 2018
  7. Junio C HamanoSep 14, 2018
  8. read-cache: update TEST_GIT_INDEX_VERSION supportBen Peart, Sep 13, 2018
  9. Ævar Arnfjörð BjarmasonSep 13, 2018
  10. Junio C HamanoSep 13, 2018

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.