summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-01-23 13:34:36 -0800
committerJunio C Hamano <gitster@pobox.com>2026-01-23 13:34:36 -0800
commit1f047a6fba1701ed59e78150324e631728406d39 (patch)
treec5b29644270a723372c17074a24c9d053bc843e2
parent3d952821298f8f0e6491745a978baec6a2bb0895 (diff)
parent047bd7dfe3b6563ea5f6543533207e3481f3e74c (diff)
downloadgit-1f047a6fba1701ed59e78150324e631728406d39.tar.xz
Merge branch 'js/ci-leak-skip-svn'
Dscho observed that SVN tests are taking too much time in CI leak checking tasks, but most time is spent not in our code but in libsvn code (which happen to be written in Perl), whose leaks have little value to discover for us. Skip SVN, P4, and CVS tests in the leak checking tasks. * js/ci-leak-skip-svn: ci: skip CVS and P4 tests in leaks job, too ci(*-leaks): skip the git-svn tests to save time
-rwxr-xr-xci/lib.sh3
-rw-r--r--t/lib-cvs.sh6
-rw-r--r--t/lib-git-p4.sh5
3 files changed, 14 insertions, 0 deletions
diff --git a/ci/lib.sh b/ci/lib.sh
index f561884d40..3ecbf147db 100755
--- a/ci/lib.sh
+++ b/ci/lib.sh
@@ -356,6 +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'