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

xapi-project / xen-api / 45220890202
79%
master: 79%

Build:
Build:
LAST BUILD BRANCH: CP-314185-typed-card-order
DEFAULT BRANCH: master
Ran 23 Nov 2026 04:50PM UTC
Jobs 1
Files 36
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

23 Nov 2026 04:49PM UTC coverage: 78.996%. Remained the same
45220890202

push

github

cplaursen
CP-314168: gpu_capacity: count free slots on a partitioned card

Whether another vGPU fits on a partitioned card is computed inline today,
from live state, on a host with a card in it, so the cases that matter
cannot be tested: an unreadable card, a profile the card has no instance
of, an instance shared by several vGPUs.

Add Gpu_capacity.free_slots, a pure function over the card's geometry
and a request. It sums, over the instances of the requested profile, the
type's weight (maxInstancePerGI) for an empty instance, the remaining
room for one already bound to the type, and 0 for one bound to another
type. It counts slots rather than instances or memory, so it does not
depend on the abstract constant the current formula divides.

An unreadable geometry gives None, never Some 0: zero means there is no
room and the VM is refused, while None means the card cannot be judged.

Reference fixtures for the RTX PRO 6000 Blackwell (all 32 partition-backed
types) and the A30 are added as a test library for reuse by other tests.
Both run through the same code. Nothing calls free_slots yet.

Signed-off-by: Christian Pardillo Laursen <christian.pardillolaursen@citrix.com>

3667 of 4642 relevant lines covered (79.0%)

0.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python3.11 - 45220890202.1 23 Nov 2026 04:50PM UTC 36
79.0
GitHub Action Run
Source Files on build 45220890202
  • Tree
  • List 36
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45220890202
  • 62e23b4e on github
  • Prev Build on feature/mig (#44348812268)
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