Skip to content

ROX-19064: Scanner V4 CI Testing (WIP)#19236

Draft
dcaravel wants to merge 44 commits intomasterfrom
dc/scannerv4-ci-exp
Draft

ROX-19064: Scanner V4 CI Testing (WIP)#19236
dcaravel wants to merge 44 commits intomasterfrom
dc/scannerv4-ci-exp

Conversation

@dcaravel
Copy link
Copy Markdown
Contributor

Description

change me!

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

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

change me!

@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Feb 27, 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

@rhacs-bot
Copy link
Copy Markdown
Contributor

rhacs-bot commented Feb 27, 2026

Images are ready for the commit at 8494726.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-443-g8494726004.

@dcaravel dcaravel added the ci-all-qa-tests Tells CI to run all API tests (not just BAT). label Feb 27, 2026
@dcaravel dcaravel changed the title [DO NOT MERGE/REVEIW] Scanner V4 CI Testing Analysis ROX-19064: Scanner V4 CI Testing (WIP) Feb 27, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 28, 2026

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 49.27%. Comparing base (4b9fe1f) to head (8494726).
⚠️ Report is 45 commits behind head on master.

Files with missing lines Patch % Lines
scanner/indexer/indexer.go 0.00% 1 Missing ⚠️
scanner/updater/import.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #19236      +/-   ##
==========================================
+ Coverage   49.25%   49.27%   +0.01%     
==========================================
  Files        2727     2727              
  Lines      205788   205824      +36     
==========================================
+ Hits       101371   101411      +40     
+ Misses      96883    96881       -2     
+ Partials     7534     7532       -2     
Flag Coverage Δ
go-unit-tests 49.27% <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.

@dcaravel dcaravel force-pushed the dc/scannerv4-ci-exp branch 2 times, most recently from 7d1142c to cbdc9bb Compare March 5, 2026 15:39
@dcaravel dcaravel force-pushed the dc/scannerv4-ci-exp branch from 9cfb727 to f9c5f91 Compare March 18, 2026 04:53
@dcaravel dcaravel force-pushed the dc/scannerv4-ci-exp branch from 91b845d to 3fd6f0a Compare March 20, 2026 23:31
@dcaravel
Copy link
Copy Markdown
Contributor Author

/retest

2 similar comments
@dcaravel
Copy link
Copy Markdown
Contributor Author

/retest

@dcaravel
Copy link
Copy Markdown
Contributor Author

/retest

@dcaravel
Copy link
Copy Markdown
Contributor Author

/test ocp-4-21-qa-e2e-tests

1 similar comment
@dcaravel
Copy link
Copy Markdown
Contributor Author

/test ocp-4-21-qa-e2e-tests

@dcaravel
Copy link
Copy Markdown
Contributor Author

/test aro-qa-e2e-tests

@dcaravel
Copy link
Copy Markdown
Contributor Author

/test osd-aws-qa-e2e-tests

@dcaravel
Copy link
Copy Markdown
Contributor Author

/test osd-gcp-qa-e2e-tests

@dcaravel
Copy link
Copy Markdown
Contributor Author

/test rosa-qa-e2e-tests

@dcaravel
Copy link
Copy Markdown
Contributor Author

/test osd-gcp-qa-e2e-tests

@dcaravel
Copy link
Copy Markdown
Contributor Author

/test aks-qa-e2e-tests

@dcaravel
Copy link
Copy Markdown
Contributor Author

/test eks-qa-e2e-tests

@dcaravel
Copy link
Copy Markdown
Contributor Author

/test osd-aws-qa-e2e-tests

dcaravel added 29 commits March 27, 2026 17:38
…able

numbers will not be the same if scanner v4 continues to return duplicates
with different severities
May fix other test as well, Scanner V4 does not support debian 10 or less
images, so updating this test image should allow both V2 and V4 to scan succesfully
After updating the base TEST_IMAGE various policy conditions
had to be updatd as well.
The integration test relied on scanner integrations being deleted, however
the scanner V4 integration cannot be deleted by design, therefore the test
is now skipped when scanner v4 enabled.

The fixable CVEs tests relied on the test image having 100 or more fixable
vulnerabilities, scanner v4 reports less vulnerabilities for the test
image by design, and therefore the regex was modified to expect 1 or more
vulnerabilities.
Update expected component and severity counts to align with scanner v4 output
The image under test was debian:9 based and was reporting no vulns
from scanner v4 breaking a few of the tests. Choosing a new image
was challenging as the runtime was pulling arch specific images, not
the image digest which was breaking the test. Instead pivoted the
test to lookup the actual digest reported by the runtime for the
deployment - which eliminates the 'issue' of trying to find an image
that will trigger predictable behavior from the runtime (which was
unsuccessful in first attempts)
Can't explain why but the wrong digest was being detected for other images
then all of a sudden this digest started being mapped correctly. So this reverts
the autodetection of digest and goes back to hardcoding.

And with that fixes the failing style check
Add image prefetch due to initializationError observed in ci

orchestratormanager.OrchestratorManagerException: The deployment did not start or reach replica ready state - if this job uses image prefetch check that this image is in the jobs prefetch list e.g. qa-tests-backend/scripts/images-to-prefetch.txt - quay.io/rhacs-eng/qa-multi-arch:nginx-3.21-1
Images had to be updated that were too old for scanner v4 results,
Artifact Registry tests skipped because didn't have access to update
the images and the ones there are too old / EoL so were getting no results.
Was able to get a new image pushed to Google Artifact Registry, as a result
was able to update the test to work for both Scanner V2 and V4
Existing images were not producing scan results for Scanner V4 (the were EoL)

Could not find a vuln that was common between the two images with different
severities, so chose two different vulns that have differnt severities.
Add null guard to found checks so that it actually retries when image
not found yet vs. failing with NullPointerException
The prior image produced no violations with Scanner v4 due to being EoL
The updated image is still old but not old enough to yield zero results
this may be brittle.
This reverts commit 2b438cfd09be0ca53ef8f4af4151dee9576c1796.
…ds and table"

This reverts commit cbe83813887ac4315ed5dbbed31bb4868742f187.
@dcaravel dcaravel force-pushed the dc/scannerv4-ci-exp branch from 8494726 to cc7574a Compare March 27, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants