summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund2023-02-06 23:41:38 +0000
committerAndres Freund2023-02-06 23:41:38 +0000
commit209f0f0e8516dfb382afdd2375c8b84c912dc420 (patch)
treef2d59899edd4e8f948ada17748f89b92dfdfb6f0
parent6c14fb17e4be70e0f3c03d2f9f6c540b6d5bdcbe (diff)
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
-rw-r--r--.cirrus.yml6
1 files changed, 6 insertions, 0 deletions
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