Skip to content

Commit 79eeb6e

Browse files
danieldegrassecfriedt
authored andcommitted
ci: dump RTT logs if job fails
Add step to dump RTT logs if a job fails. This may help diagnose some CI issues when they occur. Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 590227d commit 79eeb6e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/hardware-smoke.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,15 @@ jobs:
131131
zephyr/twister-smc-smoke/twister.log
132132
zephyr/twister-smc-smoke/twister.json
133133
134+
- name: Print RTT logs
135+
if: ${{ failure() }}
136+
working-directory: tt-zephyr-platforms
137+
run: |
138+
echo "BMC RTT logs:"
139+
python3 ./scripts/bmc_rtt.py -n --openocd /opt/tenstorrent/bin/openocd-rtt
140+
echo "SMC RTT logs:"
141+
python3 ./scripts/smc_rtt.py -n --openocd /opt/tenstorrent/bin/openocd-rtt
142+
134143
smoke-e2e-test:
135144
strategy:
136145
fail-fast: false
@@ -236,3 +245,12 @@ jobs:
236245
name: E2E Flash results (${{ matrix.config.board }})
237246
path: |
238247
zephyr/twister-e2e-flash/**/update.fwbundle
248+
249+
- name: Print RTT logs
250+
if: ${{ failure() }}
251+
working-directory: tt-zephyr-platforms
252+
run: |
253+
echo "BMC RTT logs:"
254+
python3 ./scripts/bmc_rtt.py -n --openocd /opt/tenstorrent/bin/openocd-rtt
255+
echo "SMC RTT logs:"
256+
python3 ./scripts/smc_rtt.py -n --openocd /opt/tenstorrent/bin/openocd-rtt

0 commit comments

Comments
 (0)