Merge lp:~gerboland/qtmir/dont-delete-qml-cache-on-good-stop into lp:qtmir
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Nick Dedekind on 2015-09-30 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 383 | ||||
| Proposed branch: | lp:~gerboland/qtmir/dont-delete-qml-cache-on-good-stop | ||||
| Merge into: | lp:qtmir | ||||
| Diff against target: |
325 lines (+202/-6) 4 files modified
src/modules/Unity/Application/application.cpp (+64/-6) src/modules/Unity/Application/application.h (+3/-0) src/modules/Unity/Application/application_manager.cpp (+1/-0) tests/modules/ApplicationManager/application_manager_test.cpp (+134/-0) |
||||
| To merge this branch: | bzr merge lp:~gerboland/qtmir/dont-delete-qml-cache-on-good-stop | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Michał Sawicz | Approve on 2015-10-01 | ||
| Nick Dedekind (community) | 2015-09-29 | Approve on 2015-09-30 | |
| PS Jenkins bot | continuous-integration | Approve on 2015-09-29 | |
|
Review via email:
|
|||
Commit Message
Add "Closing" state to Application, use it to distinguish user-induced close from app-induced close. Don't clear QML cache if user-induced.
Much code taken from a partially-related branch by Nick Dedekind:
https:/
Note there is 1 disabled test, which needs additional work to fix.
Description of the Change
* Are there any related MPs required for this MP to build/function as expected? Please list.
N
* Did you perform an exploratory manual test run of your code change and any related functionality?
Y
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A
| Gerry Boland (gerboland) wrote : | # |
| Gerry Boland (gerboland) wrote : | # |
To test, get a shell on the phone and watch the contents of the ~/.cache/QML/Apps/ directory. Each app will get a directory with its appId name, which contains its cache. Deleting the cache means deleteing this directory.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:380
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Gerry Boland (gerboland) wrote : | # |
"virtual memory exhausted: Cannot allocate memory" - trying CI again
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:380
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Nick Dedekind (nick-dedekind) wrote : | # |
small comment.
| Nick Dedekind (nick-dedekind) wrote : | # |
* 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.
Yes

If app crashes, the QML cache may not be cleared. This requires additional work, which I'd prefer to consider in a later MR.