Merge branch 'ps/t7527-fix-tap-output' · git/git@e02da45 · GitHub
Skip to content

Commit e02da45

Browse files
committed
Merge branch 'ps/t7527-fix-tap-output'
A recent regression in t7527 that broke TAP output has been fixed, some other test noise that also broke TAP output has been silenced, and 'prove' is now configured to fail on invalid TAP output to prevent future regressions. * ps/t7527-fix-tap-output: t: let prove fail when parsing invalid TAP output t/lib-git-p4: silence output when killing p4d and its watchdog t/test-lib: silence EBUSY errors on Windows during test cleanup t7810: turn MB_REGEX check into a lazy prereq t7527: fix broken TAP output ci: unify Linux images across GitLab and GitHub gitlab-ci: add missing Linux jobs gitlab-ci: rearrange Linux jobs to match GitHub's order
2 parents 7afc0f1 + 389c830 commit e02da45

7 files changed

Lines changed: 34 additions & 19 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion

.gitlab-ci.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ test:linux:
4242
- jobname: linux-reftable
4343
image: ubuntu:rolling
4444
CC: clang
45-
- jobname: linux-breaking-changes
46-
image: ubuntu:20.04
47-
CC: gcc
48-
- jobname: fedora-breaking-changes-meson
49-
image: fedora:latest
5045
- jobname: linux-TEST-vars
5146
image: ubuntu:20.04
5247
CC: gcc
5348
CC_PACKAGE: gcc-8
49+
- jobname: linux-breaking-changes
50+
image: ubuntu:rolling
51+
CC: gcc
52+
- jobname: fedora-breaking-changes-meson
53+
image: fedora:latest
5454
- jobname: linux-leaks
5555
image: ubuntu:rolling
5656
CC: gcc
@@ -60,13 +60,20 @@ test:linux:
6060
- jobname: linux-asan-ubsan
6161
image: ubuntu:rolling
6262
CC: clang
63+
- jobname: linux-meson
64+
image: ubuntu:rolling
65+
CC: gcc
6366
- jobname: linux-musl-meson
6467
image: alpine:latest
68+
# Supported until 2025-04-02.
6569
- jobname: linux32
6670
image: i386/ubuntu:20.04
67-
- jobname: linux-meson
68-
image: ubuntu:rolling
69-
CC: gcc
71+
# A RHEL 8 compatible distro. Supported until 2029-05-31.
72+
- jobname: almalinux-8
73+
image: almalinux:8
74+
# Supported until 2026-08-31.
75+
- jobname: debian-11
76+
image: debian:11
7077
artifacts:
7178
paths:
7279
- t/failed-test-artifacts

ci/lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ then
254254
CI_OS_NAME=osx
255255
JOBS=$(nproc)
256256
;;
257-
*,alpine:*|*,fedora:*|*,ubuntu:*|*,i386/ubuntu:*)
257+
*,almalinux:*|*,alpine:*|*,debian:*|*,fedora:*|*,ubuntu:*|*,i386/ubuntu:*)
258258
CI_OS_NAME=linux
259259
JOBS=$(nproc)
260260
;;

t/lib-git-p4.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ pidfile="$TRASH_DIRECTORY/p4d.pid"
6565

6666
stop_p4d_and_watchdog () {
6767
kill -9 $p4d_pid $watchdog_pid
68+
wait $p4d_pid $watchdog_pid 2>/dev/null
6869
}
6970

7071
# git p4 submit generates a temp file, which will
@@ -174,8 +175,7 @@ retry_until_success () {
174175
}
175176

176177
stop_and_cleanup_p4d () {
177-
kill -9 $p4d_pid $watchdog_pid
178-
wait $p4d_pid
178+
stop_p4d_and_watchdog
179179
rm -rf "$db" "$cli" "$pidfile"
180180
}
181181

t/t7527-builtin-fsmonitor.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ maybe_timeout () {
2525
"$@"
2626
fi
2727
}
28-
verify_fsmonitor_works () {
28+
29+
test_lazy_prereq FSMONITOR_WORKS '
2930
git init test_fsmonitor_smoke || return 1
3031
3132
GIT_TRACE_FSMONITOR="$PWD/smoke.trace" &&
@@ -50,9 +51,9 @@ verify_fsmonitor_works () {
5051
ret=$?
5152
rm -rf test_fsmonitor_smoke smoke.trace
5253
return $ret
53-
}
54+
'
5455

55-
if ! verify_fsmonitor_works
56+
if ! test_have_prereq FSMONITOR_WORKS
5657
then
5758
skip_all="filesystem does not deliver fsmonitor events (container/overlayfs?)"
5859
test_done

t/t7810-grep.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ test_invalid_grep_expression() {
1818
'
1919
}
2020

21-
LC_ALL=en_US.UTF-8 test-tool regex '^.$' '¿' &&
22-
test_set_prereq MB_REGEX
21+
test_lazy_prereq MB_REGEX '
22+
LC_ALL=en_US.UTF-8 test-tool regex "^.$" "¿"
23+
'
2324

2425
cat >hello.c <<EOF
2526
#include <assert.h>

t/test-lib.sh

Lines changed: 8 additions & 2 deletions

0 commit comments

Comments
 (0)