Merge lp:~gocept/landscape-client/py3-amp into lp:~landscape/landscape-client/trunk
Status: | Merged |
---|---|
Approved by: | Данило Шеган |
Approved revision: | 960 |
Merged at revision: | 949 |
Proposed branch: | lp:~gocept/landscape-client/py3-amp |
Merge into: | lp:~landscape/landscape-client/trunk |
Prerequisite: | lp:~gocept/landscape-client/python3 |
Diff against target: |
90 lines (+10/-10) 2 files modified
landscape/lib/amp.py (+6/-1) landscape/lib/tests/test_amp.py (+4/-9) |
To merge this branch: | bzr merge lp:~gocept/landscape-client/py3-amp |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
🤖 Landscape Builder | test results | Approve | |
Daniel Havlik (community) | Approve | ||
Free Ekanayaka (community) | Approve | ||
Данило Шеган (community) | Approve | ||
Review via email:
|
Commit message
Update code in the landscape.lib.amp module to support Python2/3 which provides the basic functionality to execute methods on remote Python objects via amp. As such it provides an integral part of the system.
As all information is sent via unix sockets, it has to be serializable, so we also have to convert the method name to bytes.
Additionally a flaky test due to the unstable sorting of dictionary keys was made more robust.
Re-enable skipped tests.
Description of the change
We are on the journey to get the Bytes / String story solved for Python 2/3 compatibility.
This MP considers code in the landscape.lib.amp module which provides the basic functionality to execute methods on remote Python objects via amp. As such it provides an integral part of the system.
As all information are send via unix sockets, they have to be serializable, so we also have to convert the method name to bytes.
Additionally a flaky test due to the unstable sorting of dictionary keys was made more robust.
Finally, the skipped tests could be run without problems now.
Command: TRIAL_ARGS=-j4 make check /ci.lscape. net/job/ latch-test- xenial/ 1470/
Result: Success
Revno: 959
Branch: lp:~gocept/landscape-client/py3-amp
Jenkins: https:/