Skip to content

Commit d993422

Browse files
committed
ci: upload test failure logs as artifacts
The workflow was only uploading build logs, not test phase failure logs. This made it impossible to diagnose rootfs and testimage failures. Now uploads: - log.do_rootfs.* - Package installation failures - log.do_testimage.* - Test execution failures - testresults.json - Test results (if available) These logs are critical for debugging ptest package installation issues and test failures. Related: PR #15252 rootfs failure investigation
1 parent 0b04404 commit d993422

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/build-test-recipe.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,3 +303,13 @@ jobs:
303303
with:
304304
name: ${{ matrix.machine }}-resulttool_report.txt
305305
path: /home/yoctouser/bitbake-builds/poky-without-meta-aws-poky-distro_poky-altcfg-machine_${{ matrix.machine }}/build/${{ matrix.machine }}-resulttool_report.txt
306+
- name: Save test failure logs
307+
if: '!cancelled()'
308+
uses: actions/upload-artifact@v4
309+
with:
310+
name: ${{ matrix.machine }}-test-logs
311+
path: |
312+
/home/yoctouser/bitbake-builds/poky-without-meta-aws-poky-distro_poky-altcfg-machine_${{ matrix.machine }}/build/tmp/work/**/temp/log.do_rootfs.*
313+
/home/yoctouser/bitbake-builds/poky-without-meta-aws-poky-distro_poky-altcfg-machine_${{ matrix.machine }}/build/tmp/work/**/temp/log.do_testimage.*
314+
/home/yoctouser/bitbake-builds/poky-without-meta-aws-poky-distro_poky-altcfg-machine_${{ matrix.machine }}/build/tmp/log/oeqa/testresults.json
315+
if-no-files-found: ignore

0 commit comments

Comments
 (0)