Details
-
Task
-
Resolution: Fixed
-
Critical
-
Cheshire-Cat
-
None
-
1
Description
Various CB Server use python for test harnesses and similar. Some of these assume /usr/bin/python is actually Python 2.x.
As of Ubuntu20.04 (and possibly other distros), /usr/bin/python is Python3, and hence if a given program is not written to work with either python 2 or python 3, it will fail when run on Ubuntu 20.04.
For example, the following unit test failures are pretty much all due to this issue: http://cv.jenkins.couchbase.com/job/unit-simple-test/32081/testReport/
We need to update the affected test programs; ideally to migrate them to work with python3 and explicitly request python3 as their interpreter.
Attachments
Issue Links
- is cloned by
-
MB-46657 Update unit tests to use python3 for mad-hatter
- Resolved
For Gerrit Dashboard: MB-46269 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
153468,3 | MB-46269: Update platform-interrupt-test to use Python 3 | master | platform | Status: MERGED | +2 | +1 |
153470,4 | MB-46269: Update breakpad-test to use Python 3 | master | kv_engine | Status: MERGED | +2 | +1 |
153476,3 | MB-46269: Update couchstore python tests to use Python 3 | master | couchstore | Status: MERGED | +2 | +1 |
153680,2 | MB-46269 : Make couchdb unit tests runner compatible with python3 | unstable | couchdb | Status: MERGED | +2 | +1 |
153691,2 | MB-46269: Update couchdb test to use python 3 | unstable | couchdb | Status: MERGED | +2 | +1 |
153872,3 | MB-46269 : Use python3 interpreter in CMake files | unstable | couchdb | Status: MERGED | +2 | +1 |
154933,2 | MB-46657: Make couchdb unit tests runner compatible with python3 | mad-hatter | couchdb | Status: MERGED | +2 | +1 |
154934,4 | MB-46657: Update couchdb test to use python 3 | mad-hatter | couchdb | Status: MERGED | +2 | +1 |
154935,4 | MB-46657: Use python3 interpreter in CMake files | mad-hatter | couchdb | Status: MERGED | +2 | +1 |
155010,4 | MB-46657: Update breakpad-test to use Python 3 | mad-hatter | kv_engine | Status: MERGED | +2 | +1 |
155011,3 | MB-46657: Update platform-interrupt-test to use Python 3 | mad-hatter | platform | Status: MERGED | +2 | +1 |
155012,3 | MB-46657: Update couchstore python tests to use Python 3 | mad-hatter | couchstore | Status: MERGED | +2 | +1 |