ci: skip CVS and P4 tests in leaks job, too

Looking at the CI logs, the p4 and cvs tests account for another 24 minutes of test time and they offer minimal value for quite a similar reason as the previous step. Let's introduce and use a mechanism to skip these tests to save some resources. Suggested-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Jan 17, 2026 at 10:34 UTC 047bd7dfe3b6563ea5f6543533207e3481f3e74c
3 files changed +13
ci/lib.sh
+2
@@ -356,7 +356,9 @@ linux-musl-meson)
356 ;;
357 linux-leaks|linux-reftable-leaks)
358 export SANITIZE=leak
359 + export NO_CVS_TESTS=LetsSaveSomeTime
360 export NO_SVN_TESTS=LetsSaveSomeTime
361 + export NO_P4_TESTS=LetsSaveSomeTime
362 ;;
363 linux-asan-ubsan)
364 export SANITIZE=address,undefined
t/lib-cvs.sh
+6
@@ -2,6 +2,12 @@
2
3 . ./test-lib.sh
4
5 +if test -n "$NO_CVS_TESTS"
6 +then
7 + skip_all='skipping git cvs tests, NO_CVS_TESTS defined'
8 + test_done
9 +fi
10 +
11 unset CVS_SERVER
12
13 if ! type cvs >/dev/null 2>&1
t/lib-git-p4.sh
+5
@@ -16,6 +16,11 @@ P4D_TIMEOUT=300
16
17 . ./test-lib.sh
18
19 +if test -n "$NO_P4_TESTS"
20 +then
21 + skip_all='skipping git p4 tests, NO_P4_TESTS defined'
22 + test_done
23 +fi
24 if ! test_have_prereq PYTHON
25 then
26 skip_all='skipping git p4 tests; python not available'