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

xapi-project / xen-api / 17451996512
80%

Build:
DEFAULT BRANCH: master
Ran 04 Sep 2025 03:02AM 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

03 Sep 2025 09:17AM UTC coverage: 80.368%. Remained the same
17451996512

push

github

web-flow
rrd: Fix absolute rate calculations (#6646)

Absolute metric should work as follows:

    Timestamp    = 300, 600, 900, 1200
    Step         = 300 seconds
    ABSOLUTE DS  =    1,  2,   3,    4

But they do not seem to have ever worked correctly - they were
previously divided by the interval but incorrectly handled NaNs,
resulting in wrong behaviour. Then the refactoring (including 73ca3cc
("CA-404597: rrd - Pass Gauge and Absolute data source values as-is"))
broke them further.

Divide absolute metrics by the interval in process_ds_value. Fix the
unit test to expect the right behaviour - it passes with this fix.

---

This means absolute metrics are now correctly calculated as unit/s,
changing the behaviour in
https://github.com/xapi-project/xen-api/pull/6640

I am not 100% sure this fix goes all the way either - unit tests should
cover expected values in RRAs as well, and the logic is still really
confusing to me.

3496 of 4350 relevant lines covered (80.37%)

0.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python3.11 - 17451996512.1 04 Sep 2025 03:02AM UTC 34
80.37
GitHub Action Run
Source Files on build 17451996512
  • 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 #17451996512
  • 6c16a2f1 on github
  • Prev Build on gh-readonly-queue/master/pr-6637-cc2f09e49c71b9421d9b4309831aeaf567a974ff (#17428880968)
  • Next Build on master (#17482469226)
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