python3: switch to 3.7
-
Owner
It seems that since this we have test failures in slapos.rebootstrap and slapos.recipe.template
I believe this is because of a problem in buildout that was fixed in https://github.com/buildout/buildout/commit/978a6af9e78db44b9db25cb08c7f9d98c24bbc03 but that patch does not apply in our fork
-
mentioned in merge request erp5!1126 (merged)
-
Owner
Still working on this. 2 days ago, I found issues about the install command (buildout install [parts]...): not important because maybe nobody uses it but one of them is that we have extra failures (in buildout.txt) when running the test suite with Python 3. But I've just found that the py2/py3 issue would not be in the install command...
We have several problems about the buildout test suite. With Python 2, it does not run entirely (which explains why we have extra failures with Python 3) and it's like that since November 2018. Compare the following consecutive test results:
- https://nexedi.erp5.net/test_result_module/20181114-89757D78 (372 tests, 539s, 1 failure in buildout.txt)
- https://nexedi.erp5.net/test_result_module/20181115-85A5DE25 (87 tests, 462s, no failure in buildout.txt)
Which is strange in 2 ways:
- The only difference in the code between these 2 results is a commit in the ERP5 SR, which is unrelated.
- There are little difference in the duration (539s vs 462s). Today, the difference between Py2 (89 tests, 364s) and Py3 (376 tests, 1020s) is significantly greater.
-
Owner
Looks like a regression in manuel.
At that time, we didn't pinThe buildout test suite does not pin eggs and there were new versions at that time (14/15 Nov 2018). -
Owner
-
1.10.0 (2018-11-14)
- Fix DeprecationWarning about ‘U’ mode under Python 3.
- Drop Python 2.7 and 3.3 support. Add testing and support for Python 3.6 and 3.7.
Pff, that's crazy.2.7 is a typo. They meant 2.6The issue is fixed upstream but not released. See https://github.com/benji-york/manuel/pull/21
-
-
Owner
I have fixed the way we run tests. The only remaining difference between Py2 & Py3 is that the latter is much slower.