From 053c0fe599b3dbb970e9845a2492aa09497efdeb Mon Sep 17 00:00:00 2001 From: mlsmaycon Date: Sat, 12 Sep 2026 12:17:37 +0000 Subject: [PATCH] [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. --- .github/workflows/golang-test-linux.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/golang-test-linux.yml b/.github/workflows/golang-test-linux.yml index fa0b684b0..f19522e4e 100644 --- a/.github/workflows/golang-test-linux.yml +++ b/.github/workflows/golang-test-linux.yml @@ -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