Merge lp:~mikemc/unity-scope-click/startdownload-error-handling into lp:unity-scope-click
Status: | Merged |
---|---|
Approved by: | Alejandro J. Cura |
Approved revision: | 153 |
Merged at revision: | 162 |
Proposed branch: | lp:~mikemc/unity-scope-click/startdownload-error-handling |
Merge into: | lp:unity-scope-click |
Prerequisite: | lp:~diegosarmentero/unity-scope-click/fix-progress |
Diff against target: |
413 lines (+147/-38) 7 files modified
scope/click/download-manager.cpp (+23/-8) scope/click/download-manager.h (+5/-1) scope/click/preview.cpp (+51/-11) scope/click/preview.h (+15/-0) scope/click/scope.cpp (+13/-2) scope/tests/download_manager_tool/download_manager_tool.cpp (+9/-2) scope/tests/test_download_manager.cpp (+31/-14) |
To merge this branch: | bzr merge lp:~mikemc/unity-scope-click/startdownload-error-handling |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alejandro J. Cura (community) | Approve | ||
Diego Sarmentero (community) | Approve | ||
PS Jenkins bot | continuous-integration | Approve | |
Review via email:
|
Commit message
- Surface errors in the download and install process via ErrorPreview
Description of the change
- Surface errors in the download and install process via ErrorPreview
Shows user error messages when
- creds are not found
- any error is returned from download manager, including network errors or failed install
Other changes:
- fix tests to account for separate error signals for creds vs. downloading/
- fix a problem in the test matcher for the pkcon command
- use constants instead of strings in some places
- cleanup whitespace
TO TEST:
The download manager tests are currently disabled because they're flaky on ARM.
To run all the tests, which should pass on x86, do:
% GTEST_ALSO_
TO TEST IRL:
using unity-scope-tool or a device, try installing an app with:
- no credentials - you should get a specific error message for this
- no network - you should get a network error or a download/install error, depending on when you cut the net.
- install error - not sure how to trigger this on the device. maybe you could mess with permissions of the click directory temporarily. on desktop, it's easy, since pkcon doesn't work with clicks on desktop, according to the packagekit-
http://
In each case you should get a serviceable (untranslated, un-designed for wording) error message.
PASSED: Continuous integration, rev:153 jenkins. qa.ubuntu. com/job/ unity-scope- click-ci/ 326/ jenkins. qa.ubuntu. com/job/ unity-scope- click-trusty- amd64-ci/ 227 jenkins. qa.ubuntu. com/job/ unity-scope- click-trusty- armhf-ci/ 224 jenkins. qa.ubuntu. com/job/ unity-scope- click-trusty- armhf-ci/ 224/artifact/ work/output/ *zip*/output. zip
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity- scope-click- ci/326/ rebuild
http://