Merge lp:~dandrader/qtmir/removeUselessClass into lp:qtmir
| Status: | Merged |
|---|---|
| Approved by: | Nick Dedekind on 2016-01-07 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 442 |
| Proposed branch: | lp:~dandrader/qtmir/removeUselessClass |
| Merge into: | lp:qtmir |
| Prerequisite: | lp:~nick-dedekind/qtmir/qtmir-test-build |
| Diff against target: |
2344 lines (+673/-573) 24 files modified
src/modules/Unity/Application/CMakeLists.txt (+4/-3) src/modules/Unity/Application/application.cpp (+17/-12) src/modules/Unity/Application/application.h (+3/-4) src/modules/Unity/Application/application_manager.cpp (+5/-9) src/modules/Unity/Application/application_manager.h (+2/-2) src/modules/Unity/Application/taskcontroller.cpp (+0/-119) src/modules/Unity/Application/taskcontroller.h (+0/-63) src/modules/Unity/Application/timer.cpp (+109/-0) src/modules/Unity/Application/timer.h (+88/-0) src/modules/Unity/Application/timesource.cpp (+48/-0) src/modules/Unity/Application/timesource.h (+61/-0) src/modules/Unity/Application/upstart/taskcontroller.cpp (+34/-34) src/modules/Unity/Application/upstart/taskcontroller.h (+15/-15) tests/framework/CMakeLists.txt (+1/-1) tests/framework/fake_desktopfilereader.cpp (+9/-1) tests/framework/fake_desktopfilereader.h (+1/-0) tests/framework/mock_task_controller.cpp (+29/-29) tests/framework/mock_task_controller.h (+20/-20) tests/framework/qtmir_test.cpp (+5/-9) tests/framework/qtmir_test.h (+5/-5) tests/modules/ApplicationManager/application_manager_test.cpp (+217/-121) tests/modules/CMakeLists.txt (+0/-1) tests/modules/TaskController/CMakeLists.txt (+0/-30) tests/modules/TaskController/taskcontroller_test.cpp (+0/-95) |
| To merge this branch: | bzr merge lp:~dandrader/qtmir/removeUselessClass |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Michał Sawicz | Abstain on 2016-02-11 | ||
| Nick Dedekind (community) | 2016-01-04 | Approve on 2016-01-07 | |
| PS Jenkins bot | continuous-integration | Needs Fixing on 2016-01-05 | |
|
Review via email:
|
|||
Commit Message
Remove the useless TaskController
It was just forwarding calls between ApplicationManager and ApplicationCron
Had no logic of its own.
ApplicationCron
Tests have been improved a bit by better emulating TaskController behavior
Description of the Change
Also fixes a test failure you get in trunk if you build qtmir with -DCMAKE_
"""
ASSERT: "!m_session || m_session->state() == Session::Stopped" in file /home/dandrader
Aborted (core dumped)
"""
* Are there any related MPs required for this MP to build/function as expected? Please list.
No
* Did you perform an exploratory manual test run of your code change and any related functionality?
Yes
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A
| Nick Dedekind (nick-dedekind) wrote : | # |
2 Comments attached.
There's a lot of code not related to removing the task controller. Perhaps this should be in a different MP.
| Daniel d'Andrada (dandrader) wrote : | # |
On 05/01/2016 12:37, Nick Dedekind wrote:
> Review: Needs Fixing
>
> 2 Comments attached.
> There's a lot of code not related to removing the task controller. Perhaps this should be in a different MP.
You mean the Timer stuff? The test updates had to be done. But yes, it's
a lot of code churn in the end.
> Diff comments:
>
>> +
>> +//////
> The Factories don't seem to be used anywhere.
Yes, removed them.
>
>>
>> === modified file 'tests/
>> --- tests/modules/
>> +++ tests/modules/
>> @@ -2125,11 +2189,20 @@
>>
>> EXPECT_
>>
>> - QSignalSpy spy(app, SIGNAL(
>> - QObject:
> you no longer test that the app is deleted. can you rename the test please?
Yes, checking that TaskController:
the same. Brought back the QObject::destroyed check and found out that
the test was missing a bit of code to properly exercise the code paths
that are executed on real usage.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:437
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Nick Dedekind (nick-dedekind) wrote : | # |
Test project /home/nick/
Start 1: QtEventFeeder,
1/12 Test #1: QtEventFeeder, ................... Passed 0.04 sec
Start 2: Clipboard,
2/12 Test #2: Clipboard, .......
Start 3: Screen,
3/12 Test #3: Screen, .......
Start 4: ScreenController,
4/12 Test #4: ScreenController, ................ Passed 0.04 sec
Start 5: WindowManager,
5/12 Test #5: WindowManager, ................... Passed 0.01 sec
Start 6: Application,
6/12 Test #6: Application, .......
Start 7: ApplicationManager
7/12 Test #7: ApplicationManager .......
Start 8: DesktopFileReader
8/12 Test #8: DesktopFileReader ................ Passed 0.02 sec
Start 9: General
9/12 Test #9: General .......
Start 10: SharedWakelock,
10/12 Test #10: SharedWakelock, .................. Passed 16.71 sec
Start 11: SessionManager,
11/12 Test #11: SessionManager, .................. Passed 0.51 sec
Start 12: SurfaceManager
12/12 Test #12: SurfaceManager ................... Passed 0.35 sec
| Daniel d'Andrada (dandrader) wrote : | # |
On 06/01/2016 14:28, Nick Dedekind wrote:
> Review: Needs Fixing
>
> Test project /home/nick/
> Start 1: QtEventFeeder,
> 1/12 Test #1: QtEventFeeder, ................... Passed 0.04 sec
> Start 2: Clipboard,
> 2/12 Test #2: Clipboard, .......
> Start 3: Screen,
> 3/12 Test #3: Screen, .......
> Start 4: ScreenController,
> 4/12 Test #4: ScreenController, ................ Passed 0.04 sec
> Start 5: WindowManager,
> 5/12 Test #5: WindowManager, ................... Passed 0.01 sec
> Start 6: Application,
> 6/12 Test #6: Application, .......
> Start 7: ApplicationManager
> 7/12 Test #7: ApplicationManager .......
> Start 8: DesktopFileReader
> 8/12 Test #8: DesktopFileReader ................ Passed 0.02 sec
> Start 9: General
> 9/12 Test #9: General .......
> Start 10: SharedWakelock,
> 10/12 Test #10: SharedWakelock, .................. Passed 16.71 sec
> Start 11: SessionManager,
> 11/12 Test #11: SessionManager, .................. Passed 0.51 sec
> Start 12: SurfaceManager
> 12/12 Test #12: SurfaceManager ................... Passed 0.35 sec
>
Weird, then all pass here.
Could you please provide details on the failures?
| Nick Dedekind (nick-dedekind) wrote : | # |
> On 06/01/2016 14:28, Nick Dedekind wrote:
> > Review: Needs Fixing
> >
> > Test project /home/nick/
> > Start 1: QtEventFeeder,
> > 1/12 Test #1: QtEventFeeder, ................... Passed 0.04 sec
> > Start 2: Clipboard,
> > 2/12 Test #2: Clipboard, .......
> > Start 3: Screen,
> > 3/12 Test #3: Screen, .......
> > Start 4: ScreenController,
> > 4/12 Test #4: ScreenController, ................ Passed 0.04 sec
> > Start 5: WindowManager,
> > 5/12 Test #5: WindowManager, ................... Passed 0.01 sec
> > Start 6: Application,
> > 6/12 Test #6: Application, .......
> > Start 7: ApplicationManager
> > 7/12 Test #7: ApplicationManager .......
> > Start 8: DesktopFileReader
> > 8/12 Test #8: DesktopFileReader ................ Passed 0.02 sec
> > Start 9: General
> > 9/12 Test #9: General .......
> > Start 10: SharedWakelock,
> > 10/12 Test #10: SharedWakelock, .................. Passed 16.71 sec
> > Start 11: SessionManager,
> > 11/12 Test #11: SessionManager, .................. Passed 0.51 sec
> > Start 12: SurfaceManager
> > 12/12 Test #12: SurfaceManager ................... Passed 0.35 sec
> >
>
> Weird, then all pass here.
>
> Could you please provide details on the failures?
I think I had some cached mocs. Works fine.
| Nick Dedekind (nick-dedekind) wrote : | # |
Looks good. Tests pass and device still working.
- 394. By Nick Dedekind on 2016-02-01
-
merged with trunk
- 395. By Nick Dedekind on 2016-02-10
-
merged with trunk
| Michał Sawicz (saviq) wrote : | # |
/«BUILDDIR»
/«BUILDDIR»
- 396. By Daniel d'Andrada on 2016-02-11
-
Remove the useless TaskController
It was just forwarding calls between ApplicationManager and ApplicationCron
troller.
Had no logic of its own.ApplicationCron
troller was then renamed to TaskController as the latter has a better API and it also keeps ApplicationManager code more or less untouched. Tests have been improved a bit by better emulating TaskController behavior
| Daniel d'Andrada (dandrader) wrote : | # |
On 11/02/2016 09:19, Michał Sawicz wrote:
> Review: Needs Fixing
>
> /«BUILDDIR»
> /«BUILDDIR»
Done.

FAILED: Continuous integration, rev:435 jenkins. qa.ubuntu. com/job/ qtmir-ci/ 626/ jenkins. qa.ubuntu. com/job/ qtmir-vivid- amd64-ci/ 320 jenkins. qa.ubuntu. com/job/ qtmir-vivid- armhf-ci/ 322 jenkins. qa.ubuntu. com/job/ qtmir-vivid- armhf-ci/ 322/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ qtmir-vivid- i386-ci/ 202 jenkins. qa.ubuntu. com/job/ qtmir-wily- amd64-ci/ 357/console jenkins. qa.ubuntu. com/job/ qtmir-wily- armhf-ci/ 359/console jenkins. qa.ubuntu. com/job/ qtmir-wily- i386-ci/ 202/console
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/qtmir- ci/626/ rebuild
http://