postgres.git / summary / log / commit / refs
commit 209f0f0e8516dfb382afdd2375c8b84c912dc420
Author: Andres Freund <andres@anarazel.de>
Date: Mon Feb 06 23:41:38 2023 +0000
First released in: 16.0
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 1204824d2eb..f2129787529 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
[parent: 6c14fb17e4be]