Skip to content

ROX-19064: Scanner V4 Automated Tests (Image Scanning)#19673

Draft
dcaravel wants to merge 4 commits intomasterfrom
dc/scanv4-scan-groovy
Draft

ROX-19064: Scanner V4 Automated Tests (Image Scanning)#19673
dcaravel wants to merge 4 commits intomasterfrom
dc/scanv4-scan-groovy

Conversation

@dcaravel
Copy link
Copy Markdown
Contributor

Description

Part of a series of changes that modify groovy tests to work with both StackRox Scanner and Scanner V4.

Scanner V4 is not enabled yet, this is prep work so that it can be enabled in a future PR.

Updates the Image Scanning Tests to work with both scanners.

Stacked on top of

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

  • modified existing tests

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

Add null guard to found checks so that it actually retries when image
not found yet vs. failing with NullPointerException. This was causing
CI flakes during testing.
…y flag

- Creates a ScannerV4Integration type for tests to use (will be part of future commits)
- The Scanner V4 integration cannot be deleted in Central by design, the new isDeletable() method allows tests to act accordingly.
- Makes isTestable() for StackRoxScannerIntegration conditional on Scanner V4 being enabled. When Scanner V4 is enabled StackRox Scanner is not reachable for image scans (exception: delegated scanning, but that is not tested in groovy tests)
@dcaravel
Copy link
Copy Markdown
Contributor Author

/test all

@rhacs-bot
Copy link
Copy Markdown
Contributor

Images are ready for the commit at b4d8dbf.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-464-gb4d8dbf958.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.38%. Comparing base (699eeed) to head (b4d8dbf).
⚠️ Report is 13 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #19673      +/-   ##
==========================================
+ Coverage   49.37%   49.38%   +0.01%     
==========================================
  Files        2742     2743       +1     
  Lines      206921   207037     +116     
==========================================
+ Hits       102165   102245      +80     
- Misses      97172    97212      +40     
+ Partials     7584     7580       -4     
Flag Coverage Δ
go-unit-tests 49.38% <ø> (+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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants