CMP-4511: Wait for each timed-out scan to finish retrying in TestScheduledSuiteTimeoutFail #1511
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
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
rhmdnd
TestScheduledSuiteTimeoutFail fails now and then in
e2e-aws-scan-configwith "The scan should have the timeout annotation" (Oct 16 on #1471, Oct 19 on #1486). The scan it creates withMaxRetryOnTimeout: 0is retried anyway: the field is anintwithomitemptyand 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, andWaitForSuiteScansStatusreturns 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: 0there 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