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

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

Build:
Build:
LAST BUILD BRANCH: CP-314185-typed-card-order
DEFAULT BRANCH: master
Ran 18 Nov 2026 02:29PM 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

18 Nov 2026 02:28PM UTC coverage: 78.996%. Remained the same
44324722740

push

github

web-flow
CP-314178: gpu_partition_helper: read GPU partition modes at xapi start (#7383)

`PGPU.partition_mode` can say whether a GPU is divided into partitions,
but nothing sets it from the GPU yet. This PR adds the first reader. At
xapi start, a host taking part in GPU partitioning runs the GPU
partition helper (a program that reads the partitions of one GPU) for
each of its NVIDIA GPUs bound to the `nvidia` driver, and writes what it
finds.

- `Gpu_partition_probe` decodes the helper's reply. A reply is read in
two steps: first, on every page, the members every reply shares
(`Envelope.Core`), to check the schema, its major version, and that the
pages are all there and in order; then what xapi acts on or checks,
which must be readable: the GPU's address, the MIG mode, the case, the
GPU instances and the sections' statuses. A fault in any other member
costs nothing. Page 1 names the GPU asked for, or none; later pages must
name it, and hold only its list slices. A reason is the helper's own
kind (`Helper`), or one of xapi's (`Xapi`) when there is no usable
reply: helper absent or not executable, timeout, crash, undecodable
output, or a GPU already being read (kept for a later change that can
start a second read of a GPU). When a reply is not JSON, or its core or
the members xapi acts on cannot be read, the reader's message is logged
at debug, and the reason is the exit code's: `decode_failed` after exit
0, `helper_absent` after 127, `helper_not_executable` after 126, and
`helper_crashed` after any other exit code or a signal. A reply refused
by a check on its schema name, line length, pages, GPU, mode or case is
logged only by its reason: `decode_failed`, or the exit code's for a
reply cut short.
- `Gpu_partition_helper` runs the helper with `Helpers.call_script` and
a 5 s deadline. The path is the new `xapi.conf` key
`gpu-partition-helper`, by default
`/opt/xensource/libexec/gpu-partition-helper`; a missing helper is never
started. Each GPU is first written ... (continued)

3667 of 4642 relevant lines covered (79.0%)

0.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python3.11 - 44324722740.1 18 Nov 2026 02:29PM UTC 36
79.0
GitHub Action Run
Source Files on build 44324722740
  • 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 #44324722740
  • 3057c289 on github
  • Prev Build on feature/mig (#44323492206)
  • Next Build on feature/mig (#44346022435)
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