← Back to Pull requests

Migrate performance CLI tests to shared fixture helpers #131

Open
unknown opened this pull request with 128 lines diff across 1 files
View on GitHub
unknown unknown commented on Nov 29, 2026 04:59 UTC
Author

What and why

Applies shared fixture setup to 27 performance CLI and engine test files. Builds on the performance rule migration.

Checklist

  • Full npm run check is pending in CI. Build, formatting, and lint passed. The combined migration passed 415 targeted tests, plus two native-gated tests when enabled. Two existing environment skips remain.

  • One test-fixture migration per PR. Existing fixture contents and assertions are preserved.

  • README, --help, and a changelog fragment are not applicable to this test-only change.
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    Tests
    Standardized temporary-project setup across performance tests, with consistent cleanup of test files and directories.
    * Existing checks for CLI behavior, database workflows, engine comparisons, migrations, and polyglot projects remain unchanged.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 128 lines (+96 / -32) across 1 files Reviewer: coderabbitai[bot] Review duration: 6m
    All Vouch review confidence checks passed
    Residual risk 0.36 = Change Risk (0.60) × (1 − Review Confidence (0.40)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.60 · 128 lines diff across 1 files
    0.60
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    40%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.291
    Sensitive Paths sensitive_paths
    0.060
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #131"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 40.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 60.2% (MEDIUM) · Higher = larger blast radius
    60.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 40.5% · Lower = rushed or shallow review
    40.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 35.9% · Moderate risk
    35.9%