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

Re: [PATCH] t7063: fix breakage with split index

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 7, 2015, 06:20 UTC
Message-ID
<xmqq1thodop8.fsf@gitster.dls.corp.google.com>
In-Reply-To
<1433547093-6616-1-git-send-email-t.gummerer@gmail.com>
Thomas Gummerer <t.gummerer@gmail.com> writes:
> When running the test suite with GIT_TEST_SPLIT_INDEX set, tests 17-18
> in t7063 fail.  Unset GIT_TEST_SPLIT_INDEX at the beginning of the test,
> in order to fix it.
That is not fixing but sweeping the problem under the rug, is it?

Duy, untracked-cache is a fairly new toy and I wouldn't be surprised if it has un-thought-out interaction with split-index which is also a fairly new exotic toy. As both are from you, can you take a look at it?

We may want to make it easier to run tests with TEST-SPLIT-INDEX, if we envision that the feature will bring us sufficient benefit and we would eventually want to encourage its use to more people. As it stands now, only people who are curious enough opt into trying it out by exporting the environment, which would be done by a tiny minority of developers and users.

Thanks.
Show 26 quoted lines
>
> Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
> ---
>
> Hi,
>
> This breakage is both in the current master and next.  I'm not entirely
> sure this is the best way to solve the issue, but unfortunately I don't
> have any more time to look into this.
>
>  t/t7063-status-untracked-cache.sh | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/t/t7063-status-untracked-cache.sh b/t/t7063-status-untracked-cache.sh
> index bd4806c..2f958c7 100755
> --- a/t/t7063-status-untracked-cache.sh
> +++ b/t/t7063-status-untracked-cache.sh
> @@ -8,6 +8,8 @@ avoid_racy() {
>  	sleep 1
>  }
>  
> +unset GIT_TEST_SPLIT_INDEX
> +
>  # It's fine if git update-index returns an error code other than one,
>  # it'll be caught in the first test.
>  test_lazy_prereq UNTRACKED_CACHE '
Previous: Thomas GummererNext: Nguyễn Thái Ngọc Duy
Message 2 of 4 in “t7063: fix breakage with split index”
  1. t7063: fix breakage with split indexThomas Gummerer, Jun 5, 2015
  2. Junio C HamanoJun 7, 2015
  3. read-cache: fix untracked cache invalidation when split-index is usedNguyễn Thái Ngọc Duy, Jun 7, 2015
  4. Junio C HamanoJun 8, 2015

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.