Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testCMSSWVersions test broken in python 3.9 #12115

Open
khurtado opened this issue Sep 26, 2024 · 0 comments
Open

testCMSSWVersions test broken in python 3.9 #12115

khurtado opened this issue Sep 26, 2024 · 0 comments

Comments

@khurtado
Copy link
Contributor

khurtado commented Sep 26, 2024

Impact of the bug
Running the following unit tests breaks due to a python 3.9 threading issue:

testCMSSWVersions

Describe the bug
When running the testCMSSWVersions unit test, we get an error outside our code, related to python 3.9:

 File "/usr/lib64/python3.9/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/usr/lib64/python3.9/unittest/case.py", line 588, in run
    self._callSetUp()
  File "/usr/lib64/python3.9/unittest/case.py", line 547, in _callSetUp
    self.setUp()
  File "/home/cmsbld/WMCore/test/python/WMCore_t/ReqMgr_t/Service_t/Auxiliary_t.py", line 30, in setUp
    RESTBaseUnitTestWithDBBackend.setUp(self)
  File "/home/cmsbld/WMCore/src/python/WMQuality/REST/RESTBaseUnitTestWithDBBackend.py", line 61, in setUp
    CherrypyTestInit.start(self.server)
  File "/home/cmsbld/WMCore/src/python/WMQuality/CherrypyTestInit.py", line 11, in start
    server.start(blocking=False)
  File "/home/cmsbld/WMCore/src/python/WMQuality/REST/ServerSetup.py", line 55, in start
    cherrypy.engine.start()
  File "/usr/local/lib/python3.9/site-packages/cherrypy/process/wspbus.py", line 278, in start
    self.exit()
  File "/usr/local/lib/python3.9/site-packages/cherrypy/process/wspbus.py", line 310, in exit
    os._exit(EX_SOFTWARE)
  File "/home/cmsbld/WMCore/setup_test.py", line 109, in trapExit
    raise SystemExit("os._exit() was called in a child thread. " + \

How to reproduce it
Run unit test above

Expected behavior
We should not get a raised error from os._exit()

Additional context and error message
Related issue: #11978

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

No branches or pull requests

1 participant