Skip to content

Commit f459f6d

Browse files
committed
Add diagnostic info to job
Signed-off-by: Simon Davies <[email protected]>
1 parent 1a3bbdb commit f459f6d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/dep_rust.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,33 @@ jobs:
156156
run: |
157157
just bench-ci main ${{ matrix.config }} ${{ matrix.hypervisor == 'mshv3' && 'mshv3' || ''}}
158158
if: ${{ matrix.config == 'release' }}
159+
160+
# Diagnostic information on job failure
161+
- name: Diagnose hypervisor access on failure
162+
if: failure()
163+
run: |
164+
echo "=== Diagnostic Information ==="
165+
echo "Current user:"
166+
whoami
167+
echo ""
168+
echo "User groups:"
169+
groups
170+
echo ""
171+
echo "User ID details:"
172+
id
173+
echo ""
174+
echo "KVM device details:"
175+
if [ -e /dev/kvm ]; then
176+
ls -la /dev/kvm
177+
echo "KVM device exists and permissions shown above"
178+
else
179+
echo "❌ /dev/kvm device does not exist"
180+
fi
181+
echo ""
182+
echo "MSHV device details:"
183+
if [ -e /dev/mshv ]; then
184+
ls -la /dev/mshv
185+
echo "MSHV device exists and permissions shown above"
186+
else
187+
echo "❌ /dev/mshv device does not exist"
188+
fi

0 commit comments

Comments
 (0)