From: Adrian Freihofer <[email protected]> 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
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#246080): https://lists.openembedded.org/g/openembedded-core/message/246080 Mute This Topic: https://lists.openembedded.org/mt/121302023/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
