Bug 15087

Summary: AB-INT: prservice.BitbakePrTests.test_stopping_prservice_message failure PID file not found
Product: [QA/Testing] Functional (self) Testing Reporter: Alexandre Belloni <alexandre.belloni>
Component: oe-selftestAssignee: Randy MacLeod <randy.macleod>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: alexandre.belloni, randy.macleod, ross.burton, tgamblin, yoann.congal
Version: unspecified   
Target Milestone: 5.99   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT AB-HAVE-PLAN
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Alexandre Belloni 2023-03-30 14:14:12 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/4959/steps/14/logs/stdio

oe-selftest-centos alma9-ty-1

2023-03-21 12:17:07,495 - oe-selftest - INFO - prservice.BitbakePrTests.test_stopping_prservice_message (subunit.RemotedTestCase)
2023-03-21 12:17:07,496 - oe-selftest - INFO -  ... FAIL
Stderr:
2023-03-21 11:52:13,604 - oe-selftest - INFO - Adding: "include selftest.inc" in /home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-488551/conf/local.conf
2023-03-21 11:52:13,605 - oe-selftest - INFO - Adding: "include bblayers.inc" in bblayers.conf
2023-03-21 12:17:07,496 - oe-selftest - INFO - 10: 19/27 310/524 (1.96s) (0 failed) (prservice.BitbakePrTests.test_stopping_prservice_message)
2023-03-21 12:17:07,496 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/oe-selftest-centos/build/meta/lib/oeqa/selftest/cases/prservice.py", line 124, in test_stopping_prservice_message
    ret = runCmd('bitbake-prserv --host localhost --port %s --loglevel=DEBUG --stop' % port)
  File "/home/pokybuild/yocto-worker/oe-selftest-centos/build/meta/lib/oeqa/utils/commands.py", line 214, in runCmd
    raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, exc_output))
AssertionError: Command 'bitbake-prserv --host localhost --port 42921 --loglevel=DEBUG --stop' returned non-zero exit status 1:
Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/oe-selftest-centos/build/bitbake/bin/bitbake-prserv", line 59, in <module>
    ret = main()
  File "/home/pokybuild/yocto-worker/oe-selftest-centos/build/bitbake/bin/bitbake-prserv", line 52, in main
    ret=prserv.serv.stop_daemon(options.host, options.port)
  File "/home/pokybuild/yocto-worker/oe-selftest-centos/build/bitbake/lib/prserv/serv.py", line 270, in stop_daemon
    raise e
  File "/home/pokybuild/yocto-worker/oe-selftest-centos/build/bitbake/lib/prserv/serv.py", line 265, in stop_daemon
    os.remove(pidfile)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/PRServer_127.0.0.1_42921.pid'
Sending SIGTERM to pr-server.
Comment 1 Randy MacLeod 2023-03-30 14:54:19 UTC
Most likely a shutdown race condition.
There are probably two things removing the pid file.
Comment 2 Randy MacLeod 2023-07-26 21:22:05 UTC
Bulk move of 64 bugs to 4.3 M3 after a quick review.
If a bug is actually fixed, please add a commit link and resolve it.
-- Randy for YP bug team.
Comment 3 Trevor Gamblin 2023-09-14 15:34:14 UTC
Moved to M4.
Comment 4 Randy MacLeod 2023-09-21 14:46:47 UTC
Likely a shutdown race that should be ignored if that's really the case.
Comment 5 Randy MacLeod 2023-10-30 15:29:11 UTC
Bulk move to 5.0 M1. -- Randy
Comment 6 Randy MacLeod 2023-12-21 23:28:24 UTC
Bulk move of 52 5.0-M1 bugs to M2.
Comment 7 Ross Burton 2024-01-23 17:27:34 UTC
Not seen since March 2023, close?
Comment 8 Randy MacLeod 2024-01-25 14:28:48 UTC
Bulk move of bugs owned by "unassigned" from 5.0-M2 to 5.0-M3.
Comment 9 Randy MacLeod 2024-04-25 01:26:29 UTC
Park in 5.99 until I'm sure I have time to work on an issue.