Skip to content

runtime: Fix netkit endpoint tests using non-existent struct fields#41

Draft
antoine-gaillard wants to merge 32 commits intodatadogfrom
agaillard/fix-netkit-tests
Draft

runtime: Fix netkit endpoint tests using non-existent struct fields#41
antoine-gaillard wants to merge 32 commits intodatadogfrom
agaillard/fix-netkit-tests

Conversation

@antoine-gaillard
Copy link
Copy Markdown

The tests were using PciPath{Bus, Device, Function} and CcwDevice{DevNo} which don't exist. These fields never existed - the tests were broken from the start in commit 62a2c6f.

Use the proper constructors:

  • PciPathFromString() for PciPath
  • CcwDeviceFrom() for CcwDevice

Fixes tests introduced in: 62a2c6f ("runtime: Add support for netkit endpoints")

zaymat and others added 30 commits January 20, 2026 10:04
microVM sandbox resources are computed from pod sandbox annotations.
In particular, the number of vCPU is calculated by using CPU quota
divided by CPU period. However, on clusters where CFS quotas are disabled,
or if the pod doesn't specify any limit, the compute size is 0.
When using resource hot pluging, the value value will be the size of the
CPU set, which doesn't impact the performance of the microVM pod. But when
using static sandbox management, the computed value will be 0 and the
microVM will be dramatically undersized.

This change takes into account CPU shares while computing the number of vCPU,
and default the CPU Shares/1024 in case CPU quota and/or periods are zeros.
Co-authored-by: Maxime VISONNEAU <maxime.visonneau@gmail.com>
- Add scratch-based Dockerfile for kata data volume
- Move Dockerfile to docker/ subdir and fix config file handling
- Fix Dockerfile to extract only essential kata files
- Add containerd runtime dropin configuration files

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
An early call to closing the stdin channel made the stdout & stderr also closed.
This waits for stdout & stderr to be properly finished by reading the whole buffer before closing everything.
On the other, this also fixes a race condition where it was impossible to run multiple execs until the other one was over.
This moves the lock only where it is necessary without locking exec processes.

Fixes kata-containers#10387

Signed-off-by: Maxime Bertin <mbertin@luccasoftware.com>
Co-authored-by: Maxime Bertin <mbertin@luccasoftware.com>
The WORKFLOW_TOKEN no longer exists, so artefact uploads fail. Use
the built-in token instead.
Signed-off-by: Hadrien Patte <hadrien.patte@datadoghq.com>
Add support for [`netkit`](https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/commit/?id=22360fad5889cbefe1eca695b0cc0273ab280b56) network devices similarly to how `veth` devices are currently handled.

Signed-off-by: Hadrien Patte <hadrien.patte@datadoghq.com>
HadrienPatte and others added 2 commits January 20, 2026 10:04
Netkit devices in L3 mode have no MAC address and require IP routing
instead of L2 bridging. Since L3 routing is not currently implemented,
reject these devices early with a clear error message directing users
to use netkit L2 mode or veth devices instead.

Signed-off-by: Hadrien Patte <hadrien.patte@datadoghq.com>
The tests were using PciPath{Bus, Device, Function} and CcwDevice{DevNo}
which don't exist. These fields never existed - the tests were broken
from the start in commit 62a2c6f.

Use the proper constructors:
- PciPathFromString() for PciPath
- CcwDeviceFrom() for CcwDevice

Fixes tests introduced in: 62a2c6f ("runtime: Add support for netkit endpoints")

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants