Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Print the tests' last lines when they hang

Țugui Dragoșd8b65a770d80
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index 4cf0ad20..9db105fd 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -57,6 +57,8 @@ jobs:
started=$(descendants "$tests")
echo "Still running after 20 minutes, the tests and every program they started:"
ps -o pid,ppid,etime,command -p "$(echo "$tests" $started | tr ' ' ',')" || true
+ echo "The last lines the tests wrote:"
+ tail -n 60 "$log" || true
for helper in $(pgrep -P "$tests" -f swiftpm-testing-helper); do
sample "$helper" 5 -file "$RUNNER_TEMP/sample-$helper.txt" > /dev/null 2>&1 \
|| sudo -n sample "$helper" 5 -file "$RUNNER_TEMP/sample-$helper.txt" > /dev/null 2>&1 || true