You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
While commissioning the Python3 Jenkins CI, I noticed many unit tests failing with a syntax error when clearing the test SQL database, see [1].
How to reproduce it
Running this module unit tests:
WMCore_t/WMBS_t/JobSplitting_t/EventBased_t.py
with this option:
--reallyDeleteMyDatabaseAfterEveryTest=true
Expected behavior
Fix the SQL syntax such that we can run unit tests in BOT mode and cleaning up the database between tests.
Additional context and error message
[1]
======================================================================
ERROR: _test150EventMultipleFileSplit_
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/cmsbld/jenkins/workspace/DMWM-WMAgentPy3-TestAll/SLICE/2/label/cms-dmwm-cc7/code/test/python/WMCore_t/WMBS_t/JobSplitting_t/EventBased_t.py", line 43, in setUp
self.testInit.setDatabaseConnection(destroyAllDatabase=True)
File "/build/cmsbld/jenkins/workspace/DMWM-WMAgentPy3-TestAll/SLICE/2/label/cms-dmwm-cc7/code/src/python/WMQuality/TestInit.py", line 154, in setDatabaseConnection
self.clearDatabase()
File "/build/cmsbld/jenkins/workspace/DMWM-WMAgentPy3-TestAll/SLICE/2/label/cms-dmwm-cc7/code/src/python/WMQuality/TestInit.py", line 285, in clearDatabase
self.init.clearDatabase()
File "/build/cmsbld/jenkins/workspace/DMWM-WMAgentPy3-TestAll/SLICE/2/label/cms-dmwm-cc7/code/src/python/WMCore/WMInit.py", line 205, in clearDatabase
raise WMInitException(msg)
WMCore.WMInit.WMInitException: <@========== WMException Start ==========@>
Exception Class: WMInitException
Message: Critical error while attempting to delete entire DB!
(MySQLdb._exceptions.ProgrammingError) (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'b'WMCore_unit_test'' at line 1")
[SQL: DROP DATABASE b'WMCore_unit_test']
The text was updated successfully, but these errors were encountered:
Impact of the bug
WMCore unit tests
Describe the bug
While commissioning the Python3 Jenkins CI, I noticed many unit tests failing with a syntax error when clearing the test SQL database, see [1].
How to reproduce it
Running this module unit tests:
WMCore_t/WMBS_t/JobSplitting_t/EventBased_t.py
with this option:
Expected behavior
Fix the SQL syntax such that we can run unit tests in BOT mode and cleaning up the database between tests.
Additional context and error message
[1]
The text was updated successfully, but these errors were encountered: