summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2023-04-21 14:26:02 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2023-04-21 15:21:48 +0200
commit955a73b586e406789dceca711c836499519c6cfe (patch)
tree252dee292f343406434607b1375d67e6c7fe4d11
parentc41bb32867673ac3dd91b5fe8c988c0e663f4182 (diff)
downloadglib-955a73b586e406789dceca711c836499519c6cfe.tar.gz
run-tests: bisect macos errors
-rwxr-xr-x.gitlab-ci/run-tests.sh24
1 files changed, 17 insertions, 7 deletions
diff --git a/.gitlab-ci/run-tests.sh b/.gitlab-ci/run-tests.sh
index 1189493ba..85976515f 100755
--- a/.gitlab-ci/run-tests.sh
+++ b/.gitlab-ci/run-tests.sh
@@ -4,13 +4,23 @@ set -ex
./.gitlab-ci/check-missing-install-tag.py _build
-meson test -v \
- -C _build \
- --timeout-multiplier "${MESON_TEST_TIMEOUT_MULTIPLIER}" \
- "$@"
+git fetch origin main
+git fetch --tags
+git bisect start
+git bisect good 2.76.1
+git bisect bad origin/main
-# Run only the flaky tests, so we can log the failures but without hard failing
+cat <<"EOF" > /tmp/bisect.sh
+# git show d296e9455976f1bcf62a83750606befff72aa06e | patch -f -p1 || true
+echo "int main(void) { return 77; }" > gio/tests/appmonitor.c
meson test -v \
-C _build \
- --timeout-multiplier "${MESON_TEST_TIMEOUT_MULTIPLIER}" \
- "$@" --setup=unstable_tests --suite=failing --suite=flaky || true
+ rec-mutex
+ret=$?
+git diff | patch -Rp1 || true
+
+exit $ret
+EOF
+
+chmod +x /tmp/bisect.sh
+git bisect run bash -x /tmp/bisect.sh