Skip to content

Commit

Permalink
Add benchmark checker (#849)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvicsam committed Feb 22, 2022
1 parent 10008c1 commit 8e35e70
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,18 @@ check-benchmark:
<<: *kubernetes-env
<<: *collect-artifacts
needs:
- benchmark
- job: benchmark
artifacts: true
variables:
PROMETHEUS_URL: "http://vm-longterm.parity-build.parity.io"
GITHUB_REPO: "paritytech/substrate-api-sidecar"
CI_IMAGE: "paritytech/benchmarks:latest"
THRESHOLD: 13000
GITHUB_TOKEN: $GITHUB_PR_TOKEN
script:
- echo "TBD"
- export RESULT=$(cat artifacts/result.txt | grep AvgRequestTime | awk '{print $2}')
- check_single_bench_result.py -g $GITHUB_REPO
-c $THRESHOLD
-v $RESULT

push-benchmark:
stage: push-benchmark
Expand Down

0 comments on commit 8e35e70

Please sign in to comment.