Skip to content

ROX-19064: Scanner V4 Vuln Load Reduce Wait#19832

Open
dcaravel wants to merge 1 commit intomasterfrom
dc/scan4-less-start-delay
Open

ROX-19064: Scanner V4 Vuln Load Reduce Wait#19832
dcaravel wants to merge 1 commit intomasterfrom
dc/scan4-less-start-delay

Conversation

@dcaravel
Copy link
Copy Markdown
Contributor

@dcaravel dcaravel commented Apr 5, 2026

Description

Scanner V4 CI jobs were inconsistently timing out while waiting for initial vulns to load.

Matcher's initial attempts to GET latest vuln bundle from Central may fail when Central is not yet ready. When this happens Matcher will wait between 10-25 mins (random due to jitter) before trying again. This is a needless delay in CI.

Increase the retries to fetch vulns

Four attempts are made to contact Central before the long wait - this is not enough for CI - 'connection refused' was observed for all 4 attempts on multiple jobs, and separately i/o timeout errors were observed which short-circuit the retries.

The number of retries was increased to 12 and i/o timeout is now considered a retryable error to address this.

No jitter before initial load

The jitter time has been removed from the long wait if vulns have not yet been initialized, this reduces the initial wait to a predictable 5 mins instead of random 10-25 mins. The jitter was kept in-tact for attempts after the initial load completes.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

No new automated tests added

How I validated my change

Against StackRox Scanner these changes will be tested by CI as part of this PR

Against Scanner V4 these changes were validated in #19236 and will be validated again in a future PR when Scanner V4 is officially turned on in CI.

by ensuring not sleeping needlessly for 10+ mins
@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Apr 5, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@dcaravel
Copy link
Copy Markdown
Contributor Author

dcaravel commented Apr 5, 2026

/test all

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 5, 2026

Codecov Report

❌ Patch coverage is 0% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 49.59%. Comparing base (2d5d7a2) to head (9dec822).

Files with missing lines Patch % Lines
scanner/matcher/updater/vuln/updater.go 0.00% 15 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #19832      +/-   ##
==========================================
- Coverage   49.60%   49.59%   -0.01%     
==========================================
  Files        2763     2763              
  Lines      208339   208351      +12     
==========================================
  Hits       103341   103341              
- Misses      97331    97343      +12     
  Partials     7667     7667              
Flag Coverage Δ
go-unit-tests 49.59% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 5, 2026

🚀 Build Images Ready

Images are ready for commit 9dec822. To use with deploy scripts:

export MAIN_IMAGE_TAG=4.11.x-561-g9dec822f5e

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 5, 2026

🚀 Build Images Ready

Images are ready for commit 9dec822. To use with deploy scripts:

export MAIN_IMAGE_TAG=4.11.x-561-g9dec822f5e

@dcaravel dcaravel marked this pull request as ready for review April 6, 2026 04:19
@dcaravel dcaravel requested a review from a team as a code owner April 6, 2026 04:19
@dcaravel dcaravel changed the title ROX-19064: Scanner V4 Vuln Load Less Likely Sleep ROX-19064: Scanner V4 Vuln Load Reduce Wait Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant