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

Re: [PATCH] ci(*-leaks): skip the git-svn tests to save time

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 20, 2026, 15:42 UTC
Message-ID
<xmqq1pjk2sv2.fsf@gitster.g>
In-Reply-To
<79c29032-dc32-4030-95ad-dfbd50d9b6ab@gmail.com>
Phillip Wood <phillip.wood123@gmail.com> writes:
> The patch looks good to me, it is very convenient that we can put the 
> test in the library files rather than each test file. Should we drop 
> these tests from the ASan job as well?
That's probably a good idea.

I also was wondering if we want a blanket NO_FOO_TESTS that we can use instead listing all. That FOO should not be SCM, though, as the reason why we exclude the tests is not because they are test about foreign SCM. We exclude them as low value because testing them exercises little code of ours that we may make mistakes these checks are trying to uncover and that we can fix when they do. NO_FOREIGN_CODE_TESTS? I dunno.

Thanks.
Show 59 quoted lines
> Thanks
>
> Phillip
>
>> Suggested-by: Phillip Wood <phillip.wood123@gmail.com>
>> Signed-off-by: Junio C Hamano <gitster@pobox.com>
>> ---
>>   ci/lib.sh       | 2 ++
>>   t/lib-cvs.sh    | 6 ++++++
>>   t/lib-git-p4.sh | 5 +++++
>>   3 files changed, 13 insertions(+)
>> 
>> diff --git a/ci/lib.sh b/ci/lib.sh
>> index a165c7f268..3ecbf147db 100755
>> --- a/ci/lib.sh
>> +++ b/ci/lib.sh
>> @@ -356,7 +356,9 @@ linux-musl-meson)
>>   	;;
>>   linux-leaks|linux-reftable-leaks)
>>   	export SANITIZE=leak
>> +	export NO_CVS_TESTS=LetsSaveSomeTime
>>   	export NO_SVN_TESTS=LetsSaveSomeTime
>> +	export NO_P4_TESTS=LetsSaveSomeTime
>>   	;;
>>   linux-asan-ubsan)
>>   	export SANITIZE=address,undefined
>> diff --git a/t/lib-cvs.sh b/t/lib-cvs.sh
>> index 57b9b2db9b..c8b4404888 100644
>> --- a/t/lib-cvs.sh
>> +++ b/t/lib-cvs.sh
>> @@ -2,6 +2,12 @@
>>   
>>   . ./test-lib.sh
>>   
>> +if test -n "$NO_CVS_TESTS"
>> +then
>> +	skip_all='skipping git cvs tests, NO_CVS_TESTS defined'
>> +	test_done
>> +fi
>> +
>>   unset CVS_SERVER
>>   
>>   if ! type cvs >/dev/null 2>&1
>> diff --git a/t/lib-git-p4.sh b/t/lib-git-p4.sh
>> index 2a5b8738ea..d22e9c684a 100644
>> --- a/t/lib-git-p4.sh
>> +++ b/t/lib-git-p4.sh
>> @@ -16,6 +16,11 @@ P4D_TIMEOUT=300
>>   
>>   . ./test-lib.sh
>>   
>> +if test -n "$NO_P4_TESTS"
>> +then
>> +	skip_all='skipping git p4 tests, NO_P4_TESTS defined'
>> +	test_done
>> +fi
>>   if ! test_have_prereq PYTHON
>>   then
>>   	skip_all='skipping git p4 tests; python not available'
Previous: Phillip WoodNext: Phillip Wood
Message 9 of 13 in “ci(*-leaks): skip the git-svn tests to save time”
  1. ci(*-leaks): skip the git-svn tests to save timeJohannes Schindelin via GitGitGadget, Jan 16, 2026
  2. Junio C HamanoJan 16, 2026
  3. Phillip WoodJan 17, 2026
  4. Junio C HamanoJan 17, 2026
  5. Kristoffer HaugsbakkJan 17, 2026
  6. Junio C HamanoJan 18, 2026
  7. Phillip WoodJan 20, 2026
  8. Phillip WoodJan 20, 2026
  9. Junio C HamanoJan 20, 2026
  10. Phillip WoodJan 23, 2026
  11. Junio C HamanoJan 23, 2026
  12. Phillip WoodJan 26, 2026
  13. Junio C HamanoJan 26, 2026

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.