← Back to Pull requests

[19.0][FIX] queue_job: remove redundant closing() wrapper #1017

Open
florentx opened this pull request with 24 lines diff across 4 files
View on GitHub
florentx florentx commented on Oct 26, 2026 14:24 UTC
Author

Remove redundant closing() wrapper

  • psycopg2 will automatically close cursor when leaving the with ... block. Since 2.5 (and Odoo depends on psycopg2 > 2.7 for more than 10 years now. https://github.com/odoo/odoo/blob/8.0/requirements.txt#L22 )

  • and Odoo cursor has same feature
  • And rename test module to remove typo.

    Diff: 24 lines (+11 / -13) across 4 files Reviewer: guewen Review duration: 18991m
    All Vouch review confidence checks passed
    Residual risk 0.09 = Change Risk (0.32) × (1 − Review Confidence (0.72)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.32 · 24 lines diff across 4 files
    0.32
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.54 · 1 substantive comment(s)
    0.54
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    71%
    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.193
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    4 items
    OCA-git-bot OCA-git-bot commented on Oct 26, 2026 14:24 UTC
    Bot

    Hi @guewen, @sbidoul,
    some modules you are maintaining are being modified, check this out!

    guewen guewen approved these changes on Oct 26, 2026 14:27 UTC
    Approved Reviewer

    Approved these changes.

    ivantodorovich ivantodorovich approved these changes on Oct 28, 2026 11:43 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    florentx florentx
    Labels
    risk: low confidence: 71.6% 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: 31.6% (LOW) · Higher = larger blast radius
    31.6%
    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: 71.6% · Lower = rushed or shallow review
    71.6%
    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: 9.0% · Safe to merge
    9.0%
    Repository