Skip to content

fix conditional tikv dependency usage on telemetry #823

fix conditional tikv dependency usage on telemetry

fix conditional tikv dependency usage on telemetry #823

name: Performance Regression
on:
push:
branches:
- main
issue_comment:
types: [created]
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
permissions: write-all
jobs:
check-perf-main-nightly:
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
name: Record performance on main (nightly)
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Run the bench
run: |
make -C vectors_benchmark nightly
- name: Store performance data
uses: nuclia/nucliadb_performance@main
with:
metrics_file: vectors_benchmark/benchmark.json
influxdb_url: ${{ secrets.INFLUXDB_SERVER }}
influxdb_token: ${{ secrets.INFLUXDB_TOKEN }}
influxdb_org: nuclia
influxdb_bucket: benchmarks
check-perf-main:
if: github.event_name == 'push'
name: Record performance on main
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Run the bench
run: |
make -C vectors_benchmark fast-bench
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Store performance data
uses: nuclia/nucliadb_performance@main
with:
metrics_file: vectors_benchmark/benchmark.json
influxdb_url: ${{ secrets.INFLUXDB_SERVER }}
influxdb_token: ${{ secrets.INFLUXDB_TOKEN }}
influxdb_org: nuclia
influxdb_bucket: benchmarks
check-perf-pr:
if: github.event.issue.pull_request && contains(github.event.comment.body, '/bench')
runs-on: ubuntu-latest
name: Check performance on the PR
steps:
- name: Get PR branch
uses: xt0rted/pull-request-comment-branch@v1
id: comment-branch
- uses: actions/checkout@v3
if: success()
with:
ref: ${{ steps.comment-branch.outputs.head_ref }}
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Run the vectors bench
run: |
make -C vectors_benchmark fast-bench
- name: Store performance data and report back
uses: nuclia/nucliadb_performance@main
with:
metrics_file: vectors_benchmark/benchmark.json
head_ref: ${{ steps.comment-branch.outputs.head_ref }}
influxdb_url: ${{ secrets.INFLUXDB_SERVER }}
influxdb_token: ${{ secrets.INFLUXDB_TOKEN }}
influxdb_org: nuclia
influxdb_bucket: benchmarks