The PR server stop command was unsuccessful since the pid tmp file doesnt exist: AssertionError: Command 'bitbake-prserv --host localhost --port 34207 --loglevel=DEBUG --stop' returned non-zero exit status 1: Traceback (most recent call last): File "/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/bitbake/bin/bitbake-prserv", line 53, in <module> ret = main() File "/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/bitbake/bin/bitbake-prserv", line 46, in main ret=prserv.serv.stop_daemon(options.host, options.port) File "/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/bitbake/lib/prserv/serv.py", line 426, in stop_daemon raise e File "/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/bitbake/lib/prserv/serv.py", line 421, in stop_daemon os.remove(pidfile) FileNotFoundError: [Errno 2] No such file or directory: '/tmp/PRServer_127.0.0.1_34207.pid' Waiting for pr-server to exit. Sending SIGTERM to pr-server. More details at: https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/2002/steps/14/logs/stdio
Looks like a shutdown race condition.
We think this is a race that we should keep looking for an fix.
Build move to 5.0 -- ../Randy
Transcribing Richard's comment during the triage meeting: https://git.yoctoproject.org/poky/tree/bitbake/lib/prserv/serv.py#n265: if os.path.exists(pidfile): os.remove(pidfile) => pidfile might be removed by the exiting process between those 2 lines and trigger the FileNotFoundError exception A fix might be to encase the os.remove in a try/except to ignore silently this case.
Patch sent : https://lists.openembedded.org/g/bitbake-devel/message/15981
Fix merged : https://git.yoctoproject.org/poky/commit/bitbake?id=ef88dee4f77ca95ec79e62d08fc0a01e83528e11&h=master