Skip to content

Commit

Permalink
CI: execute benchmarks once to prevent bitrot
Browse files Browse the repository at this point in the history
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 gotestyourself/gotestsum#332

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
  • Loading branch information
lmb committed Dec 5, 2023
1 parent 63c0f95 commit c739d15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -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
Expand Down

0 comments on commit c739d15

Please sign in to comment.