mirror of
https://github.com/git-for-windows/git.git
synced 2026-06-13 08:57:56 -05:00
Merge branch 'ps/t7527-fix-tap-output' into next
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
This commit is contained in:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -407,7 +407,7 @@ jobs:
|
||||
image: alpine:latest
|
||||
# Supported until 2025-04-02.
|
||||
- jobname: linux32
|
||||
image: i386/ubuntu:focal
|
||||
image: i386/ubuntu:20.04
|
||||
# A RHEL 8 compatible distro. Supported until 2029-05-31.
|
||||
- jobname: almalinux-8
|
||||
image: almalinux:8
|
||||
|
||||
@@ -42,15 +42,15 @@ test:linux:
|
||||
- jobname: linux-reftable
|
||||
image: ubuntu:rolling
|
||||
CC: clang
|
||||
- jobname: linux-breaking-changes
|
||||
image: ubuntu:20.04
|
||||
CC: gcc
|
||||
- jobname: fedora-breaking-changes-meson
|
||||
image: fedora:latest
|
||||
- jobname: linux-TEST-vars
|
||||
image: ubuntu:20.04
|
||||
CC: gcc
|
||||
CC_PACKAGE: gcc-8
|
||||
- jobname: linux-breaking-changes
|
||||
image: ubuntu:rolling
|
||||
CC: gcc
|
||||
- jobname: fedora-breaking-changes-meson
|
||||
image: fedora:latest
|
||||
- jobname: linux-leaks
|
||||
image: ubuntu:rolling
|
||||
CC: gcc
|
||||
@@ -60,13 +60,20 @@ test:linux:
|
||||
- jobname: linux-asan-ubsan
|
||||
image: ubuntu:rolling
|
||||
CC: clang
|
||||
- jobname: linux-musl-meson
|
||||
image: alpine:latest
|
||||
- jobname: linux32
|
||||
image: i386/ubuntu:20.04
|
||||
- jobname: linux-meson
|
||||
image: ubuntu:rolling
|
||||
CC: gcc
|
||||
- jobname: linux-musl-meson
|
||||
image: alpine:latest
|
||||
# Supported until 2025-04-02.
|
||||
- jobname: linux32
|
||||
image: i386/ubuntu:20.04
|
||||
# A RHEL 8 compatible distro. Supported until 2029-05-31.
|
||||
- jobname: almalinux-8
|
||||
image: almalinux:8
|
||||
# Supported until 2026-08-31.
|
||||
- jobname: debian-11
|
||||
image: debian:11
|
||||
artifacts:
|
||||
paths:
|
||||
- t/failed-test-artifacts
|
||||
|
||||
@@ -254,7 +254,7 @@ then
|
||||
CI_OS_NAME=osx
|
||||
JOBS=$(nproc)
|
||||
;;
|
||||
*,alpine:*|*,fedora:*|*,ubuntu:*|*,i386/ubuntu:*)
|
||||
*,almalinux:*|*,alpine:*|*,debian:*|*,fedora:*|*,ubuntu:*|*,i386/ubuntu:*)
|
||||
CI_OS_NAME=linux
|
||||
JOBS=$(nproc)
|
||||
;;
|
||||
|
||||
@@ -65,6 +65,7 @@ pidfile="$TRASH_DIRECTORY/p4d.pid"
|
||||
|
||||
stop_p4d_and_watchdog () {
|
||||
kill -9 $p4d_pid $watchdog_pid
|
||||
wait $p4d_pid $watchdog_pid 2>/dev/null
|
||||
}
|
||||
|
||||
# git p4 submit generates a temp file, which will
|
||||
@@ -174,8 +175,7 @@ retry_until_success () {
|
||||
}
|
||||
|
||||
stop_and_cleanup_p4d () {
|
||||
kill -9 $p4d_pid $watchdog_pid
|
||||
wait $p4d_pid
|
||||
stop_p4d_and_watchdog
|
||||
rm -rf "$db" "$cli" "$pidfile"
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,8 @@ maybe_timeout () {
|
||||
"$@"
|
||||
fi
|
||||
}
|
||||
verify_fsmonitor_works () {
|
||||
|
||||
test_lazy_prereq FSMONITOR_WORKS '
|
||||
git init test_fsmonitor_smoke || return 1
|
||||
|
||||
GIT_TRACE_FSMONITOR="$PWD/smoke.trace" &&
|
||||
@@ -50,9 +51,9 @@ verify_fsmonitor_works () {
|
||||
ret=$?
|
||||
rm -rf test_fsmonitor_smoke smoke.trace
|
||||
return $ret
|
||||
}
|
||||
'
|
||||
|
||||
if ! verify_fsmonitor_works
|
||||
if ! test_have_prereq FSMONITOR_WORKS
|
||||
then
|
||||
skip_all="filesystem does not deliver fsmonitor events (container/overlayfs?)"
|
||||
test_done
|
||||
|
||||
@@ -18,8 +18,9 @@ test_invalid_grep_expression() {
|
||||
'
|
||||
}
|
||||
|
||||
LC_ALL=en_US.UTF-8 test-tool regex '^.$' '¿' &&
|
||||
test_set_prereq MB_REGEX
|
||||
test_lazy_prereq MB_REGEX '
|
||||
LC_ALL=en_US.UTF-8 test-tool regex "^.$" "¿"
|
||||
'
|
||||
|
||||
cat >hello.c <<EOF
|
||||
#include <assert.h>
|
||||
|
||||
@@ -1299,10 +1299,10 @@ test_done () {
|
||||
error "Tests passed but trash directory already removed before test cleanup; aborting"
|
||||
|
||||
cd "$TRASH_DIRECTORY/.." &&
|
||||
rm -fr "$TRASH_DIRECTORY" || {
|
||||
rm -fr "$TRASH_DIRECTORY" 2>/dev/null || {
|
||||
# try again in a bit
|
||||
sleep 5;
|
||||
rm -fr "$TRASH_DIRECTORY"
|
||||
rm -fr "$TRASH_DIRECTORY" 2>/dev/null
|
||||
} ||
|
||||
error "Tests passed but test cleanup failed; aborting"
|
||||
fi
|
||||
@@ -1532,6 +1532,12 @@ then
|
||||
BAIL_OUT 'You need to build test-tool; Run "make t/helper/test-tool" in the source (toplevel) directory'
|
||||
fi
|
||||
|
||||
if test -n "$HARNESS_ACTIVE"
|
||||
then
|
||||
say "TAP version 13"
|
||||
say "pragma +strict"
|
||||
fi
|
||||
|
||||
# Are we running this test at all?
|
||||
remove_trash=
|
||||
this_test=${0##*/}
|
||||
|
||||
Reference in New Issue
Block a user