Skip to content

Commit c0350cb

Browse files
pks-tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 57db2a0 commit c0350cb

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,9 @@ jobs:
266266
- jobname: linux-sha256
267267
cc: clang
268268
pool: ubuntu-latest
269+
- jobname: linux-reftable
270+
cc: clang
271+
pool: ubuntu-latest
269272
- jobname: linux-gcc
270273
cc: gcc
271274
cc_package: gcc-8
@@ -277,6 +280,9 @@ jobs:
277280
- jobname: osx-clang
278281
cc: clang
279282
pool: macos-13
283+
- jobname: osx-reftable
284+
cc: clang
285+
pool: macos-13
280286
- jobname: osx-gcc
281287
cc: gcc
282288
cc_package: gcc-13
@@ -287,6 +293,9 @@ jobs:
287293
- jobname: linux-leaks
288294
cc: gcc
289295
pool: ubuntu-latest
296+
- jobname: linux-reftable-leaks
297+
cc: gcc
298+
pool: ubuntu-latest
290299
- jobname: linux-asan-ubsan
291300
cc: clang
292301
pool: ubuntu-latest

.gitlab-ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ test:linux:
2626
- jobname: linux-sha256
2727
image: ubuntu:latest
2828
CC: clang
29+
- jobname: linux-reftable
30+
image: ubuntu:latest
31+
CC: clang
2932
- jobname: linux-gcc
3033
image: ubuntu:20.04
3134
CC: gcc
@@ -40,6 +43,9 @@ test:linux:
4043
- jobname: linux-leaks
4144
image: ubuntu:latest
4245
CC: gcc
46+
- jobname: linux-reftable-leaks
47+
image: ubuntu:latest
48+
CC: gcc
4349
- jobname: linux-asan-ubsan
4450
image: ubuntu:latest
4551
CC: clang
@@ -79,6 +85,9 @@ test:osx:
7985
- jobname: osx-clang
8086
image: macos-13-xcode-14
8187
CC: clang
88+
- jobname: osx-reftable
89+
image: macos-13-xcode-14
90+
CC: clang
8291
artifacts:
8392
paths:
8493
- t/failed-test-artifacts

ci/lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ linux-musl)
367367
MAKEFLAGS="$MAKEFLAGS NO_REGEX=Yes ICONV_OMITS_BOM=Yes"
368368
MAKEFLAGS="$MAKEFLAGS GIT_TEST_UTF8_LOCALE=C.UTF-8"
369369
;;
370-
linux-leaks)
370+
linux-leaks|linux-reftable-leaks)
371371
export SANITIZE=leak
372372
export GIT_TEST_PASSING_SANITIZE_LEAK=true
373373
export GIT_TEST_SANITIZE_LEAK_LOG=true

ci/run-build-and-tests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ linux-clang)
3737
linux-sha256)
3838
export GIT_TEST_DEFAULT_HASH=sha256
3939
;;
40+
linux-reftable|linux-reftable-leaks|osx-reftable)
41+
export GIT_TEST_DEFAULT_REF_FORMAT=reftable
42+
;;
4043
pedantic)
4144
# Don't run the tests; we only care about whether Git can be
4245
# built.

0 commit comments

Comments
 (0)