Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Issue 2767143003: Take desktop screenshots after test failures in test_runner.py. (Closed)

Created:
3 years, 9 months ago by baxley
Modified:
3 years, 9 months ago
Reviewers:
huangml, smut
CC:
chromium-reviews, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Take desktop screenshots after test failures in test_runner.py. There have been some simulator issues that are hard to debug, where the simulator is black/blank, or there are system alerts, which the simulator doesn't have access to in screenshots. Having desktop screenshots would be a great debugging aid. BUG=704138 Review-Url: https://codereview.chromium.org/2767143003 Cr-Commit-Position: refs/heads/master@{#459356} Committed: https://chromium.googlesource.com/chromium/src/+/54548ddbe9febbe12dafb3178811a0c86b0636f7

Patch Set 1 #

Total comments: 3

Patch Set 2 : address comments #

Patch Set 3 : count failures #

Patch Set 4 : take screenshot at arbitrary intervals #

Patch Set 5 : screenshots for failures #

Patch Set 6 : comment #

Total comments: 1

Patch Set 7 : better comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -0 lines) Patch
M ios/build/bots/scripts/test_runner.py View 1 2 3 4 5 6 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (12 generated)
baxley
Let me know what you think. This may be a bit hacky, so I'm totally ...
3 years, 9 months ago (2017-03-22 18:50:39 UTC) #2
smut
https://codereview.chromium.org/2767143003/diff/1/ios/build/bots/scripts/test_runner.py File ios/build/bots/scripts/test_runner.py (right): https://codereview.chromium.org/2767143003/diff/1/ios/build/bots/scripts/test_runner.py#newcode305 ios/build/bots/scripts/test_runner.py:305: self.screenshot_desktop() parser is reinitialized every time (lines 279-282) so ...
3 years, 9 months ago (2017-03-22 22:46:54 UTC) #3
baxley
Thanks! https://codereview.chromium.org/2767143003/diff/1/ios/build/bots/scripts/test_runner.py File ios/build/bots/scripts/test_runner.py (right): https://codereview.chromium.org/2767143003/diff/1/ios/build/bots/scripts/test_runner.py#newcode305 ios/build/bots/scripts/test_runner.py:305: self.screenshot_desktop() On 2017/03/22 22:46:54, smut wrote: > parser ...
3 years, 9 months ago (2017-03-22 23:24:39 UTC) #4
smut
lgtm
3 years, 9 months ago (2017-03-22 23:25:52 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2767143003/20001
3 years, 9 months ago (2017-03-23 00:10:31 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/178111)
3 years, 9 months ago (2017-03-23 03:27:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2767143003/20001
3 years, 9 months ago (2017-03-23 03:29:44 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/178172)
3 years, 9 months ago (2017-03-23 06:37:08 UTC) #14
baxley
let me know what you think! https://codereview.chromium.org/2767143003/diff/1/ios/build/bots/scripts/test_runner.py File ios/build/bots/scripts/test_runner.py (right): https://codereview.chromium.org/2767143003/diff/1/ios/build/bots/scripts/test_runner.py#newcode305 ios/build/bots/scripts/test_runner.py:305: self.screenshot_desktop() On 2017/03/22 ...
3 years, 9 months ago (2017-03-23 13:54:20 UTC) #15
smut
On 2017/03/23 13:54:20, baxley wrote: > let me know what you think! > > https://codereview.chromium.org/2767143003/diff/1/ios/build/bots/scripts/test_runner.py ...
3 years, 9 months ago (2017-03-23 23:25:21 UTC) #17
smut
On 2017/03/23 23:25:21, smut wrote: > On 2017/03/23 13:54:20, baxley wrote: > > let me ...
3 years, 9 months ago (2017-03-23 23:32:24 UTC) #18
baxley
On 2017/03/23 23:32:24, smut wrote: > On 2017/03/23 23:25:21, smut wrote: > > On 2017/03/23 ...
3 years, 9 months ago (2017-03-23 23:42:36 UTC) #19
baxley
On 2017/03/23 23:25:21, smut wrote: > On 2017/03/23 13:54:20, baxley wrote: > > let me ...
3 years, 9 months ago (2017-03-23 23:43:26 UTC) #20
smut
On 2017/03/23 23:42:36, baxley wrote: > On 2017/03/23 23:32:24, smut wrote: > > On 2017/03/23 ...
3 years, 9 months ago (2017-03-24 00:05:50 UTC) #21
baxley
On 2017/03/24 00:05:50, smut wrote: > On 2017/03/23 23:42:36, baxley wrote: > > On 2017/03/23 ...
3 years, 9 months ago (2017-03-24 00:57:56 UTC) #22
smut
On 2017/03/24 00:57:56, baxley wrote: > On 2017/03/24 00:05:50, smut wrote: > > On 2017/03/23 ...
3 years, 9 months ago (2017-03-24 01:06:38 UTC) #23
baxley
Switched back to screenshots per failure, based on your suggestion. PTAL!
3 years, 9 months ago (2017-03-24 01:49:01 UTC) #25
smut
lgtm https://codereview.chromium.org/2767143003/diff/100001/ios/build/bots/scripts/test_runner.py File ios/build/bots/scripts/test_runner.py (right): https://codereview.chromium.org/2767143003/diff/100001/ios/build/bots/scripts/test_runner.py#newcode301 ios/build/bots/scripts/test_runner.py:301: # If there is a new test failure, ...
3 years, 9 months ago (2017-03-24 01:53:29 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2767143003/80002
3 years, 9 months ago (2017-03-24 03:00:33 UTC) #29
commit-bot: I haz the power
3 years, 9 months ago (2017-03-24 03:48:32 UTC) #32
Message was sent while issue was closed.
Committed patchset #7 (id:80002) as
https://chromium.googlesource.com/chromium/src/+/54548ddbe9febbe12dafb3178811...

Powered by Google App Engine
This is Rietveld 408576698