Merge lp:~alan-griffiths/mir/simplify-connect-code into lp:mir
| Status: | Merged |
|---|---|
| Approved by: | Alexandros Frantzis on 2015-08-25 |
| Approved revision: | 2869 |
| Merged at revision: | 2876 |
| Proposed branch: | lp:~alan-griffiths/mir/simplify-connect-code |
| Merge into: | lp:mir |
| Diff against target: |
34 lines (+2/-11) 1 file modified
src/client/mir_connection.cpp (+2/-11) |
| To merge this branch: | bzr merge lp:~alan-griffiths/mir/simplify-connect-code |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | Approve on 2015-08-25 | |
| Kevin DuBois (community) | Approve on 2015-08-24 | ||
| Daniel van Vugt | Abstain on 2015-08-24 | ||
| Chris Halse Rogers | Approve on 2015-08-24 | ||
| Cemil Azizoglu (community) | 2015-08-21 | Approve on 2015-08-21 | |
|
Review via email:
|
|||
Commit Message
client: remove a path that could no longer execute
Description of the Change
client: remove a path that could no longer execute.
"connect_
Further, connect errors always result in the server disconnecting without replying, so we never get an error in the result object.
All of this means the error message is misleading and the logic overly complex.
| Cemil Azizoglu (cemil-azizoglu) wrote : | # |
ok
| Daniel van Vugt (vanvugt) wrote : | # |
It seems like connect_done=true and set_error_
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
| Daniel van Vugt (vanvugt) wrote : | # |
Unrelated failures. I sense these are going to pop up elsewhere too...
[ FAILED ] ExchangeBufferT
[ FAILED ] FD leak was detected
| Daniel van Vugt (vanvugt) wrote : | # |
--> bug 1487967
| Chris Halse Rogers (raof) wrote : | # |
The connect_done variable is tracking whether or not the connection data is going to be modified by the connected() callback; the connection has been done regardless of whether it succeeded or not.
| Daniel van Vugt (vanvugt) wrote : | # |
It's a matter of clear communication and readability such that a person reading some small portion of the file does not get the wrong idea. We can obviously do better but it's not a new issue in this branch so not a blocker.
| Kevin DuBois (kdub) wrote : | # |
> It seems like connect_done=true and set_error_
> be mutually exclusive things. Because if the connect failed it's arguably
> never done. Unless done means "attempted". Needs checking...
+1, I think that it would be a bit easier if we didn't have the constraint that the actual Mir{Surface,

PASSED: Continuous integration, rev:2869 jenkins. qa.ubuntu. com/job/ mir-ci/ 4644/ jenkins. qa.ubuntu. com/job/ mir-android- vivid-i386- build/3627 s-jenkins. ubuntu- ci:8080/ job/mir- clang-ts- vivid-amd64- build/48 jenkins. qa.ubuntu. com/job/ mir-clang- vivid-amd64- build/2538 jenkins. qa.ubuntu. com/job/ mir-mediumtests -vivid- touch/3577 jenkins. qa.ubuntu. com/job/ mir-wily- amd64-ci/ 793 jenkins. qa.ubuntu. com/job/ mir-wily- amd64-ci/ 793/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ mir-mediumtests -builder- vivid-armhf/ 3577 jenkins. qa.ubuntu. com/job/ mir-mediumtests -builder- vivid-armhf/ 3577/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ mir-mediumtests -runner- mako/6346 s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 22751
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/mir- ci/4644/ rebuild
http://