From 889ee8ef92766600723cbafe646624a77f4f5b60 Mon Sep 17 00:00:00 2001 From: mlsmaycon Date: Sat, 12 Sep 2026 12:42:30 +0000 Subject: [PATCH] [misc] Upload the raw test events only when the tests fail The artifact is only read when a failure needs more than the summary shows, so a green run does not need to keep it for 14 days. --- .github/workflows/golang-test-linux.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/golang-test-linux.yml b/.github/workflows/golang-test-linux.yml index f19522e4e..548d77c83 100644 --- a/.github/workflows/golang-test-linux.yml +++ b/.github/workflows/golang-test-linux.yml @@ -498,9 +498,9 @@ jobs: | go run ./tools/gotestsummary # The summary trims long outputs; the raw stream keeps every line for - # the failures that need it. + # the failures that need it. A green run has no use for it. - name: Upload raw test events - if: always() + if: failure() uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a #v7.0.1 with: name: management-unit-test-events-${{ matrix.store }}