• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kubevirt / containerized-data-importer / #6150
50%

Build:
DEFAULT BRANCH: main
Ran 02 Aug 2026 04:51PM UTC
Jobs 1
Files 159
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Aug 2026 04:38PM UTC coverage: 49.77% (+0.02%) from 49.75%
#6150

push

travis-ci

web-flow
fix: advise csi-clone strategy for Portworx pure_block/pure_fa_file storage classes (#4218)

* fix: advise csi-clone strategy for Portworx pure_block/pure_fa_file storage classes

Motivation:
For a pxd.portworx.com StorageClass with parameter backend=pure_block
(or backend=pure_fa_file), the StorageProfile controller advises the
"snapshot" clone strategy instead of "csi-clone" when populating a
DataVolume from a golden PVC. This means CDI takes the less efficient
snapshot-and-restore path instead of using CSI clone, even though
Portworx supports CSI clone for these backends just like it does for
the base pxd.portworx.com and pxd.portworx.com/nfs provisioner keys.
User-visible behavior for the clone itself is otherwise unaffected
(the clone still succeeds), the only change is which cloning mechanism
is chosen.

Approach:
storageClassToProvisionerKeyMapper["pxd.portworx.com"] derives the
provisioner keys "pxd.portworx.com/pure_block" and
"pxd.portworx.com/pure_fa_file" from the StorageClass's "backend"
parameter, and CapabilitiesByProvisionerKey already has entries for
both. However CloneStrategyByProvisionerKey was missing entries for
these two derived keys, so GetAdvisedCloneStrategy() found no known
strategy and the controller fell back to its generic default
(snapshot if a VolumeSnapshotClass exists, otherwise host-assisted).
Add the two missing entries, mirroring the existing sibling entries
"pxd.portworx.com" and "pxd.portworx.com/nfs" which are both already
CloneStrategyCsiClone.

Validation:
Added a table test reproducing the bug for both backend values, and
confirmed (by temporarily reverting the map change) that it fails
before the fix with "Expected snapshot to equal csi-clone" and passes
after.

  GOWORK=off go test ./pkg/controller/ -run TestController

Ran 367 of 367 Specs in ~2.2 seconds
SUCCESS! -- 367 Passed | 0 Failed | 0 Pending | 0 Skipped

```release-note
Fixed StorageProfile controller advising the wrong clone strategy for Portworx... (continued)

0 of 2 new or added lines in 1 file covered. (0.0%)

7 existing lines in 1 file now uncovered.

15133 of 30406 relevant lines covered (49.77%)

0.56 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
0.0
0.0% pkg/storagecapabilities/storagecapabilities.go

Coverage Regressions

Lines Coverage ∆ File
7
52.63
-9.21% pkg/util/prometheus/prometheus.go
Jobs
ID Job ID Ran Files Coverage
1 #6150.1 02 Aug 2026 04:51PM UTC 159
49.77
Source Files on build #6150
  • Tree
  • List 159
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6f791e87 on github
  • Prev Build on main
  • Next Build on main
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc