Skip to content

Commit

Permalink
add make command test-go-split
Browse files Browse the repository at this point in the history
  • Loading branch information
abe-winter committed Sep 7, 2023
1 parent 82a90b3 commit 16c76fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/server-32bit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ jobs:
docker run --rm \
-v $PWD/:/rdk \
--env GOFLAGS="-tags=no_tflite,no_pigpio -buildvcs=false" \
--env INDEX=${{ matrix.index }} \
--env NBINS=5 \
ghcr.io/viamrobotics/viam-server:armv7 \
sh -c "go version && go list -json ./... | etc/splitter.py ${{ matrix.index }} --nbins 5 --command \"go test\" --fail-empty"
make test-go-split
build:
needs: [test, lint]
runs-on: buildjet-4vcpu-ubuntu-2204-arm
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ test-no-race: test-go-no-race test-web
test-go: tool-install
PATH=$(PATH_WITH_TOOLS) ./etc/test.sh race

test-go-split:
# run one shard of the test suite using splitter.py
go list -json ./... | etc/splitter.py $(INDEX) --nbins $(NBINS) --command "go test" --fail-empty

test-go-no-race: tool-install
PATH=$(PATH_WITH_TOOLS) ./etc/test.sh

Expand Down

0 comments on commit 16c76fa

Please sign in to comment.