[AAP-82307] [XLAB] Fix calculation of time taken manually to execute #375
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.46) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 468 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.368
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #375"
general
weight: 0.35
kcagran
[AAP-82307] Fix calculation of time taken manually to execute
Description
<!-- Mandatory: Provide a clear, concise description of the changes and their purpose -->
- Modified
_apply_time_estimate_defaultsto match the correct calculations described in the ticket - specifically, removed the cap in theestimatedcalculation- The "Time taken to manually execute (min)" should default to 2x the actual running time of the job template, consistent with the standalone Automation Dashboard Utility.
- See above
Type of Change
<!-- Mandatory: Check one or more boxes that apply -->
Self-Review Checklist
<!-- These items help ensure quality - they complement our automated CI checks -->
Testing Instructions
<!-- Optional for test-only changes. Mandatory for all other changes -->
<!-- Must be detailed enough for reviewers to reproduce -->
Prerequisites
Follow README.md to set up local environment. Make sure
metrics_serviceis running.1. Run a local instance (or docker compose) for AWX and Metrics Service databases with all recent migrations
2. Update your environment variables to match your local setup - https://github.com/ansible/metrics-service#quick-start-1
Steps to Test
1. Give your local instance some fake data:
2. Check the template metadata via curl:
Expected Results
Curl output:
As is seen from this output,
time_taken_manually_execute_minutesis2(2× the 60-second/1-minute running time), not the old flat30.