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

Re: [PATCH 1/2] p0004: fix prereq declaration

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 19, 2022, 21:33 UTC
Message-ID
<xmqqfshrkjeh.fsf@gitster.g>
In-Reply-To
<0e71792a718512089b94c0d5985db7fd8093c6a5.1660942149.git.gitgitgadget@gmail.com>
"Victoria Dye via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 10 quoted lines
> From: Victoria Dye <vdye@github.com>
>
> Fix multi-threaded 'p0004' test's use of the 'REPO_BIG_ENOUGH_FOR_MULTI'
> prerequisite. Unlike normal 't/' tests, 't/perf/' tests need to have their
> prerequisites declared with the '--prereq' flag.
>
> Signed-off-by: Victoria Dye <vdye@github.com>
> ---
>  t/perf/p0004-lazy-init-name-hash.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Thanks. It is unfortunate that we need to live with this seemingly unnecessary deviation.

Show 12 quoted lines
> diff --git a/t/perf/p0004-lazy-init-name-hash.sh b/t/perf/p0004-lazy-init-name-hash.sh
> index 1afc08fe7f1..85be14e4ddb 100755
> --- a/t/perf/p0004-lazy-init-name-hash.sh
> +++ b/t/perf/p0004-lazy-init-name-hash.sh
> @@ -49,7 +49,7 @@ test_perf "single-threaded, $desc" "
>  	test-tool lazy-init-name-hash --single --count=$count
>  "
>  
> -test_perf REPO_BIG_ENOUGH_FOR_MULTI "multi-threaded, $desc" "
> +test_perf "multi-threaded, $desc" --prereq REPO_BIG_ENOUGH_FOR_MULTI "
>  	test-tool lazy-init-name-hash --multi --count=$count
>  "
Previous: Victoria Dye via GitGitGadgetNext: Victoria Dye via GitGitGadget
Message 3 of 4 in “t/perf: fix broken tests”
  1. 0/2 t/perf: fix broken testsVictoria Dye via GitGitGadget, Aug 19, 2022
  2. 1/2 p0004: fix prereq declarationVictoria Dye via GitGitGadget, Aug 19, 2022
  3. Junio C HamanoAug 19, 2022
  4. 2/2 p0006: fix 'read-tree' argument orderingVictoria Dye via GitGitGadget, Aug 19, 2022

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.