Skip to content

Commit 032cc1e

Browse files
committed
ci: upload hw-test DTS/DTB/dmesg outputs as workflow artifacts
Hardware failures on the hw-coord (mini2) leg are now real test-code bugs surfaced by CI (AD9081 JESD PLL lock failure on the System-API path where the XSA path works), but debugging them blind from the pytest tail is slow. Attach `actions/upload-artifact@v4` steps to both hw-direct and hw-coord that capture, per matrix leg, the relevant artefacts under `test/hw/output/`: - Generated `*.dts` / `*.pp.dts` (pre-dtc, after cpp) - Compiled `*.dtb` / `*.dtbo` - `dmesg_*.log` from the booted board - Any `uart_log_*.txt` produced by `BootFPGASoC.debug_write_boot_log` when a boot stage times out Uploaded with `if: always()` so failed runs attach outputs too. Retention-days = 14 so they don't pile up. Lets us diff the XSA vs System-API DTS locally to pinpoint the remaining JESD-PLL gap.
1 parent 7f991f1 commit 032cc1e

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/hardware-test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,21 @@ jobs:
152152
"$HOME/.cache/adidt-ci/adidt-venv/bin/pytest" \
153153
-p no:genalyzer -v -s ${{ join(matrix.node.tests, ' ') }}
154154
155+
- name: Upload test output artifacts
156+
if: always() && steps.check_direct_env.outputs.skip != 'true'
157+
uses: actions/upload-artifact@v4
158+
with:
159+
name: hw-direct-${{ matrix.node.place }}-output
160+
path: |
161+
test/hw/output/**/*.dts
162+
test/hw/output/**/*.pp.dts
163+
test/hw/output/**/*.dtb
164+
test/hw/output/**/*.dtbo
165+
test/hw/output/**/*.log
166+
test/hw/output/**/uart_log_*.txt
167+
if-no-files-found: ignore
168+
retention-days: 14
169+
155170
hw-coord:
156171
needs: preflight
157172
if: needs.preflight.outputs.available_nodes != '[]'
@@ -224,3 +239,18 @@ jobs:
224239
set -euo pipefail
225240
LGCLIENT="$HOME/.cache/adidt-ci/adidt-venv/bin/labgrid-client"
226241
"$LGCLIENT" -x "$LG_COORDINATOR" -p "${{ matrix.node.place }}" release || true
242+
243+
- name: Upload test output artifacts
244+
if: always()
245+
uses: actions/upload-artifact@v4
246+
with:
247+
name: hw-coord-${{ matrix.node.place }}-output
248+
path: |
249+
test/hw/output/**/*.dts
250+
test/hw/output/**/*.pp.dts
251+
test/hw/output/**/*.dtb
252+
test/hw/output/**/*.dtbo
253+
test/hw/output/**/*.log
254+
test/hw/output/**/uart_log_*.txt
255+
if-no-files-found: ignore
256+
retention-days: 14

0 commit comments

Comments
 (0)