cubicweb #10096736 drop_cube command does not remove custom types [validation pending]

This can be seen in unittest_repository.py SchemaDeserialTC.test_deserialization_base, where there is a residual Numeric entity type on 3.22 head.

======================================================================
FAIL: test_deserialization_base (unittest_repository.SchemaDeserialTC)
Check the following deserialization
----------------------------------------------------------------------
Traceback (most recent call last)
  File "/var/lib/jenkins/jobs/cubicweb/workspace/TOXENV/server/.tox/server/local/lib/python2.7/site-packages/logilab/common/testlib.py", line 463, in _proceed
    testfunc(*args, **kwargs)
  File "/var/lib/jenkins/jobs/cubicweb/workspace/TOXENV/server/cubicweb/server/test/unittest_repository.py", line 397, in test_deserialization_base
    (u'TZDatetime',), (u'TZTime',), (u'Time',)])
  File "/usr/lib/python2.7/unittest/case.py", line 513, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/lib/python2.7/unittest/case.py", line 742, in assertListEqual
    self.assertSequenceEqual(list1, list2, msg, seq_type=list)
  File "/usr/lib/python2.7/unittest/case.py", line 724, in assertSequenceEqual
    self.fail(msg)
  File "/usr/lib/python2.7/unittest/case.py", line 410, in fail
    raise self.failureException(msg)
AssertionError: Lists differ: [(u'BabarTestType',), (u'BigIn... != [(u'BabarTestType',), (u'BigIn...

First differing element 10:
(u'Numeric',)
(u'Password',)

First list contains 1 additional elements.
First extra element 15:
(u'Time',)

  [(u'BabarTestType',),
   (u'BigInt',),
   (u'Boolean',),
   (u'Bytes',),
   (u'Date',),
   (u'Datetime',),
   (u'Decimal',),
   (u'Float',),
   (u'Int',),
   (u'Interval',),
-  (u'Numeric',),
   (u'Password',),
   (u'String',),
   (u'TZDatetime',),
   (u'TZTime',),
   (u'Time',)]

This appears to be because in some previous test add_cube('fakecustomtype') is called, which adds a Numeric custom type and despite the drop_cube invocation, the latter persists.

prioritynormal
typebug
done in3.23.0
load1.000
load left0.000
closed by#25ec9be5f305 [test/migractions] work around drop_cube not deleting final etypes
patchWIP attempt to fix removal of final types - pb with missing (re)loading of site_cubicweb [rejected][test/migractions] work around drop_cube not deleting final etypes [applied]