← Back to Pull requests

[20.0][MIG] test_queue_job: Migration to 20.0 #1021

Open
dhongu opened this pull request with 1330 lines diff across 63 files
View on GitHub
dhongu dhongu commented on Oct 27, 2026 06:08 UTC
Author

Migration of test_queue_job to Odoo 20.0.

Depends on #999: this branch is stacked on queue_job (#999), so the first commits of this PR are the ones of #999. Only the last commits are specific to test_queue_job:

  • history replayed from 19.0 (git format-patch origin/20.0..origin/19.0 -- test_queue_job | git am -3 --keep)

  • [IMP] test_queue_job: pre-commit auto fixes

  • [MIG] test_queue_job: Migration to 20.0
  • Main changes:

  • ir.model.access → ir.access

  • test_company_simple / test_company_complex: since 20.0, with_company() leaves the context unchanged for the current company, and keeps the other allowed companies after the given one

  • lint required by the 20.0 template: file-level # ruff: noqa (DTZ001/DTZ005, C408) instead of rewriting the tests, to keep the diff with 19.0 minimal for forward/backward ports
  • Tested locally on Odoo 20.0 with PostgreSQL 16: test_queue_job installs and all 197 tests of queue_job + test_queue_job pass, with no warning. pre-commit run -a is clean.

    Assisted-by: Claude Opus 5.5

    Diff: 1330 lines (+1008 / -322) across 63 files Reviewer: StefanRijnhart Review duration: 52657m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.96) × (1 − Review Confidence (0.80)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.96 · 1330 lines diff across 63 files
    0.96
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.71 · 3 substantive comment(s)
    0.71
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    79%
    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.400
    Sensitive Paths sensitive_paths
    0.096
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    5 items
    guewen guewen commented on Oct 29, 2026 08:14 UTC
    Contributor

    @dhongu https://github.com/OCA/queue/pull/999 is merged, can you rebase please?

    StefanRijnhart StefanRijnhart commented on code on Nov 18, 2026 11:06 UTC
    Code Review
    test_queue_job/__manifest__.py:1
    @@ -3,7 +3,7 @@
     
     {
         "name": "Queue Job Tests",
    -    "version": "19.0.2.1.0",
    +    "version": "20.0.2.2.0",

        "version": "20.0.1.0.0",
    

    StefanRijnhart StefanRijnhart commented on Nov 18, 2026 11:07 UTC
    Reviewer

    Please rebase.

    guewen guewen commented on Dec 02, 2026 14:44 UTC
    Contributor

    ping @dhongu

    Assignees
    dhongu dhongu
    Labels
    risk: low confidence: 79.9% 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: 96% (HIGH) · Higher = larger blast radius
    96%
    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: 79.9% · Lower = rushed or shallow review
    79.9%
    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: 19.3% · Safe to merge
    19.3%
    Repository