Skip to content

Commit

Permalink
Update CI workflow to save benchmark output and check results with jq
Browse files Browse the repository at this point in the history
  • Loading branch information
catatsuy committed Aug 18, 2024
1 parent ff443e8 commit 6f8ac70
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ jobs:
continue-on-error: true
run: |
cd benchmarker
docker run --network host --add-host host.docker.internal:host-gateway -i private-isu-benchmarker /bin/benchmarker -t http://host.docker.internal -u /opt/userdata || echo "BENCHMARK_FAILED=true" >> $GITHUB_ENV
docker run --network host --add-host host.docker.internal:host-gateway -i private-isu-benchmarker /bin/benchmarker -t http://host.docker.internal -u /opt/userdata | tee benchmark_output.json || echo "BENCHMARK_FAILED=true" >> $GITHUB_ENV
- name: Check benchmark result
run: |
cat benchmark_output.json | jq '.pass' | grep false && echo "BENCHMARK_FAILED=true" >> $GITHUB_ENV || true
- name: Show logs
run: |
Expand Down

0 comments on commit 6f8ac70

Please sign in to comment.