Skip to content

Commit ad45906

Browse files
Merge pull request #9 from EmbeddedAndroid/show-failed-logs
ci(qemu): dump per-task bitbake logs on failure
2 parents 3f2c4b5 + 0d6957e commit ad45906

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/qemu-runtime.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,21 @@ jobs:
159159
# both builds the image AND runs the tests.
160160
bitbake core-image-weston
161161
162+
- name: Show per-task logs from any failed recipe
163+
if: failure()
164+
run: |
165+
# When bitbake fails, the underlying tool's stderr is captured
166+
# at tmp/work/<arch>/<recipe>/<ver>/temp/log.do_<task>.<pid>.
167+
# Dump every such log that's recent so the failing tool's
168+
# actual error reaches the CI output.
169+
find poky/build/tmp/work -path '*/temp/log.do_*' \
170+
-newer poky/build/conf/local.conf 2>/dev/null \
171+
| while read -r f; do
172+
echo "==== $f ===="
173+
tail -200 "$f"
174+
echo
175+
done
176+
162177
- name: Surface test results
163178
if: always()
164179
run: |

0 commit comments

Comments
 (0)