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

NVIDIA / nvrc / 46525191086
98%

Build:
DEFAULT BRANCH: main
Ran 30 Nov 2026 10:16PM UTC
Jobs 1
Files 24
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

30 Nov 2026 10:15PM UTC coverage: 97.61% (+0.1%) from 97.465%
46525191086

push

github

zvonkok
nic_cdi: write a CDI spec for ConnectX NICs

Under kata runtime-rs a container with a ConnectX function did not
start. The runtime annotates the function as nvidia.com/nic=<index>,
kata-agent looks the name up in a CDI spec under /var/run/cdi, and
nothing in the guest wrote one. The agent failed the container after
100 s.

NVRC now writes /var/run/cdi/nvidia-nic.json before it starts the
agent. Each ConnectX function gets one device, numbered in PCI order as
the runtime numbers them, with the function's RDMA device nodes and its
PCI address in an environment variable. rdma_cm is shared by all
functions, so it is listed once for the whole spec.

This is temporary. The spec belongs in nvidia-ctk cdi generate
(NVIDIA/nvidia-container-toolkit#2197), and this module is deleted when
that exists. The CDI crate is not used because it would add serde,
oci-spec, jsonschema, regex and clap to PID 1.

The list of functions comes from pcilibs-rs, from the same scan the
mode is detected from. The RDMA drivers (mlx5_ib, ib_umad, rdma_ucm)
are loaded by one function that the spec writer and the ConnectX fabric
code both call. A VM with a ConnectX function on a kernel without these
drivers now stops at boot.

The spec tests parse the JSON with serde_json, a dev-dependency.
kata-agent's own parser was not used for the tests because it would add
roughly 190 packages to Cargo.lock.

Signed-off-by: Zvonko Kaiser <zkaiser@nvidia.com>
Assisted-by: Claude Code <noreply@anthropic.com>

199 of 200 new or added lines in 2 files covered. (99.5%)

2655 of 2720 relevant lines covered (97.61%)

11.9 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
99.45
src/nic_cdi.rs
Jobs
ID Job ID Ran Files Coverage
1 46525191086.1 30 Nov 2026 10:16PM UTC 24
97.61
GitHub Action Run
Source Files on build 46525191086
  • Tree
  • List 24
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #46525191086
  • aabbf6db on github
  • Prev Build on main (#46523621631)
  • Next Build on main (#46915083177)
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