Skip to content

Commit 67e3d59

Browse files
fix: capture colima logs on error
1 parent 418e46d commit 67e3d59

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/cli-tests.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,22 @@ jobs:
7373

7474
- name: Repo setup-remotes tests
7575
run: ./tests/test_repo.sh
76+
77+
- name: Dump Colima hostagent logs on failure
78+
if: ${{ failure()}}
79+
run: |
80+
echo "=== DUMPING DOCKER & COMPOSE INFO ==="
81+
docker version || true
82+
docker info || true
83+
docker ps -a || true
84+
docker images || true
85+
echo "=== DUMPING COLIMA LOGS ==="
86+
LOG="$HOME/.colima/_lima/colima/ha.stderr.log"
87+
if [ -f "$LOG" ]; then
88+
echo "==== ha.stderr.log ===="
89+
sed -n '1,400p' "$LOG"
90+
echo "======================="
91+
else
92+
echo "ha.stderr.log not found at $LOG"
93+
find $HOME/.colima -maxdepth 3 -type f -name '*stderr*' -print
94+
fi

0 commit comments

Comments
 (0)