Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
38 changes: 38 additions & 0 deletions .github/workflows/bench-gate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: bench-gate

on:
pull_request:
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
bench-gate:
name: Criterion benchmark regression gate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev cmake protobuf-compiler

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Cache cargo build
uses: Swatinem/rust-cache@v2

- name: Native toolchain preflight
run: bash scripts/check-native-toolchain.sh

- name: Run release benchmark gate
run: bash scripts/bench-gate-release.sh
env:
BENCH_GATE_THRESHOLD: "5"
BENCH_GATE_RETRIES: "2"

- name: Validate benchmark JSON summary
run: python3 -m json.tool target/bench-gate-summary.json >/dev/null
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ tarpaulin-report.html
docs-internal/
docs-marketing/
docs-dev/

# Local compatibility-gap reference/evidence workspace (not source history)
/docs-dev-jangan-ditrack/
# scripts/ is ignored by default for local dev scripts, but release-relevant
# scripts are explicitly allowlisted below
scripts/*
Expand All @@ -48,6 +51,11 @@ scripts/*
!scripts/publish-common.sh
!scripts/publish-remaining.sh
!scripts/normalize-versions.sh
!scripts/bench-gate.sh
!scripts/bench-gate-release.sh
!scripts/check-native-toolchain.sh
!scripts/vflow-compat-live-smoke.sh
!scripts/vflow-compat-external-live.sh
.memory/

# Compiled example binaries
Expand Down
Loading