Running all 5.2 tests fail under Docker image
There was no publication this week because the tests failed on:
ERROR: test_check_origin (trytond.modules.stock.tests.test_stock.StockTestCase)
Test Move check_origin
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/trytond/tests/test_tryton.py", line 202, in wrapper
result = func(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/trytond/modules/stock/tests/test_stock.py", line 927, in test_check_origin
storage, = Location.search([('code', '=', 'STO')])
ValueError: too many values to unpack (expected 1)
Running the stock test only works but not when for all modules.
I detected that it is the test_assign_try_prefer_from_location that copy the storage location creating a second one with the same code.
Running all the tests on 5.4 does not fail (not on 5.0 but there is no test_assign_try_prefer_from_location).
I suspect that the sqlite version 2.6.0/3.16.2 used on 5.2 image is buggy and in some cases it does not correctly rollback the transaction. On 5.4 we have 2.6.0/3.27.2.
So the proposal is to bump debian version from 9 to 10 for 5.2 and 5.0. Normally it is something we do not want to do to be super stable for people extending those images. But here I think it deserves an exception.