mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-02 19:49:07 +02:00
[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:
@@ -494,8 +494,20 @@ jobs:
|
|||||||
go test -json -tags=devcert -coverprofile=coverage.txt \
|
go test -json -tags=devcert -coverprofile=coverage.txt \
|
||||||
-exec "sudo --preserve-env=CI,NETBIRD_STORE_ENGINE" \
|
-exec "sudo --preserve-env=CI,NETBIRD_STORE_ENGINE" \
|
||||||
-timeout 20m ./management/... ./shared/management/... \
|
-timeout 20m ./management/... ./shared/management/... \
|
||||||
|
| tee management-test-events.jsonl \
|
||||||
| go run ./tools/gotestsummary
|
| 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
|
- name: Upload coverage reports to Codecov
|
||||||
if: matrix.arch == 'amd64'
|
if: matrix.arch == 'amd64'
|
||||||
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f #v7.0.0
|
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f #v7.0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user