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

kubevirt / containerized-data-importer / #5434
49%

Build:
DEFAULT BRANCH: main
Ran 03 Jul 2025 03:26PM UTC
Jobs 1
Files 155
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

03 Jul 2025 03:14PM UTC coverage: 59.425% (+0.07%) from 59.355%
#5434

push

travis-ci

web-flow
Bugfix: Fix math in overhead size calculations  (#3779)

* Fix GetUsableSpace calculation

GetUsableSpace had wrong assumptions about undoing overhead calculations. This commit fixes the math and updates the appropriate unit tests.

Signed-off-by: Alvaro Romero <alromero@redhat.com>

* Fix GetRequiredSpace calculations

GetRequiredSpace uses wrong math to calculate overhead expansion, which usually causes inflated space to be significantly larger than it should.

This commit fixes this calculation and removes the redundant CalculateOverheadSpace.

Signed-off-by: Alvaro Romero <alromero@redhat.com>

* Fix functional tests that assume bad fs overhead inflation

Signed-off-by: Alvaro Romero <alromero@redhat.com>

* Increase image size in upload test to avoid overhead inflation issue

There's a known issue where the default overhead inflation is insufficient to account for the fs overhead in smaller images.

This commit increases the image size in a test so the overhead inflation is enough for the upload to succeed.

Signed-off-by: Alvaro Romero <alromero@redhat.com>

---------

Signed-off-by: Alvaro Romero <alromero@redhat.com>

20 of 21 new or added lines in 3 files covered. (95.24%)

2 existing lines in 1 file now uncovered.

16982 of 28577 relevant lines covered (59.43%)

0.66 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
14.04
0.11% pkg/controller/common/util.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
61.37
-0.26% pkg/importer/vddk-datasource_amd64.go
Jobs
ID Job ID Ran Files Coverage
1 #5434.1 03 Jul 2025 03:26PM UTC 155
59.43
Source Files on build #5434
  • Tree
  • List 155
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 26e34df4 on github
  • Prev Build on main
  • Next Build on main
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc