From 209f0f0e8516dfb382afdd2375c8b84c912dc420 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Mon, 6 Feb 2023 15:41:38 -0800 Subject: [PATCH] ci: freebsd: stop postgres instance on failure, to prevent log upload failures Discussion: https://postgr.es/m/20230205233057.e2243nl44agf7c3i@alap3.anarazel.de Discussion: https://postgr.es/m/20230206221422.ykidlne7pmywu4ay@awork3.anarazel.de --- .cirrus.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index 1204824d2e..f212978752 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -211,6 +211,12 @@ task: EOF on_failure: + # if the server continues running, it often causes cirrus-ci to fail + # during upload, as it doesn't expect artifacts to change size + stop_running_script: | + su postgres <<-EOF + build/tmp_install/usr/local/pgsql/bin/pg_ctl -D build/runningcheck stop || true + EOF <<: *on_failure_meson cores_script: src/tools/ci/cores_backtrace.sh freebsd /tmp/cores