.github: do not use testwrapper for benchmarks

Updates #9182

Signed-off-by: Maisem Ali <maisem@tailscale.com>
bradfitz/calc_state
Maisem Ali 1 year ago committed by Maisem Ali
parent 7074a40c06
commit 1f12b3aedc

@ -94,7 +94,7 @@ jobs:
env: env:
GOARCH: ${{ matrix.goarch }} GOARCH: ${{ matrix.goarch }}
- name: bench all - name: bench all
run: PATH=$PWD/tool:$PATH /tmp/testwrapper ./... ${{matrix.buildflags}} -bench=. -benchtime=1x -run=^$ run: ./tool/go test ./... ${{matrix.buildflags}} -bench=. -benchtime=1x -run=^$
env: env:
GOARCH: ${{ matrix.goarch }} GOARCH: ${{ matrix.goarch }}
- name: check that no tracked files changed - name: check that no tracked files changed
@ -141,10 +141,12 @@ jobs:
${{ github.job }}-${{ runner.os }}-go-2-${{ hashFiles('**/go.sum') }} ${{ github.job }}-${{ runner.os }}-go-2-${{ hashFiles('**/go.sum') }}
${{ github.job }}-${{ runner.os }}-go-2- ${{ github.job }}-${{ runner.os }}-go-2-
- name: test - name: test
run: go run ./cmd/testwrapper ./...
- name: bench all
# Don't use -bench=. -benchtime=1x. # Don't use -bench=. -benchtime=1x.
# Somewhere in the layers (powershell?) # Somewhere in the layers (powershell?)
# the equals signs cause great confusion. # the equals signs cause great confusion.
run: go run ./cmd/testwrapper ./... -bench . -benchtime 1x run: go test ./... -bench . -benchtime 1x -run "^$"
vm: vm:
runs-on: ["self-hosted", "linux", "vm"] runs-on: ["self-hosted", "linux", "vm"]

Loading…
Cancel
Save