← Back to Pull requests

[19.0][FIX] payroll: test_get_contracts_multiple fails on the last day of the month #321

Open
parabol123654 opened this pull request with 6 lines diff across 1 files
View on GitHub
parabol123654 parabol123654 commented on Oct 31, 2026 04:46 UTC
Author

TestPayslipFlow.test_get_contracts_multiple fails when the tests run on the last day of a month (e.g. today, 2026-10-31):

AssertionError: 2 != 3 : There are 3 open contracts in the payslips

The test ends Sally's first contract today and starts her second contract tomorrow, expecting both in the payslips of the current month. On the last day of a month, tomorrow is in the next month, so the second contract is out of the payslip period.

The change keeps the same scenario (two sequential contracts within the current month) with fixed days: first contract from the 1st to the 15th, second from the 16th. Test only.

Locally (with demo data): payroll 1 failure out of 27 today without the change, 27/27 with it.

Assisted-by: Claude Opus 5.5

Diff: 6 lines (+3 / -3) across 1 files Reviewer: dreispt Review duration: 37350m
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.43) × (1 − Review Confidence (0.64)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 6 lines diff across 1 files
0.43
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: 35%
63%
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.116
Ai Authored ai_authored
0.050
Sensitive Paths sensitive_paths
0.043
Real PR Conversation Timeline
3 items
OCA-git-bot OCA-git-bot commented on Oct 31, 2026 04:52 UTC
Bot

Hi @appstogrow, @nimarosa,
some modules you are maintaining are being modified, check this out!

dreispt dreispt approved these changes on Nov 04, 2026 11:21 UTC
Approved Reviewer

Approved these changes.

Reviewers
Assignees
parabol123654 parabol123654
Labels
risk: low confidence: 63.8% 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: 42.8% (MEDIUM) · Higher = larger blast radius
42.8%
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: 63.8% · Lower = rushed or shallow review
63.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: 15.5% · Safe to merge
15.5%
Repository