Skip to content

ROX-33608: hook VM pipelines to V2 datastores#19553

Draft
dashrews78 wants to merge 1 commit intodashrews/virt-v2-ensure-33608from
dashrews/virt-v2-pipelines-33608
Draft

ROX-33608: hook VM pipelines to V2 datastores#19553
dashrews78 wants to merge 1 commit intodashrews/virt-v2-ensure-33608from
dashrews/virt-v2-pipelines-33608

Conversation

@dashrews78
Copy link
Contributor

Both the VM and scan-index pipelines now branch at runtime based on
whether the v2 datastore Singleton is non-nil (feature flag
VirtualMachinesEnhancedDataModel is ON).

VM pipeline: Run dispatches to runV1/runV2 for upsert/delete;
Reconcile dispatches to reconcileV1/reconcileV2.

Scan-index pipeline: after enrichment, storeV1Scan (existing path) or
storeV2Scan (EnsureVirtualMachineExists → ScanPartsFromV1Scan →
UpsertScan).

When the flag is OFF the Singleton returns nil and the v1 path is used
unchanged.

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!

Both the VM and scan-index pipelines now branch at runtime based on
whether the v2 datastore Singleton is non-nil (feature flag
VirtualMachinesEnhancedDataModel is ON).

VM pipeline: Run dispatches to runV1/runV2 for upsert/delete;
Reconcile dispatches to reconcileV1/reconcileV2.

Scan-index pipeline: after enrichment, storeV1Scan (existing path) or
storeV2Scan (EnsureVirtualMachineExists → ScanPartsFromV1Scan →
UpsertScan).

When the flag is OFF the Singleton returns nil and the v1 path is used
unchanged.

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

@openshift-ci
Copy link

openshift-ci bot commented Mar 23, 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 d29e74e.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-413-gd29e74e35b.

@codecov
Copy link

codecov bot commented Mar 23, 2026

Codecov Report

❌ Patch coverage is 90.78947% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 49.30%. Comparing base (ae3cb10) to head (d29e74e).

Files with missing lines Patch % Lines
...ensor/service/pipeline/virtualmachines/pipeline.go 91.30% 4 Missing ⚠️
...r/service/pipeline/virtualmachineindex/pipeline.go 90.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@                        Coverage Diff                        @@
##           dashrews/virt-v2-ensure-33608   #19553      +/-   ##
=================================================================
+ Coverage                          49.26%   49.30%   +0.04%     
=================================================================
  Files                               2729     2729              
  Lines                             206035   206101      +66     
=================================================================
+ Hits                              101493   101618     +125     
+ Misses                             96996    96942      -54     
+ Partials                            7546     7541       -5     
Flag Coverage Δ
go-unit-tests 49.30% <90.78%> (+0.04%) ⬆️

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