[misc] Keep the raw management test events as a CI artifact

The summary trims long test outputs, so a failure whose diagnostic runs
past the cap would lose detail. Tee the go test -json stream to a file
and upload it for each store engine.
This commit is contained in:
mlsmaycon
2026-09-12 12:17:37 +00:00
parent e0915444a7
commit 053c0fe599
+12
View File
@@ -494,8 +494,20 @@ jobs:
go test -json -tags=devcert -coverprofile=coverage.txt \
-exec "sudo --preserve-env=CI,NETBIRD_STORE_ENGINE" \
-timeout 20m ./management/... ./shared/management/... \
| tee management-test-events.jsonl \
| go run ./tools/gotestsummary
# The summary trims long outputs; the raw stream keeps every line for
# the failures that need it.
- name: Upload raw test events
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a #v7.0.1
with:
name: management-unit-test-events-${{ matrix.store }}
path: management-test-events.jsonl
if-no-files-found: ignore
retention-days: 14
- name: Upload coverage reports to Codecov
if: matrix.arch == 'amd64'
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f #v7.0.0