CI: create annotations on performance regression warnings/errors (#1441)
This commit is contained in:
parent
05e435aae7
commit
03fa68dbb6
11
.github/workflows/benchmark.yml
vendored
11
.github/workflows/benchmark.yml
vendored
|
@ -39,26 +39,29 @@ jobs:
|
||||||
uses: openpgpjs/github-action-pull-request-benchmark@v1
|
uses: openpgpjs/github-action-pull-request-benchmark@v1
|
||||||
with:
|
with:
|
||||||
tool: 'benchmarkjs'
|
tool: 'benchmarkjs'
|
||||||
name: 'time benchmark'
|
name: 'Time benchmark'
|
||||||
pr-benchmark-file-path: pr/benchmarks.txt
|
pr-benchmark-file-path: pr/benchmarks.txt
|
||||||
base-benchmark-file-path: master/benchmarks.txt
|
base-benchmark-file-path: master/benchmarks.txt
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# trigger alert comment if 1.3 times slower
|
# trigger alert comment if 1.3 times slower
|
||||||
alert-threshold: '130%'
|
alert-threshold: '130%'
|
||||||
comment-on-alert: true
|
comment-on-alert: false
|
||||||
# fail workdlow if 1.5 times slower
|
# fail workdlow if 1.5 times slower
|
||||||
fail-threshold: '150%'
|
fail-threshold: '150%'
|
||||||
fail-on-alert: true
|
fail-on-alert: true
|
||||||
|
file-to-annotate: ${{ github.workspace }}/test/benchmarks/time.js
|
||||||
|
|
||||||
- name: Compare memory usage benchmark result
|
- name: Compare memory usage benchmark result
|
||||||
uses: openpgpjs/github-action-pull-request-benchmark@v1
|
uses: openpgpjs/github-action-pull-request-benchmark@v1
|
||||||
with:
|
with:
|
||||||
tool: 'raw'
|
tool: 'raw'
|
||||||
name: 'memory usage benchmark'
|
name: 'Memory usage benchmark'
|
||||||
pr-benchmark-file-path: pr/memory_usage.txt
|
pr-benchmark-file-path: pr/memory_usage.txt
|
||||||
base-benchmark-file-path: master/memory_usage.txt
|
base-benchmark-file-path: master/memory_usage.txt
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
alert-threshold: '102%'
|
alert-threshold: '102%'
|
||||||
comment-on-alert: true
|
comment-on-alert: false
|
||||||
fail-threshold: '110%'
|
fail-threshold: '110%'
|
||||||
fail-on-alert: true
|
fail-on-alert: true
|
||||||
|
file-to-annotate: ${{ github.workspace }}/test/benchmarks/memory_usage.js
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user