ci: Produce a single WPT log artifact

GitHub supports adding files to an artifact in parallel, as long as the
filenames are unique. This makes it easier to download build results
when more than a single builder fails.
This commit is contained in:
Martin Robinson 2023-02-02 15:45:57 +01:00
parent eb5c79243f
commit cc1ccf8aff
3 changed files with 3 additions and 3 deletions

View file

@ -224,7 +224,7 @@ jobs:
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
if: ${{ failure() }} if: ${{ failure() }}
with: with:
name: wpt${{ matrix.chunk_id }}-logs-linux name: wpt-logs-linux
path: | path: |
test-wpt.${{ matrix.chunk_id }}.log test-wpt.${{ matrix.chunk_id }}.log
wpt-jsonsummary.${{ matrix.chunk_id }}.log wpt-jsonsummary.${{ matrix.chunk_id }}.log

View file

@ -76,7 +76,7 @@ jobs:
- name: Archive logs - name: Archive logs
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: wpt${{ matrix.chunk_id }}-logs-linux name: wpt-logs-linux
path: | path: |
test-wpt.${{ matrix.chunk_id }}.log test-wpt.${{ matrix.chunk_id }}.log
wpt-jsonsummary.${{ matrix.chunk_id }}.log wpt-jsonsummary.${{ matrix.chunk_id }}.log

View file

@ -31,7 +31,7 @@ function main() {
for n in $(seq 1 "${MAX_CHUNK_ID}") for n in $(seq 1 "${MAX_CHUNK_ID}")
do do
code="" code=""
update_metadata "wpt${n}-logs-linux/test-wpt.${n}.log" || \ update_metadata "wpt-logs-linux/test-wpt.${n}.log" || \
code="${?}" code="${?}"
if [[ "${code}" != "" ]]; then if [[ "${code}" != "" ]]; then
return "${code}" return "${code}"