Files
turso/.github/workflows/rust_perf.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 58: mapping key "nyrkio-public" already defined at line 52
Henrik Ingo b356a84d69 Enable Nyrkiö also on PRs. (Non-blocking mode.)
- Rename push_only.yml workflow to rust_perf.yml
- Move the 'bench' task from rust.yml to rust_perf.yml
- More Nyrkio configuration options exposed:
  Team support (everyone in gh/tursodatabase can access Nyrkiö)
  Public results
  Alerting options: Comment on PR, if change detected, don't fail task
2025-02-18 02:35:20 +02:00

70 lines
2.4 KiB
YAML

name: Rust Benchmarks+Nyrkiö
on:
push:
branches: [ "main", "master", "notmain" ]
pull_request:
branches: [ "main", "notmain", "master" ]
env:
CARGO_TERM_COLOR: never
jobs:
bench:
runs-on: ubuntu-latest
environment: test
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: 20
# cache: 'npm'
# - name: Install dependencies
# run: npm install && npm run build
# - name: Bench
# run: cargo bench 2>&1 | tee output.txt
- name: Bench (fake)
run: |
pwd
ls
cp .github/data/limbo-cargo-output.txt output.txt
- name: Analyze benchmark result with Nyrkiö
uses: henrikingo/github-action-benchmark@HEAD
# uses: nyrkio/github-action-benchmark@HEAD
with:
name: turso
tool: criterion
output-file-path: output.txt
# What to do if a change is immediately detected by Nyrkiö.
# Note that smaller changes are only detected with delay, usually after a change
# persisted over 2-7 commits. Go to nyrkiö.com to view those or configure alerts.
# Note that Nyrkiö will find all changes, also improvements. This means fail-on-alert
# on pull events isn't compatible with this workflow being required to pass branch protection.
fail-on-alert: false
comment-on-alert: true
comment-always: false
# Nyrkiö configuration
nyrkio-enable: true
# Make results and change points public, so that any oss contributor can see them
nyrkio-public: true
# Get yours from https://nyrkio.com/docs/getting-started
nyrkio-token: ${{ secrets.STAGING_JWT_TOKEN }}
nyrkio-api-root: https://staging.nyrkio.com/api/v0
# Make results and change points public, so that any oss contributor can see them
nyrkio-public: true
nyrkio-settings-pvalue: 0.01%
nyrkio-settings-threshold: 1%
# Team support = results are visible and manageable to everyone in the same Github org
# nyrkio-org: tursodatabase
# nyrkio-org: nyrkio
# Old way...
# Explicitly set this to null. We don't want threshold based alerts today.
external-data-json-path: null
gh-repository: null