From 8f5698f49d11d41dfe7b97c63e98b543e6d5de7a Mon Sep 17 00:00:00 2001 From: Sven Klemm Date: Tue, 11 Oct 2022 00:05:10 +0200 Subject: [PATCH] Show information about OOM killer in CI Include OOM kill event logs into error printout. Previously these would only be visible by inspecting the postgres log and looking for killed by signal 9. --- .github/workflows/linux-build-and-test.yaml | 2 ++ .github/workflows/sanitizer-build-and-test.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/linux-build-and-test.yaml b/.github/workflows/linux-build-and-test.yaml index 2d0f13067..f0112bbdc 100644 --- a/.github/workflows/linux-build-and-test.yaml +++ b/.github/workflows/linux-build-and-test.yaml @@ -144,6 +144,8 @@ jobs: # wait in case there are in-progress coredumps sleep 10 if coredumpctl -q list >/dev/null; then echo "::set-output name=coredumps::true"; fi + # print OOM killer information + sudo journalctl --system -q --facility=kern --grep "Killed process" || true fi if [[ -s regression.log ]]; then echo "::set-output name=regression_diff::true"; fi grep -e 'FAILED' -e 'failed (ignored)' installcheck.log || true diff --git a/.github/workflows/sanitizer-build-and-test.yaml b/.github/workflows/sanitizer-build-and-test.yaml index 3e1f41c79..233df6f9a 100644 --- a/.github/workflows/sanitizer-build-and-test.yaml +++ b/.github/workflows/sanitizer-build-and-test.yaml @@ -118,6 +118,8 @@ jobs: # wait in case there are in-progress coredumps sleep 10 if coredumpctl -q list >/dev/null; then echo "::set-output name=coredumps::true"; fi + # print OOM killer information + sudo journalctl --system -q --facility=kern --grep "Killed process" || true fi if [[ -s regression.log ]]; then echo "::set-output name=regression_diff::true"; fi grep -e 'FAILED' -e 'failed (ignored)' installcheck.log || true