Skip to content

Commit 7fed1e9

Browse files
committed
ci: print cryptpilot-convert diagnostic log on test failure
Add an always-run step in the test-convert job to dump /tmp/.cryptpilot-convert.log from inside the test container before cleanup, so intermittent qemu-img lock errors can be diagnosed from CI logs.
1 parent bdb6c19 commit 7fed1e9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/build-rpm.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,12 @@ jobs:
281281
make run-convert-test-case BOOTLOADER=${{ matrix.bootloader }} ROOTFS_ENC=${{ matrix.rootfs_enc }} DELTA_LOCATION=${{ matrix.delta_location }} INPUT_IMAGE=/workspace/test-images/test-image.qcow2 CRYPTPILOT_FDE_RPM=${{ steps.install-rpm.outputs.cryptpilot_fde_rpm_container }}
282282
"
283283
284+
- name: Print convert diagnostic log
285+
if: always()
286+
run: |
287+
echo "=== /tmp/.cryptpilot-convert.log (from test-container) ==="
288+
docker exec test-container cat /tmp/.cryptpilot-convert.log 2>/dev/null || echo "(log file not available)"
289+
284290
- name: Cleanup
285291
if: always()
286292
run: |

0 commit comments

Comments
 (0)