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

xapi-project / xen-api / 21716252420 / 1
80%
master: 80%

Build:
Build:
LAST BUILD BRANCH: private/edvint/distance
DEFAULT BRANCH: master
Ran 05 Feb 2026 02:58PM UTC
Files 34
Run time 1s
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

05 Feb 2026 02:54PM UTC coverage: 80.459%. Remained the same
21716252420.1

push

github

web-flow
CA-423576: fix cli_progress_bar crashes (#6892)

cli_progress_bar is used by `xe --progress`, and I've reused it in my
test code in https://github.com/xapi-project/xen-api/pull/6858.
However >90% of my test runs failed on various machines due to a
`String.blit` exception from `cli_progress_bar`.

There are 2 possible reasons, not sure which one caused the failure, but
I've fixed both, and now I have a lot more green tests (and the failures
are due to actual bugs in the product, not bugs in the progress bar):
* if the ETA printed would be >99h (even just temporarily) then we'd
overflow the buffer's size and raise an exception. `%02d` means at least
2 digits, not at most!
* if time goes backwards then we'd get a negative ETA and try to print a
`-` and overflow the buffer size again and raise an exception. Replaced
it with monotonic time

This also contains an improvement I've made on the other PR to print
total time in `ms` (to avoid having to solve rebase conflicts twice in
the 2 PRs). This avoids printing awkward looking lines like Total time
00:00:00, when it actually took 0.9s maybe.

3504 of 4355 relevant lines covered (80.46%)

0.8 hits per line

Source Files on job python3.11 - 21716252420.1
  • Tree
  • List 34
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 21716252420
  • 90d6814c on github
  • Prev Job for on gh-readonly-queue/master/pr-6892-2a7acb531e2d9f75809282f456ffbbbfaf84501e (#21715435569.1)
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