Merge lp:~andrew-haigh-b/cdts/bug1218846 into lp:cdts
Status: | Rejected |
---|---|
Rejected by: | Zygmunt Krynicki |
Proposed branch: | lp:~andrew-haigh-b/cdts/bug1218846 |
Merge into: | lp:cdts |
Diff against target: |
117 lines (+14/-39) 2 files modified
plainbox-gui/gui-engine/gui-engine.cpp (+13/-38) plainbox-gui/gui-engine/gui-engine.h (+1/-1) |
To merge this branch: | bzr merge lp:~andrew-haigh-b/cdts/bug1218846 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Registry Administrators | Pending | ||
Review via email: mp+183224@code.launchpad.net |
Description of the change
This MR fixes the linked bug by removing unnecessary dbus calls when processing a job result.
The UI is now much more responsive.
Note that this eliminates the QML warning about missing "outcome" for the manual interaction dialog, and avoids a (small) memory leak when gathering the outcome.
Please review individual commits for details.
Unmerged revisions
- 2280. By Andrew Haigh
-
Ensure that the outcome is signalled to the manual interaction screen and avoid the qml missing outcome error. Note that this could usefully be updated to read the assumed result but this is another piece of work.
- 2279. By Andrew Haigh
-
Borrowed wip updates from spineau
- 2278. By Daniel Manrique
-
Merged from lp:checkbox
- 2277. By Brendan Donegan
-
"automatic merge by tarmac [r=zkrynicki]
[bug=][ author= brendan- donegan] " - 2276. By Brendan Donegan
-
"automatic merge by tarmac [r=zkrynicki]
[bug=][ author= brendan- donegan] " - 2275. By Andrew Haigh
-
"automatic merge by tarmac [r=roadmr][bug=1214911][author=
andrew- haigh-b] " - 2274. By Daniel Manrique
-
Merged from lp:checkbox
- 2273. By Daniel Manrique
-
Merged Hiding any groups or tests not selected by the user when showing the run manager, by Andrew Haigh
- 2272. By Daniel Manrique
-
Merged activity spinner and better test counting, by Andrew Haigh
The ActivityIndicator spinner replaces the suite selection whilst generating local jobs
Added Ubuntu ActivityIndicator to the Manual Interaction Dialog
Added a count of the implicitly run tests to the Test Selection Screen. Note: This should also take care of bug #1211791 Plainbox runs test not selected in Test Selection screen.
- 2271. By Andrew Haigh
-
"automatic merge by tarmac [r=roadmr]
[bug=][ author= andrew- haigh-b] "
I tested this by merging this branch on checkbox-ihv-ng rev 2278.
I had to change the interface name to com.canonical. certification. PlainBox1 on line 35 of PBNames.h.
Then I observed some weird behavior (against plainbox from checkbox trunk rev 2335).
I started plainbox service, then the gui client. I selected only the default whitelist.
I deselected all the tests, then selected all the camera tests. This contains at least two manual tests (camera/still and camera/display). Then I started the test run.
camera/display runs first and I get a live video window but the manual test window that pops up is for camera/still. Once the live video window closes, I get another capture window but for a static image (meaning, that's the command for camera/still). An outcome of "No" is selected once the static image closes. Then I click on "continue" and the client crashes with a message (following).
So first, it seems to be running the command for a manual job as soon as it hits the manual job (not waiting for me to press "test"). Then capturing the test outcome seems to be wrong. Finally, it shouldn't crash at the end :(
uiEngine: :PrepareJobs( )
Time for summary: 29 :CatchallAskFor OutcomeSignalsH andler :CatchallAskFor OutcomeSignalsH andler - Done :CatchallAskFor OutcomeSignalsH andler eractionDialog :CatchallAskFor OutcomeSignalsH andler - Done :ResumeFromManu alInteraction( ) :SetOutcome :SetOutcome - Done :ResumeFromManu alInteraction( ) qt5/QtCore/ qlist.h, line 454 bulk/checkboxes /checkbox- ihv-ng/ trunk/build- plainbox- gui-Desktop- Debug/driver- testing/ driver- testing exited with code 0
Start Testing
Running Job "package"
Real outcome "pass"
Running Job "device"
Real outcome "pass"
Running Job "camera/detect"
Real outcome "pass"
Running Job "camera/display"
GuiEngine:
Real outcome ""
GuiEngine:
Real outcome "none"
Running Job "camera/still"
GuiEngine:
Real outcome ""
updateManualInt
GuiEngine:
Real outcome "none"
onJobsCompleted
Continue
GuiEngine:
GuiEngine:
GuiEngine:
GuiEngine:
Real outcome "pass"
ASSERT failure in QList<T>::at: "index out of range", file /usr/include/
The program has unexpectedly finished.
/media/
I was able to reproduce this with stubbox leaving all three whitelists selected, it just blasts through all the manual test windows and then crashes when I click on "continue" on the manual test window, which shows stub/dependency /good (it shouldn't as that's an automated job).