Merge lp:~mzanetti/unity8/update-inputinfo into lp:unity8
| Status: | Merged |
|---|---|
| Approved by: | Albert Astals Cid on 2015-11-09 |
| Approved revision: | 2001 |
| Merged at revision: | 2050 |
| Proposed branch: | lp:~mzanetti/unity8/update-inputinfo |
| Merge into: | lp:unity8 |
| Diff against target: |
2544 lines (+903/-1079) 26 files modified
plugins/Unity/InputInfo/CMakeLists.txt (+1/-1) plugins/Unity/InputInfo/linux/qinputdeviceinfo_linux.cpp (+146/-98) plugins/Unity/InputInfo/linux/qinputdeviceinfo_linux_p.h (+13/-6) plugins/Unity/InputInfo/plugin.cpp (+2/-2) plugins/Unity/InputInfo/qdeclarativeinputdeviceinfo.cpp (+0/-143) plugins/Unity/InputInfo/qdeclarativeinputdeviceinfo_p.h (+0/-86) plugins/Unity/InputInfo/qdeclarativeinputdevicemodel.cpp (+196/-0) plugins/Unity/InputInfo/qdeclarativeinputdevicemodel_p.h (+102/-0) plugins/Unity/InputInfo/qinputinfo.cpp (+140/-29) plugins/Unity/InputInfo/qinputinfo.h (+57/-57) qml/Components/UnityInputInfo/UnityInputInfo.qml (+0/-93) qml/Components/UnityInputInfo/qmldir (+0/-1) qml/OrientedShell.qml (+16/-7) tests/mocks/Unity/InputInfo/CMakeLists.txt (+7/-2) tests/mocks/Unity/InputInfo/mockcontroller.cpp (+35/-0) tests/mocks/Unity/InputInfo/mockcontroller.h (+34/-0) tests/mocks/Unity/InputInfo/mockqdeclarativeinputdeviceinfo.cpp (+0/-173) tests/mocks/Unity/InputInfo/mockqdeclarativeinputdeviceinfo_p.h (+0/-94) tests/mocks/Unity/InputInfo/mockqinputinfo.cpp (+0/-124) tests/mocks/Unity/InputInfo/mockqinputinfo.h (+0/-139) tests/mocks/Unity/InputInfo/plugin.cpp (+17/-3) tests/mocks/Unity/InputInfo/qinputdeviceinfo_mock.cpp (+52/-0) tests/mocks/Unity/InputInfo/qinputdeviceinfo_mock_p.h (+58/-0) tests/qmltests/Notifications/tst_Notifications.qml (+5/-6) tests/qmltests/Notifications/tst_SwipeToAct.qml (+5/-6) tests/qmltests/tst_OrientedShell.qml (+17/-9) |
| To merge this branch: | bzr merge lp:~mzanetti/unity8/update-inputinfo |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Albert Astals Cid (community) | 2015-10-02 | Abstain on 2015-11-09 | |
| PS Jenkins bot | continuous-integration | Needs Fixing on 2015-11-09 | |
| Lukáš Tinkl (community) | Approve on 2015-11-02 | ||
| Daniel d'Andrada (community) | Abstain on 2015-10-28 | ||
|
Review via email:
|
|||
Commit Message
update inputinfo api to the latest upstream snapshot
* Import latest update of api from gerrit.
* drop all the old mock code
* instead of mocking the whole api, add mocks for the backend only. This should simplify future updates and moving to upstream implementation a lot.
* update tests to use new mocking system
Description of the Change
Everything in plugins/
Everything in tests/mocks is our own additions for testing it.
* Are there any related MPs required for this MP to build/function as expected? Please list.
nope
* Did you perform an exploratory manual test run of your code change and any related functionality?
yes
* Did you make sure that your branch does not contain spurious tags?
yes
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
n/a
* If you changed the UI, has there been a design review?
n/a
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1991
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https:/
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1993
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1994
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1995
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Albert Astals Cid (aacid) wrote : | # |
Given that this is (i understand) upstream code, how much review do we want to put in it?
| Michael Zanetti (mzanetti) wrote : | # |
I'd say it'd be good to check it for big mistakes, test if it doesn't break the switching of windowed mode and osk show/hide.
Wouldn't spend to much time reviewing the code itself, as this is basically a review of upstream code. If you spot something, you are welcome to add comments here: https:/
| Albert Astals Cid (aacid) wrote : | # |
I had a look at the code and it looks good, i'll leave someone else with more experience in the windowed mode to have a look at it.
| Lukáš Tinkl (lukas-kde) wrote : | # |
+ onCountChanged: print("
Forgotten debug output, otherwise code looks good. Gonna test it locally
| Michael Zanetti (mzanetti) wrote : | # |
> + onCountChanged: print("
>
> Forgotten debug output, otherwise code looks good. Gonna test it locally
oops. fixed
| Daniel d'Andrada (dandrader) wrote : | # |
Does the new upstream code fix the bug I explained in revision 1918?
Copy pasting it here:
"""
- QInputDeviceInf
setting the device path, making it impossible for
indexOf() to find the input device.
This happens on a desktop/laptop as the user where unity8
runs cannot open input device files but it's still able to
get info about it trough udev API
"""
| Michael Zanetti (mzanetti) wrote : | # |
> Does the new upstream code fix the bug I explained in revision 1918?
>
> Copy pasting it here:
> """
> - QInputDeviceInf
> setting the device path, making it impossible for
> indexOf() to find the input device.
> This happens on a desktop/laptop as the user where unity8
> runs cannot open input device files but it's still able to
> get info about it trough udev API
> """
Yes. Seems wherever a valid QInputDevice object is created, the setDevicePath() call always happens immediately after the "new" call now.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1996
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1996
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Lukáš Tinkl (lukas-kde) wrote : | # |
Code works fine but this test doesn't succeed: http://
Running it locally, it crashes with:
Totals: 31 passed, 0 failed, 0 skipped, 0 blacklisted
********* Finished testing of qmltestrunner *********
*** Error in `/usr/lib/
| Lukáš Tinkl (lukas-kde) wrote : | # |
^^ make testOrientedShell
| Lukáš Tinkl (lukas-kde) wrote : | # |
Here's the backtrace:
[Thread 0x7fffe09d9700 (LWP 30234) exited]
*** Error in `/usr/lib/
[New Thread 0x7fffd355d700 (LWP 30235)]
[New Thread 0x7fffeb5df700 (LWP 30233)]
Program received signal SIGABRT, Aborted.
0x00007ffff7a44267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/
55 ../sysdeps/
(gdb) bt
#0 0x00007ffff7a44267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/
#1 0x00007ffff7a45eca in __GI_abort () at abort.c:89
#2 0x00007ffff7a87c53 in __libc_message (do_abort=
#3 0x00007ffff7a8fc69 in malloc_printerr (ptr=<optimized out>, str=0x7ffff7b9c2fa "free(): invalid pointer", action=1) at malloc.c:4965
#4 _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3834
#5 0x00007ffff7a9389c in __GI___libc_free (mem=<optimized out>) at malloc.c:2950
#6 0x00007ffff631de91 in QQmlType:
#7 0x00007ffff62f4373 in QQmlEngine:
#8 0x00007ffff62f4499 in QQmlEngine:
#9 0x00007ffff6be869c in QObjectPrivate:
#10 0x00007ffff6bf2d03 in QObject::~QObject() () from /usr/lib/
#11 0x00007ffff668a959 in QQuickWindow:
#12 0x00007ffff6739f79 in QQuickView:
#13 0x00007ffff7fbf393 in quick_test_
#14 0x00007ffff7a2fa40 in __libc_start_main (main=0x4005d0, argc=7, argv=0x7fffffff
#15 0x0000000000400619 in ?? ()
| Michael Zanetti (mzanetti) wrote : | # |
Turns out the crash was caused by Q_GLOBAL_STATIC and qmlRegisterSing
| Lukáš Tinkl (lukas-kde) wrote : | # |
Yup, that works for me
* Did you perform an exploratory manual test run of the code change and any related functionality?
Yes
* Did CI run pass? If not, please explain why.
Xenial tests still broken
* Did you make sure that the branch does not contain spurious tags?
Yes
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1996
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1999
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
SUCCESS: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Albert Astals Cid (aacid) wrote : | # |
Note: was already top approved
Conflict: can't delete qml/Components/
Conflict because qml/Components/
Contents conflict in qml/Components/
Text conflict in qml/OrientedShe
Text conflict in tests/qmltests/
Text conflict in tests/qmltests/
6 conflicts encountered.
- 2000. By Michael Zanetti on 2015-11-06
-
merge trunk
| Michael Zanetti (mzanetti) wrote : | # |
> Note: was already top approved
>
> Conflict: can't delete qml/Components/
> Not deleting.
> Conflict because qml/Components/
> versioned children. Versioned directory.
> Contents conflict in qml/Components/
> Text conflict in qml/OrientedShe
> Text conflict in tests/qmltests/
> Text conflict in tests/qmltests/
> 6 conflicts encountered.
merged
| Michael Zanetti (mzanetti) wrote : | # |
> Note: was already top approved
>
> Conflict: can't delete qml/Components/
> Not deleting.
> Conflict because qml/Components/
> versioned children. Versioned directory.
> Contents conflict in qml/Components/
> Text conflict in qml/OrientedShe
> Text conflict in tests/qmltests/
> Text conflict in tests/qmltests/
> 6 conflicts encountered.
merged
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:2000
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
SUCCESS: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Albert Astals Cid (aacid) wrote : | # |
tests/mocks/
- 2001. By Michael Zanetti on 2015-11-09
-
add missing copyright header
| Michael Zanetti (mzanetti) wrote : | # |
> tests/mocks/
fixed
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:2001
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://

FAILED: Continuous integration, rev:1990 /code.launchpad .net/~mzanetti/ unity8/ update- inputinfo/ +merge/ 273248/ +edit-commit- message
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https:/
http:// jenkins. qa.ubuntu. com/job/ unity8- ci/6412/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 4480/console jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- wily-touch/ 791/console jenkins. qa.ubuntu. com/job/ unity-phablet- qmluitests- vivid/1124/ console jenkins. qa.ubuntu. com/job/ unity-phablet- qmluitests- wily/443/ console jenkins. qa.ubuntu. com/job/ unity8- vivid-amd64- ci/1019/ console jenkins. qa.ubuntu. com/job/ unity8- vivid-i386- ci/1020/ console jenkins. qa.ubuntu. com/job/ unity8- wily-amd64- ci/651/ console jenkins. qa.ubuntu. com/job/ unity8- wily-i386- ci/652/ console jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 4477/console jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- wily-armhf/ 791/console
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity8- ci/6412/ rebuild
http://