Skip to content

Commit

Permalink
[ci] Add hostname to JUnit XML
Browse files Browse the repository at this point in the history
This allows us to identify FPGA used for a particular job.

Signed-off-by: Gary Guo <[email protected]>
(cherry picked from commit 3db4a71)
  • Loading branch information
nbdd0121 authored and engdoreis committed Dec 11, 2024
1 parent e0317bf commit 6b933dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/actions/publish-bazel-test-results/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ runs:
echo '<?xml version="1.0" encoding="UTF-8"?><testsuites/>' >> "${{ inputs.merged-results }}"
fi
- name: Add hostname to testsuites
shell: bash
run: |
xmlstarlet ed --inplace -i '/testsuites/testsuite' -t attr -n hostname -v "${{ runner.name }}" "${{ inputs.merged-results }}"
- name: Upload report as artifact
if: inputs.artifact-name != ''
uses: actions/upload-artifact@v4
Expand Down
1 change: 1 addition & 0 deletions apt-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ python3-urllib3
python3-wheel
srecord
tree
xmlstarlet
xsltproc
zlib1g-dev
xz-utils

0 comments on commit 6b933dc

Please sign in to comment.