Skip to content

Commit

Permalink
bench first
Browse files Browse the repository at this point in the history
  • Loading branch information
maximpertsov committed Jun 3, 2024
1 parent ed327f3 commit f449fc9
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ jobs:
exit 1
fi
- name: Run go unit tests
run: |
sudo --preserve-env=MONGODB_TEST_OUTPUT_URI,GITHUB_SHA,GITHUB_RUN_ID,GITHUB_RUN_NUMBER,GITHUB_RUN_ATTEMPT,GITHUB_X_PR_BASE_SHA,GITHUB_X_PR_BASE_REF,GITHUB_X_HEAD_REF,GITHUB_X_HEAD_SHA,GITHUB_REPOSITORY -Hu testbot bash -lc 'make test-go'
- name: Run go benchmarks
run: |
sudo --preserve-env=MONGODB_TEST_OUTPUT_URI,GITHUB_SHA,GITHUB_RUN_ID,GITHUB_RUN_NUMBER,GITHUB_RUN_ATTEMPT,GITHUB_X_PR_BASE_SHA,GITHUB_X_PR_BASE_REF,GITHUB_X_HEAD_REF,GITHUB_X_HEAD_SHA,GITHUB_REPOSITORY -Hu testbot bash -lc 'make bench-go'
- name: Run go unit tests
run: |
sudo --preserve-env=MONGODB_TEST_OUTPUT_URI,GITHUB_SHA,GITHUB_RUN_ID,GITHUB_RUN_NUMBER,GITHUB_RUN_ATTEMPT,GITHUB_X_PR_BASE_SHA,GITHUB_X_PR_BASE_REF,GITHUB_X_HEAD_REF,GITHUB_X_HEAD_SHA,GITHUB_REPOSITORY -Hu testbot bash -lc 'make test-go'
- name: Upload test.json
if: always()
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -175,21 +175,22 @@ jobs:
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3

- name: Run go unit tests
- name: Run go benchmarks tests
run: |
docker run \
--platform linux/arm/v7 \
-v `pwd`:/rdk \
ghcr.io/viamrobotics/rdk-devenv:armhf-cache \
sudo -Hu testbot bash -lc 'cd /rdk && go test -v -tags=no_tflite ./...'
sudo -Hu testbot bash -lc 'cd /rdk && go test -v -tags=no_tflite ./... -run=^$ -bench=BenchmarkConcurrentReconfiguration' # TODO: better filter?
- name: Run go benchmarks tests
- name: Run go unit tests
run: |
docker run \
--platform linux/arm/v7 \
-v `pwd`:/rdk \
ghcr.io/viamrobotics/rdk-devenv:armhf-cache \
sudo -Hu testbot bash -lc 'cd /rdk && go test -v -tags=no_tflite ./... -run=^$ -bench=BenchmarkConcurrentReconfiguration' # TODO: better filter?
sudo -Hu testbot bash -lc 'cd /rdk && go test -v -tags=no_tflite ./...'
test_pi:
name: Test Raspberry Pi Code
Expand Down

0 comments on commit f449fc9

Please sign in to comment.