component/*/test*cfg: reorganise now that python3 is default
test.cfg becomes the python3 version a new test-py2.cfg is introduced test-py3.cfg is removed cf slapos commit cc7f36a0 (component/defaults: use python3 by default, 2022-08-27)
-
Owner
In cc7f36a0 I took care of
software/*/software*.cfg
but I did not realize there were also test profiles in components, so I'm fixing in follow-up commits.- This fixed
Pygolang.UnitTest-Master.Python2
/Pygolang.UnitTest-Master.Python3
andnxdtest.UnitTest-Master.Python3
/nxdtest.UnitTest-Master.Python2
-
5cb11e9e fixed
ZODB.UnitTest-WC2
there's a test failing inZEO/functional
, but it is not new. -
Wendelin.core.UnitTest-ZODB5
,Wendelin.core.UnitTest-ZODB4(xfail)
andWendelin.core.UnitTest-ZODB4-wc2
were not impacted. ie. they are still running python 2. -
Zodbtools.UnitTest-Master
,Zodbtools.UnitTest-ZODB4-wc2
andZodbtools.UnitTest-ZODB5
are still on my TODO list, they fail because they now run with python3, but zodbtools does not support python3 yet. I need to think a bit about how organising the profiles - also, I plan to add them to the test overview page ( https://www.erp5.com/quality/integration )
BTW @kirr what's the py3 status of wendlin.core ? If it supports python3 already, we can create test suites.
- This fixed
-
Owner
@jerome, thanks for the update and fixups.
Wendelin.core itself should support py3 ok, but it is currently blocked on Zodbtools not supporting py3 yet. I've tried to fix this some time ago, and after several unsuccessful trials, that added much noise to the code and were still hard to get to "working right" state, finally draftly done py3 porting in kirr/zodbtools@42799cf6. But to work it needs
bstr
from Pygolang. This is one of the reasons kirr/pygolang@c9648c44 was started. -
Owner
Port of Zodbtools to py3: zodbtools!23 (merged).
-
Owner
I added profiles for testing 339490eb and corresponding test suites:
"Zodbtools.UnitTest-Master-ZODB4-Python2", "Zodbtools.UnitTest-Master-ZODB4-wc2-Python2", "Zodbtools.UnitTest-Master-ZODB5-Python2", "Zodbtools.UnitTest-Master-ZODB4-Python3", "Zodbtools.UnitTest-Master-ZODB4-wc2-Python3", "Zodbtools.UnitTest-Master-ZODB5-Python3",
@kirr I merged the commit and changed the test suites before we had a chance to discuss, I was maybe too fast, but we can of course still change, if you have suggestions don't hesitate.
On change I did is that there is no "default" in the zodb version in the profiles and test suite names, I was thinking that this way if we change the default (from ZODB4 to 5) we don't have a risk to test the same thing twice.