← Back to Pull requests

fix(deps): raise pytest-asyncio floor to 0.23 for pytest>=8 compatibility #21

Closed
unknown closed this pull request without merging on Oct 01, 2026 03:48 UTC
View on GitHub
unknown unknown commented on Oct 01, 2026 03:41 UTC
Author

Why

The declared dev ranges are mutually inconsistent at their corners:

  • pytest>=8.0.0,<9.0.0 — pytest 8 removed FixtureDef.unittest

  • pytest-asyncio>=0.21.0,<0.24.0 — pytest-asyncio <0.23 still accesses FixtureDef.unittest during async fixture setup
  • Fresh installs that resolve pytest-asyncio to 0.21/0.22 (within the old range) get 3 collection/setup errors in tests/integration/test_integration.py (AttributeError: 'FixtureDef' object has no attribute 'unittest'). CI is unaffected only because its resolver picks 0.23.x — the contract itself is wrong.

    Change

    One line: pytest-asyncio>=0.23.0,<0.24.0 (+ explanatory comment).

    Verification (local, live output)

    | Command | Result |
    |---|---|
    | python3 -m pytest -q tests/integration/test_integration.py (pytest 8.4.2 + pytest-asyncio 0.23.8) | 24 passed |
    | Full suite pytest -q -m "not real_llm" on merged main (e4a030a) | 1870 passed, 0 errors |
    | git diff --check | clean |

    No runtime behavior change; no doc-truth change (governance lives in PR #20).

    Diff: 132 lines (+99 / -33) across 1 files Reviewer: Xander-Xai Review duration: 7m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.37) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 132 lines diff across 1 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    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
    Diff Size diff_size
    0.293
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #21"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    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: 37.2% (MEDIUM) · Higher = larger blast radius
    37.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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 16.1% · Safe to merge
    16.1%