-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tests-only] Explicitly use python2 for carddav and caldav tests #40054
Conversation
If we want to continue using this tool we should maintain it on our own. Python2 should not be used anymore. |
what to do right now? I can add "2" here to "python" now to help for some existing and upcoming Ubuntu releases, or block waiting for "someone" to fork the cardav/caldav test repos and make them run with python3. Who will "someone" be, and what time resources will they be given. |
@micbar I am not sure who to ask about this. To get tests running on Ubuntu 20.04 (and then Ubuntu 22.04) we will need some way to run these caldav/carddav tests. The 2 solutions that I can think are are:
what to do? |
I can offer a fork and do minimal maintenance to support python 3 in two weeks. Shouldnt be that much effort. |
c70669f
to
835cea9
Compare
Changed to "Blocked" column, set to draft. Needs python test code that will run with python3. |
To run a set of tests locally, I reverse-engineered what drone CI does:
I got mostly passes, 4 fails, so there is something in my local installation that is not quite the same as in CI (which is set up completely from scratch) But this should be enough to help in doing a python3 refactoring - when I specify
That will be the first of perhaps many things that need to be changed. Note: there are 4 test suites: But hopefully the changes needed in the cloned test repos for python3 will become obvious, and the test code can have the changes applied, then it will all "magically" pass in drone CI (without bothering to run every test suite locally) |
@phil-davis Even if it runs now with python3 without a python error, everything else explodes.... The entire codebase is pretty fragile... not sure if we should go this route, especially as I expect more effort now. |
@xoxys then from my PoV we can specify And I can create a separate issue about this, and the development and QA team can discuss what to do with this special test suite. If we keep it for "the medium term" or longer, then "someone" will need to allocate and schedule effort to update it... |
Alright, let's do it this way, I'll revert my commit to restore your state. |
f815d03
to
acc68d7
Compare
💥 Acceptance tests pipeline apiWebdavMove1-mariadb10.2-php7.4 failed. The build has been cancelled. |
And I have rebased and squashed back to the original change. @xoxys @individual-it please review again. |
Kudos, SonarCloud Quality Gate passed! |
Description
The owncloud-ci images for Ubuntu 18.04 currently have
python
being python v2, andpython3
runs python v3. But with Ubuntu 20.04 (and later...) that may or may not be the case -python
might run python v3, or thepython
command might not exist at all or...The CalDAV and CardDAV test suites use python and require python v2. They are from GitHub repos like https://github.com/apple/ccs-caldavtester that have not been maintained for years, and so do not support python v3.
I am currently looking at things that fail in CI with Ubuntu 20.04 - issue #38348 - and this is one thing.
All the Ubuntu-based images that we use (should) have a valid
python2
. So use that in the existing CI, and it will "just work" when we want to move to Ubuntu 20.04 and later.This should also help the (rare) developer who wants to run these scripts locally - they won't have to worry about which version their
python
command is.Related Issue
Part of #38348
How Has This Been Tested?
CI
Types of changes
Checklist: