Merge lp:~gocept/landscape-client/py3-monitor-swiftusage into lp:~landscape/landscape-client/trunk
Status: | Merged |
---|---|
Approved by: | Eric Snow |
Approved revision: | 1003 |
Merged at revision: | 997 |
Proposed branch: | lp:~gocept/landscape-client/py3-monitor-swiftusage |
Merge into: | lp:~landscape/landscape-client/trunk |
Prerequisite: | lp:~gocept/landscape-client/py3-monitor-processorinfo |
Diff against target: |
191 lines (+23/-40) 5 files modified
Makefile (+2/-3) landscape/lib/persist.py (+18/-16) landscape/monitor/swiftusage.py (+1/-1) landscape/monitor/tests/test_swiftusage.py (+2/-1) py3_ready_tests (+0/-19) |
To merge this branch: | bzr merge lp:~gocept/landscape-client/py3-monitor-swiftusage |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eric Snow (community) | Approve | ||
Daniel Havlik (community) | Approve | ||
🤖 Landscape Builder | test results | Approve | |
Landscape | Pending | ||
Review via email:
|
Commit message
This is the Py3 port of landscape.
We make a few bytes/unicode fixes and address a test ordering issue.
This patch also completes the fundamental Py3 port of the Landscape client. So all tests are now run under both Python 2 and 3, rather than just the selection of tests that had been ported thus far. Further work remains to address remaining (untested) Python 3 incompatibilities.
Description of the change
This MP is the last one to port landscape.monitor to Python 3. In l.m.swiftusage an encoding was done, probably to ensure bytes as filename for the backend in the (Rooted)Persist. As these are normal files on the filesystem it should not be a problem to have it as unicodes.
Additionally the whole test suite is now running on Python 2 and 3 at the same time.
Two test in test_swiftusage are skipped because python-swift is not yet ported to Python 3.
Command: TRIAL_ARGS=-j4 make ci-check /ci.lscape. net/job/ latch-test- xenial/ 3824/
Result: Fail
Revno: 1002
Branch: lp:~gocept/landscape-client/py3-monitor-swiftusage
Jenkins: https:/