mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
BuildKite: Make disk usage monitoring message more helpful.
PiperOrigin-RevId: 557305229
This commit is contained in:
committed by
gVisor bot
parent
181360c23e
commit
fbf87399d3
@@ -2,9 +2,12 @@ set -euo pipefail
|
||||
|
||||
if POSIXLY_CORRECT=true df --local --output=pcent,ipcent,target | grep -vE '/snap/' | grep -qE '9[4-9]%|100%'; then
|
||||
echo "Disk usage has reached critical level, node is bad." >&2
|
||||
echo "Automated monitoring should recycle this node soon." >&2
|
||||
echo "If this made your build pipeline fail, sorry!" >&2
|
||||
echo "Try your luck again." >&2
|
||||
sudo df -h --local | sed -r 's/^/[df] /' >&2
|
||||
sleep 3
|
||||
sudo poweroff
|
||||
sleep 10
|
||||
killall buildkite-agent
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user