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>
This commit is contained in:
Patrick Steinhardt
2024-02-07 08:20:35 +01:00
committed by Junio C Hamano
parent 57db2a094d
commit c0350cb964
4 changed files with 22 additions and 1 deletions

View File

@ -266,6 +266,9 @@ jobs:
- jobname: linux-sha256 - jobname: linux-sha256
cc: clang cc: clang
pool: ubuntu-latest pool: ubuntu-latest
- jobname: linux-reftable
cc: clang
pool: ubuntu-latest
- jobname: linux-gcc - jobname: linux-gcc
cc: gcc cc: gcc
cc_package: gcc-8 cc_package: gcc-8
@ -277,6 +280,9 @@ jobs:
- jobname: osx-clang - jobname: osx-clang
cc: clang cc: clang
pool: macos-13 pool: macos-13
- jobname: osx-reftable
cc: clang
pool: macos-13
- jobname: osx-gcc - jobname: osx-gcc
cc: gcc cc: gcc
cc_package: gcc-13 cc_package: gcc-13
@ -287,6 +293,9 @@ jobs:
- jobname: linux-leaks - jobname: linux-leaks
cc: gcc cc: gcc
pool: ubuntu-latest pool: ubuntu-latest
- jobname: linux-reftable-leaks
cc: gcc
pool: ubuntu-latest
- jobname: linux-asan-ubsan - jobname: linux-asan-ubsan
cc: clang cc: clang
pool: ubuntu-latest pool: ubuntu-latest

View File

@ -26,6 +26,9 @@ test:linux:
- jobname: linux-sha256 - jobname: linux-sha256
image: ubuntu:latest image: ubuntu:latest
CC: clang CC: clang
- jobname: linux-reftable
image: ubuntu:latest
CC: clang
- jobname: linux-gcc - jobname: linux-gcc
image: ubuntu:20.04 image: ubuntu:20.04
CC: gcc CC: gcc
@ -40,6 +43,9 @@ test:linux:
- jobname: linux-leaks - jobname: linux-leaks
image: ubuntu:latest image: ubuntu:latest
CC: gcc CC: gcc
- jobname: linux-reftable-leaks
image: ubuntu:latest
CC: gcc
- jobname: linux-asan-ubsan - jobname: linux-asan-ubsan
image: ubuntu:latest image: ubuntu:latest
CC: clang CC: clang
@ -79,6 +85,9 @@ test:osx:
- jobname: osx-clang - jobname: osx-clang
image: macos-13-xcode-14 image: macos-13-xcode-14
CC: clang CC: clang
- jobname: osx-reftable
image: macos-13-xcode-14
CC: clang
artifacts: artifacts:
paths: paths:
- t/failed-test-artifacts - t/failed-test-artifacts

View File

@ -367,7 +367,7 @@ linux-musl)
MAKEFLAGS="$MAKEFLAGS NO_REGEX=Yes ICONV_OMITS_BOM=Yes" MAKEFLAGS="$MAKEFLAGS NO_REGEX=Yes ICONV_OMITS_BOM=Yes"
MAKEFLAGS="$MAKEFLAGS GIT_TEST_UTF8_LOCALE=C.UTF-8" MAKEFLAGS="$MAKEFLAGS GIT_TEST_UTF8_LOCALE=C.UTF-8"
;; ;;
linux-leaks) linux-leaks|linux-reftable-leaks)
export SANITIZE=leak export SANITIZE=leak
export GIT_TEST_PASSING_SANITIZE_LEAK=true export GIT_TEST_PASSING_SANITIZE_LEAK=true
export GIT_TEST_SANITIZE_LEAK_LOG=true export GIT_TEST_SANITIZE_LEAK_LOG=true

View File

@ -37,6 +37,9 @@ linux-clang)
linux-sha256) linux-sha256)
export GIT_TEST_DEFAULT_HASH=sha256 export GIT_TEST_DEFAULT_HASH=sha256
;; ;;
linux-reftable|linux-reftable-leaks|osx-reftable)
export GIT_TEST_DEFAULT_REF_FORMAT=reftable
;;
pedantic) pedantic)
# Don't run the tests; we only care about whether Git can be # Don't run the tests; we only care about whether Git can be
# built. # built.