ci: add jobs to test with the reftable backend

Add CI jobs for both GitHub Workflows and GitLab CI to run Git with the new reftable backend. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Patrick Steinhardt committed Feb 7, 2024 at 08:20 UTC c0350cb96465b152ce67ef381af058594713f99b
4 files changed +22 -1
.github/workflows/main.yml
+9
@@ -266,6 +266,9 @@ jobs:
266 - jobname: linux-sha256
267 cc: clang
268 pool: ubuntu-latest
269 + - jobname: linux-reftable
270 + cc: clang
271 + pool: ubuntu-latest
272 - jobname: linux-gcc
273 cc: gcc
274 cc_package: gcc-8
@@ -277,6 +280,9 @@ jobs:
280 - jobname: osx-clang
281 cc: clang
282 pool: macos-13
283 + - jobname: osx-reftable
284 + cc: clang
285 + pool: macos-13
286 - jobname: osx-gcc
287 cc: gcc
288 cc_package: gcc-13
@@ -287,6 +293,9 @@ jobs:
293 - jobname: linux-leaks
294 cc: gcc
295 pool: ubuntu-latest
296 + - jobname: linux-reftable-leaks
297 + cc: gcc
298 + pool: ubuntu-latest
299 - jobname: linux-asan-ubsan
300 cc: clang
301 pool: ubuntu-latest
.gitlab-ci.yml
+9
@@ -26,6 +26,9 @@ test:linux:
26 - jobname: linux-sha256
27 image: ubuntu:latest
28 CC: clang
29 + - jobname: linux-reftable
30 + image: ubuntu:latest
31 + CC: clang
32 - jobname: linux-gcc
33 image: ubuntu:20.04
34 CC: gcc
@@ -40,6 +43,9 @@ test:linux:
43 - jobname: linux-leaks
44 image: ubuntu:latest
45 CC: gcc
46 + - jobname: linux-reftable-leaks
47 + image: ubuntu:latest
48 + CC: gcc
49 - jobname: linux-asan-ubsan
50 image: ubuntu:latest
51 CC: clang
@@ -79,6 +85,9 @@ test:osx:
85 - jobname: osx-clang
86 image: macos-13-xcode-14
87 CC: clang
88 + - jobname: osx-reftable
89 + image: macos-13-xcode-14
90 + CC: clang
91 artifacts:
92 paths:
93 - t/failed-test-artifacts
ci/lib.sh
+1 -1
@@ -367,7 +367,7 @@ linux-musl)
367 MAKEFLAGS="$MAKEFLAGS NO_REGEX=Yes ICONV_OMITS_BOM=Yes"
368 MAKEFLAGS="$MAKEFLAGS GIT_TEST_UTF8_LOCALE=C.UTF-8"
369 ;;
370 -linux-leaks)
370 +linux-leaks|linux-reftable-leaks)
371 export SANITIZE=leak
372 export GIT_TEST_PASSING_SANITIZE_LEAK=true
373 export GIT_TEST_SANITIZE_LEAK_LOG=true
ci/run-build-and-tests.sh
+3
@@ -37,6 +37,9 @@ linux-clang)
37 linux-sha256)
38 export GIT_TEST_DEFAULT_HASH=sha256
39 ;;
40 +linux-reftable|linux-reftable-leaks|osx-reftable)
41 + export GIT_TEST_DEFAULT_REF_FORMAT=reftable
42 + ;;
43 pedantic)
44 # Don't run the tests; we only care about whether Git can be
45 # built.