Improve Benchmarking#2798
Conversation
🛡️ AI Review — Skeptic (security review)VERDICT: SAFE Baseline-to-medium scrutiny: established @opentensor-associated contributor with substantial subtensor history; cached repo permission is read; later commits include UnArbosSix; branch apply-benchmark-to-only-bad-benches -> devnet-ready. The PR does not modify The prior FindingsNo findings. Prior-comment reconciliation
ConclusionNo malicious behavior or security vulnerability found in the current diff. The previously reported benchmark coverage issue is resolved, so the Skeptic verdict is SAFE. 🔍 AI Review — Auditor (domain review)VERDICT: 👍 Gittensor UNKNOWN; author is an established opentensor/subtensor contributor with substantial recent PR history, cached repo permission is read. PR body is substantive and matches the benchmark/tooling scope, so I would leave it unchanged. Prior Duplicate-work check found overlapping PRs only through broad shared files such as weights/runtime-adjacent code; none appear to be alternate implementations of this benchmark-flow change. Validation performed: FindingsNo findings. Prior-comment reconciliation
ConclusionThe prior benchmark coverage issue is fixed, and I did not find a remaining domain issue that should block merge. CI should still perform the normal live spec-version and test checks that this sandbox could not complete. |
|
🔄 AI review updated — Skeptic: SAFE Auditor: 👍 |
|
🔄 AI review updated — Skeptic: SAFE Auditor: 👍 |
|
🔄 AI review updated — Skeptic: SAFE Auditor: 👍 |
|
🔄 AI review updated — Skeptic: SAFE Auditor: 👍 |
|
🔄 AI review updated — Skeptic: SAFE Auditor: 👍 |
…tensor/subtensor into apply-benchmark-to-only-bad-benches
|
🔄 AI review updated — Skeptic: VULNERABLE |
|
🔄 AI review updated — Skeptic: VULNERABLE |
|
🔄 AI review updated — Skeptic: VULNERABLE |
|
🔄 AI review updated — Skeptic: VULNERABLE |
ea42319 to
b1ab08e
Compare
|
🔄 AI review updated — Skeptic: VULNERABLE |
|
🔄 AI review updated — Skeptic: VULNERABLE |
|
🔄 AI review updated — Skeptic: SAFE Auditor: 👍 |
|
🔄 AI review updated — Skeptic: SAFE Auditor: 👍 |
Description
This PR
Modifies the benchmark flow so that only extrinsics that have drifted passed the threshold or have incorrect read/writes are updated rather than replacing the entire file and creating conflicts everywhere.
Adds a lint to check for extrinsics with missing benchmarks. This can be hidden with
#[allow(unknown_lints, benchmarked_weight_not_plugged)]Adds 48 missing benchmarks
Fixes a bug where benchmarks could fail on noisy internal component drift even when the actual benchmark-level weight was still within the configured threshold.
Adds
block_stepto the benchmark flow so theon_initializeweight is generated instead of hardcoded. The benchmark simulates the current worst case with 2 epochs in a block.Updates the drift check to include proof size and to compare the actual benchmark-level weight instead of failing on noisy internal component drift.