From 2214cf47eb32686c3ce9e51fca5f5c0d7216fcaa Mon Sep 17 00:00:00 2001 From: Lorenz Bauer Date: Tue, 5 Dec 2023 09:36:34 +0000 Subject: [PATCH] CI: execute benchmarks once to prevent bitrot Execute benchmarks once on CI, to prevent bitrot from setting in. We do this as a separate target without gotestsum filtering since there is a bug in the Go toolchain which prevents benchmark output from being parsed properly. See https://github.com/gotestyourself/gotestsum/issues/332 Signed-off-by: Lorenz Bauer --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00b76e420..27fffb3c2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -129,6 +129,9 @@ jobs: - name: Test run: gotestsum --raw-command --ignore-non-json-output-lines --junitfile junit.xml -- ./run-tests.sh $CI_MAX_KERNEL_VERSION -short -count 1 -json ./... + - name: Benchmark + run: go test -exec sudo -short -run '^$' -bench . -benchtime=1x ./... + - name: Upload Test Results if: always() uses: actions/upload-artifact@v3