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

xapi-project / xen-api / 20751761446
80%

Build:
DEFAULT BRANCH: master
Ran 06 Jan 2026 02:44PM UTC
Jobs 1
Files 34
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

06 Jan 2026 02:36PM UTC coverage: 80.459%. Remained the same
20751761446

push

github

web-flow
stream_vdi: Only process allocated clusters for VHD and QCOW on XVA export (#6786)

Following https://github.com/xapi-project/xen-api/pull/6769, add a
`read_headers` command to `vhd-tool` (following `qcow-tool`'s JSON
format). This allows `stream_vdi` to determine which clusters are
allocated in QCOW- and VHD-backed VDIs, only reading and writing
allocated blocks (previously it read the whole raw disk, verifying if
blocks only contain zeros).

If there are any issues during header parsing, it falls back to the slow
path (we don't handle errors during XVA export well, embedding 500
packets inside 200s)

This greatly speeds up XVA export for VMs with sparse VDIs:

5gb empty VDI: 19s -> 3s
5gb empty VDI + 2mb filled VDI: 22s -> 6s
5gb empty VDI + half-empty VDI (~4 gigs out of 10): 89s -> 49s

Note: If the block size of the VDI is larger than the size of the XVA
blocks (this is currently the case for VHD, it has blocks of 2mb, while
stream_vdi splits xvas into files of 1mb), stream_vdi can overestimate
the size of allocated data (say, if only the first half of the VHD block
has data), but in testing with real VDIs this impact was within a margin
of error.

3504 of 4355 relevant lines covered (80.46%)

0.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python3.11 - 20751761446.1 06 Jan 2026 02:44PM UTC 34
80.46
GitHub Action Run
Source Files on build 20751761446
  • Tree
  • List 34
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20751761446
  • 19f2398f on github
  • Prev Build on gh-readonly-queue/master/pr-6785-37c017ba966aa1f1832f8df948aa476f4cda9392 (#20745770265)
  • Next Build on master (#20769899698)
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

© 2026 Coveralls, Inc