Repository navigation
Allow project key to be used for bencher run like API calls - #845
Conversation
🤖 Claude Code ReviewPR: #845 I've reviewed the full diff. Here's my review: PR Review: Project Key Authentication for Write EndpointsSummaryThis PR extends project key authentication from read-only (GET) endpoints to write endpoints (POST/PATCH/PUT) across branches, benchmarks, testbeds, measures, thresholds, alerts, and reports. Project keys can now create resources and perform limited updates, with restrictions on renaming. It also refactors Positive
Issues1. Security:
|
|
| Branch | u/ep/project-key-parity |
| Testbed | intel-v1 |
Click to view all benchmark results
| Benchmark | Latency | Benchmark Result microseconds (µs) (Result Δ%) | Upper Boundary microseconds (µs) (Limit %) |
|---|---|---|---|
| Adapter::Json | 📈 view plot 🚷 view threshold | 4.51 µs(-0.91%)Baseline: 4.55 µs | 4.73 µs (95.24%) |
| Adapter::Magic (JSON) | 📈 view plot 🚷 view threshold | 4.48 µs(+1.20%)Baseline: 4.43 µs | 4.61 µs (97.17%) |
| Adapter::Magic (Rust) | 📈 view plot 🚷 view threshold | 25.49 µs(+0.38%)Baseline: 25.40 µs | 26.25 µs (97.12%) |
| Adapter::Rust | 📈 view plot 🚷 view threshold | 3.44 µs(-0.29%)Baseline: 3.45 µs | 3.54 µs (97.23%) |
| Adapter::RustBench | 📈 view plot 🚷 view threshold | 3.45 µs(-0.03%)Baseline: 3.45 µs | 3.53 µs (97.64%) |
This changeset updates API endpoints that have the same capabilities as a call to
bencher runto accept a project key. For example, the/v0/runendpoint can create benchmarks. Therefore the endpoint to create a benchmark (POST) has been updated to accept a project key.All operations permitted with a project key are non-destructive. Archiving is reversible. Branch Start Points, Testbed Specs, and Threshold Models are all stored for historical reference with their prior Reports. Dimension renames are not allowed with the project key.