Skip to content

Commit ffb888c

Browse files
Improve test logging in GitHub CI (#2856)
This changelist reduces console noise and simplifies test logging artifacts in GitHub CI, including the following specific changes: - Drop the `-VV` flag from the CTest invocation, so that verbose output is printed only for failing tests. - Rename test log results to `TestLog_${{ matrix.name }}` for alignment across artifact names. - Add `if-no-files-found: ignore` to the test log upload step, so that jobs without a test step don't generate warnings.
1 parent 1ea15a4 commit ffb888c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ jobs:
227227
run: cmake --build build --target install --config Release --parallel 2
228228

229229
- name: CMake Unit Tests
230-
run: ctest -VV --output-on-failure --build-config Release
230+
run: ctest --output-on-failure --build-config Release
231231
working-directory: build
232232

233233
- name: Python Tests
@@ -373,12 +373,13 @@ jobs:
373373
path: build/**/*.perfetto-trace
374374
if-no-files-found: ignore
375375

376-
- name: Upload Log Files
376+
- name: Upload Test Logs
377377
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
378378
if: always()
379379
with:
380-
name: Log_files_${{ matrix.name }}
380+
name: TestLog_${{ matrix.name }}
381381
path: build/bin/**/*.txt
382+
if-no-files-found: ignore
382383

383384
javascript:
384385
name: JavaScript

0 commit comments

Comments
 (0)