Skip to content

ROX-33385: VM v2 scan DataStore interface#19432

Draft
dashrews78 wants to merge 1 commit intomasterfrom
dashrews/vm-v2-scan-datastore-actually-33385
Draft

ROX-33385: VM v2 scan DataStore interface#19432
dashrews78 wants to merge 1 commit intomasterfrom
dashrews/vm-v2-scan-datastore-actually-33385

Conversation

@dashrews78
Copy link
Contributor

Add read-only DataStore for VirtualMachineScanV2, modeled after the
image component v2 and image CVE v2 datastores. The singleton is gated
behind the VirtualMachinesEnhancedDataModel feature flag, returning nil
when disabled.

Integration tests cover all DataStore methods (Search, SearchRawVMScans,
Exists, Get, Count, GetBatch) under 10 namespace-scoped SAC contexts
plus denied-access and feature-flag gating scenarios.

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

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!

Add read-only DataStore for VirtualMachineScanV2, modeled after the
image component v2 and image CVE v2 datastores. The singleton is gated
behind the VirtualMachinesEnhancedDataModel feature flag, returning nil
when disabled.

Integration tests cover all DataStore methods (Search, SearchRawVMScans,
Exists, Get, Count, GetBatch) under 10 namespace-scoped SAC contexts
plus denied-access and feature-flag gating scenarios.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dashrews78
Copy link
Contributor Author

This change is part of the following stack:

Change managed by git-spice.

@openshift-ci
Copy link

openshift-ci bot commented Mar 16, 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
Contributor

Images are ready for the commit at 01c06df.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-327-g01c06dfa8c.

@codecov
Copy link

codecov bot commented Mar 16, 2026

Codecov Report

❌ Patch coverage is 71.42857% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 49.74%. Comparing base (3570fa6) to head (01c06df).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
...virtualmachine/scan/v2/datastore/datastore_impl.go 81.25% 4 Missing and 2 partials ⚠️
...tral/virtualmachine/scan/v2/datastore/singleton.go 44.44% 5 Missing ⚠️
...tral/virtualmachine/scan/v2/datastore/datastore.go 62.50% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master   #19432   +/-   ##
=======================================
  Coverage   49.73%   49.74%           
=======================================
  Files        2703     2706    +3     
  Lines      204040   204089   +49     
=======================================
+ Hits       101489   101515   +26     
- Misses      94976    94995   +19     
- Partials     7575     7579    +4     
Flag Coverage Δ
go-unit-tests 49.74% <71.42%> (+<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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants