mbox series

[0/7] oe-selftest: devtool ide-sdk: make slirp tests port collision proof

Message ID 20260917183832.998361-1-adrian.freihofer@siemens.com
Headers show
Series oe-selftest: devtool ide-sdk: make slirp tests port collision proof | expand

Message

AdrianF Sept. 17, 2026, 6:37 p.m. UTC
From: Adrian Freihofer <adrian.freihofer@siemens.com>

This is a first, minimally invasive attempt to fix the flaky devtool
ide-sdk debug-server tests on the autobuilder: parallel oe-selftest
workers race for the same qemu slirp host ports, and runqemu silently
remaps a taken debug-server port instead of failing, which lldb-server/
gdbserver cannot recover from. The fix reserves a block of free host
ports up front (via its own lock directory) and bakes them into
QB_SLIRP_OPT so runqemu doesn't need to remap them.

Planned follow-ups, not included here:
- Two more commits improving runqemu's slirp MAC address allocation,
  which was also found to fail under the same kind of parallel-worker
  race.
- A more invasive change: allocate the ports dynamically via QEMU's
  QMP API once the instance is running, instead of reserving them
  ahead of time with flock files.

Preview probably for the next release is here:
https://git.openembedded.org/openembedded-core-contrib/log/?h=adrianf/ide-sdk-improvements