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

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

Build:
DEFAULT BRANCH: main
Ran 29 Sep 2026 07:18PM 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

29 Sep 2026 07:03PM UTC coverage: 49.843% (+0.07%) from 49.777%
#6278

push

travis-ci

web-flow
importer, registry-datasource: cleanup and simplify (#4285)

* importer, registry-datasource: retire the stopAtFirst plumbing

Now that CopyRegistryImageAll is gone, stopAtFirst is always true, so
processLayer's ability to keep extracting past the first match is dead
code. Drop the parameter and let processLayer return as soon as it has
copied a matching file, which is what its bool return has always meant
to its only caller.

With stopAtFirst gone, the exported CopyRegistryImage is a pure
pass-through to copyRegistryImage with no callers outside the package.
Drop the wrapper and call copyRegistryImage directly.

Signed-off-by: Adi Aloni <aaloni@redhat.com>

* importer, registry-datasource: move registry transport code into the datasource

transport.go held nothing but registry plumbing for RegistryDataSource,
which left the registry import split across two files for no reason. Move
it verbatim next to its only consumer, the way every other datasource keeps
its helpers in one file.

Signed-off-by: Adi Aloni <aaloni@redhat.com>

* importer, registry-datasource: drop unused CopyRegistryImageAll

CopyRegistryImageAll has no callers, remove it.

Signed-off-by: Adi Aloni <aaloni@redhat.com>

* importer, format-readers: release reader stack when construction fails

Since NewFormatReaders takes ownership of the stream on success, we
should honor failure too and release readers we've managed to construct
+ return nil.

Signed-off-by: Adi Aloni <aaloni@redhat.com>

* importer, registry-datasource: fix image source double close

image.FromSource takes ownership of the ImageSource and closes it along with
the image, but the copy also deferred its own close of the source. That
second Close is why closeImage had to swallow the error into a warning.
Close the source directly only when FromSource itself fails, and let
closeImage take an io.Closer so it covers the image too.

Signed-off-by: Adi Aloni <aaloni@redhat.com>

* importer: inspect the source image once

THe... (continued)

174 of 213 new or added lines in 3 files covered. (81.69%)

15221 of 30538 relevant lines covered (49.84%)

0.56 hits per line

Uncovered Changes

Lines Coverage ∆ File
33
72.35
1.84% pkg/importer/registry-datasource.go
6
92.31
pkg/importer/registry-extract.go
Jobs
ID Job ID Ran Files Coverage
1 #6278.1 29 Sep 2026 07:18PM UTC 159
49.84
Source Files on build #6278
  • Tree
  • List 159
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 221255e6 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