[PR #580] Improve commit-pathspec benchmark gating and fast-path coverage #587

Open
opened 2026-03-02 04:14:03 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/git-ai-project/git-ai/pull/580

State: open
Merged: No


Summary

  • add AI pathspec hotspot benchmark gate to perf workflows (smoke + nightly)
  • benchmark plain git vs git-ai using ratio threshold (<=2x), with multi-run median stability
  • harden benchmark plain-git baseline resolution to avoid wrapper contamination
  • optimize post-commit pathspec handling for attribution-empty AI entries and skip unnecessary stats work
  • add regression tests for empty-entry filtering, untracked pathspec handling, and post-commit fast-path prompt preservation
  • normalize snapshot tests across git_ai_version variants

Validation

  • cargo fmt -- --check
  • cargo clippy
  • cargo test test_post_commit_fast_path_preserves_prompt_metrics_for_empty_ai_entries -- --nocapture
  • cargo test --test commit_post_stats_benchmark benchmark_commit_post_command_ai_pathspec_hotspot -- --ignored --nocapture

Open with Devin
**Original Pull Request:** https://github.com/git-ai-project/git-ai/pull/580 **State:** open **Merged:** No --- ## Summary - add AI pathspec hotspot benchmark gate to perf workflows (smoke + nightly) - benchmark plain git vs git-ai using ratio threshold (<=2x), with multi-run median stability - harden benchmark plain-git baseline resolution to avoid wrapper contamination - optimize post-commit pathspec handling for attribution-empty AI entries and skip unnecessary stats work - add regression tests for empty-entry filtering, untracked pathspec handling, and post-commit fast-path prompt preservation - normalize snapshot tests across git_ai_version variants ## Validation - cargo fmt -- --check - cargo clippy - cargo test test_post_commit_fast_path_preserves_prompt_metrics_for_empty_ai_entries -- --nocapture - cargo test --test commit_post_stats_benchmark benchmark_commit_post_command_ai_pathspec_hotspot -- --ignored --nocapture <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/git-ai-project/git-ai/pull/580" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1"> <img src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1" alt="Open with Devin"> </picture> </a> <!-- devin-review-badge-end -->
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-ai#587
No description provided.