git/ci
Patrick Steinhardt 1fc7ddf35b test-lib: unconditionally enable leak checking
Over the last two releases we have plugged a couple hundred of memory
leaks exposed by the Git test suite. With the preceding commits we have
finally fixed the last leak exposed by our test suite, which means that
we are now basically leak free wherever we have branch coverage.

From hereon, the Git test suite should ideally stay free of memory
leaks. Most importantly, any test suite that is being added should
automatically be subject to the leak checker, and if that test does not
pass it is a strong signal that the added code introduced new memory
leaks and should not be accepted without further changes.

Drop the infrastructure around TEST_PASSES_SANITIZE_LEAK to reflect this
new requirement. Like this, all test suites will be subject to the leak
checker by default.

This is being intentionally strict, but we still have an escape hatch:
the SANITIZE_LEAK prerequisite. There is one known case in t5601 where
the leak sanitizer itself is buggy, so adding this prereq in such cases
is acceptable. Another acceptable situation is when a newly added test
uncovers preexisting memory leaks: when fixing that memory leak would be
sufficiently complicated it is fine to annotate and document the leak
accordingly. But in any case, the burden is now on the patch author to
explain why exactly they have to add the SANITIZE_LEAK prerequisite.

The TEST_PASSES_SANITIZE_LEAK annotations will be dropped in the next
patch.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-11-21 08:23:47 +09:00
..
config ci: deprecate ci/config/allow-ref script 2023-08-30 15:56:11 -07:00
util travis-ci: include the trash directories of failed tests in the trace log 2018-08-01 09:59:36 -07:00
check-directional-formatting.bash ci: unify bash calling convention 2024-07-08 16:23:05 -07:00
check-whitespace.sh check-whitespace: detect if no base_commit is provided 2024-07-23 09:56:50 -07:00
install-dependencies.sh Merge branch 'ja/doc-synopsis-markup' 2024-10-10 14:22:24 -07:00
install-sdk.ps1 ci: create script to set up Git for Windows SDK 2024-10-09 11:33:04 -07:00
lib.sh test-lib: unconditionally enable leak checking 2024-11-21 08:23:47 +09:00
make-test-artifacts.sh ci(github): use grouping also in the `win-build` job 2022-06-13 09:58:41 -07:00
mount-fileshare.sh Add a build definition for Azure DevOps 2019-01-29 09:26:46 -08:00
print-test-failures.sh ci: handle TEST_OUTPUT_DIRECTORY when printing test failures 2024-01-18 11:53:17 -08:00
run-build-and-minimal-fuzzers.sh Merge branch 'jc/fuzz-sans-curl' 2024-07-02 09:59:01 -07:00
run-build-and-tests.sh midx: implement support for writing incremental MIDX chains 2024-08-06 12:01:39 -07:00
run-static-analysis.sh i18n CI: stop allowing non-ASCII source messages in po/git.pot 2022-05-26 10:30:28 -07:00
run-style-check.sh ci/style-check: add `RemoveBracesLLVM` in CI job 2024-07-23 09:56:50 -07:00
run-test-slice.sh ci: use test-tool as unit test runner on Windows 2024-05-06 14:06:35 -07:00
test-documentation.sh ci/test-documentation: work around SyntaxWarning in Python 3.12 2024-06-06 08:20:51 -07:00