diff options
author | Andres Freund <andres@anarazel.de> | 2023-02-06 15:41:38 -0800 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2023-02-06 15:41:38 -0800 |
commit | 209f0f0e8516dfb382afdd2375c8b84c912dc420 (patch) | |
tree | f2d59899edd4e8f948ada17748f89b92dfdfb6f0 /.cirrus.yml | |
parent | 6c14fb17e4be70e0f3c03d2f9f6c540b6d5bdcbe (diff) | |
download | postgresql-209f0f0e8516dfb382afdd2375c8b84c912dc420.tar.gz |
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
Diffstat (limited to '.cirrus.yml')
-rw-r--r-- | .cirrus.yml | 6 |
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 |