From: Junio C Hamano <gitster@pobox.com>
To: "René Scharfe" <l.s.r@web.de>
Cc: Derrick Stolee <stolee@gmail.com>,
Derrick Stolee via GitGitGadget <gitgitgadget@gmail.com>,
Git List <git@vger.kernel.org>
Subject: Re: p2000 failure due to empty reflog
Date: Wed, 06 Oct 2021 09:59:45 -0700 [thread overview]
Message-ID: <xmqqsfxersvy.fsf@gitster.g> (raw)
In-Reply-To: <581663a7-9b16-e464-ada7-368f20c99ff1@web.de> ("René Scharfe"'s message of "Tue, 5 Oct 2021 22:28:40 +0200")
René Scharfe <l.s.r@web.de> writes:
> Good point. I have gc.auto=0 in my config, but the tests use their own,
> empty config. A trace shows that "git gc --auto --no-quiet" is started.
> The following patch turns that off and allows the tests to succeed.
>
> Not doing maintenance in parallel to a performance test is a good idea
> anyway,
Sounds like a sensible analysis, and I agree that it is a good idea
to by default disable the maintenance tasks in t/perf (possibly at a
more centralized place).
> but I still don't understand why it would empty the reflog --
> that seems excessive, dangerous even.
>
> One of the maintenance commands from the trace is "git reflog expire
> --all". If I put that in before the "checkout -" test (on top of the
> patch below) then the reflog is emptied again and the test fails.
>
> René
>
> ---
> t/perf/p2000-sparse-operations.sh | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/t/perf/p2000-sparse-operations.sh b/t/perf/p2000-sparse-operations.sh
> index 597626276f..9a06904247 100755
> --- a/t/perf/p2000-sparse-operations.sh
> +++ b/t/perf/p2000-sparse-operations.sh
> @@ -105,6 +105,13 @@ test_perf_on_all () {
> done
> }
>
> +test_expect_success 'disable housekeeping' '
> + for repo in full-v3 full-v4 sparse-v3 sparse-v4
> + do
> + git -C $repo config gc.auto 0
> + done
> +'
> +
> test_perf_on_all git status
> test_perf_on_all git add -A
> test_perf_on_all git add .
> --
> 2.33.0
next prev parent reply other threads:[~2021-10-06 16:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-02 17:37 p2000 failure due to empty reflog René Scharfe
2021-10-04 19:55 ` Derrick Stolee
2021-10-05 20:28 ` René Scharfe
2021-10-06 16:59 ` Junio C Hamano [this message]
2021-10-09 14:39 ` [PATCH] perf: disable automatic housekeeping René Scharfe
2021-10-09 14:57 ` "git reflog expire" blindly trusting timestamps in reflogs Ævar Arnfjörð Bjarmason
2021-10-09 17:50 ` Junio C Hamano
2021-10-11 16:32 ` Jeff King
2021-10-05 21:38 ` p2000 failure due to empty reflog Ævar Arnfjörð Bjarmason
2021-10-09 14:39 ` René Scharfe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqsfxersvy.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
--cc=l.s.r@web.de \
--cc=stolee@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).