From 4e3479b8ed3fd328d4af39db4f248290ada5428d Mon Sep 17 00:00:00 2001 From: Luke McCrone Date: Thu, 29 Jan 2026 18:37:16 -0300 Subject: [PATCH] test: system.yml update --- .github/workflows/system.yml | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/.github/workflows/system.yml b/.github/workflows/system.yml index 0e89c96..2907390 100644 --- a/.github/workflows/system.yml +++ b/.github/workflows/system.yml @@ -126,7 +126,19 @@ jobs: BYPASS_ENV_FILE=true ${{ github.workspace }}/tests/setup_static.sh fi BYPASS_ENV_FILE=true $HOME/bin/bats ${{ github.workspace }}/$RUN_SET - cat $COVERAGE_LOG + if [ -e "$COVERAGE_LOG ]; then + cat $COVERAGE_LOG + fi + + - name: Ensure coverage file exists + run: | + : > coverage.log + + - name: Upload command coverage log + uses: actions/upload-artifact@v4 + with: + name: coverage-${{ matrix.RUN_SET }}-${{ matrix.RECREATE_BUCKETS}}.log + path: coverage.log - name: Time report run: | @@ -137,3 +149,22 @@ jobs: - name: Coverage report run: | go tool covdata percent -i=cover + + print-coverage: + runs-on: ubuntu-latest + needs: [build] + steps: + - name: Download all S3 ops artifacts + uses: actions/download-artifact@v4 + with: + path: artifacts + + - name: Merge (sort | uniq) + run: | + find artifacts -name coverage-*.log -print -exec cat {} \; \ + | sed '/^\s*$/d' \ + | sort -u \ + > combined-coverage.log + + echo "Merged ops:" + cat combined-coverage.log