← Back to Pull requests

CMP-4511: Wait for each timed-out scan to finish retrying in TestScheduledSuiteTimeoutFail #1511

Open
unknown opened this pull request with 203 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 29, 2026 23:19 UTC
Author

TestScheduledSuiteTimeoutFail fails now and then in e2e-aws-scan-config with "The scan should have the timeout annotation" (Oct 16 on #1471, Oct 19 on #1486). The scan it creates with MaxRetryOnTimeout: 0 is retried anyway: the field is an int with omitempty and a CRD default of 3, so the 0 never reaches the API. Between retries the suite reports DONE/ERROR after the rescan has already removed the scan's timeout annotation, and WaitForSuiteScansStatus returns early when it expects ERROR. In both failed runs the wait returned in the same second as a "Retrying scan ...-workers-scan" event.

The test now waits for each scan to finish retrying (DONE, with the timeout annotation and without the rescan annotation) before checking it, and fails at once if a scan finishes without timing out. The first scan's retry check uses the retry count from its spec, so it holds today (3) and once the field accepts 0.

The dropped 0 looks like a product bug of its own: the operator builds suites and scans from a ScanSetting with the same Go types, so maxRetryOnTimeout: 0 there still gives 3 retries.

Tested on OCP 4.22.18 (GCP, master's operator image): TestScheduledSuiteTimeoutFail passed 4 of 4 runs (21-26 s). The new log line shows the scan set to 0 retries "timed out after 3 retries (maxRetryOnTimeout 3)", and the other one after 1.

Jira: CMP-4511

Generated with Claude Code

[CMP-4511]: https://redhat.atlassian.net/browse/CMP-4511?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

Diff: 203 lines (+152 / -51) across 2 files Reviewer: rhmdnd Review duration: 51039m
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.43) × (1 − Review Confidence (0.41)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 203 lines diff across 2 files
0.43
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
40%
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
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.318
Real PR Conversation Timeline
1 comments
"Review active on #1511"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 40.9% 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: 43.3% (MEDIUM) · Higher = larger blast radius
43.3%
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: 40.9% · Lower = rushed or shallow review
40.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: 25.6% · Safe to merge
25.6%