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

Issue 2492723002: Add more logging in ScreenCapturerIntegrationTest (Closed)

Created:
4 years, 1 month ago by Hzj_jie
Modified:
4 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add more logging in ScreenCapturerIntegrationTest ScreenCapturerIntegrationTest is flaky on Windows systems due to some unknown reason. But it's do easily impacted by the environment, so this change adds more logging (entire screenshot) to help debugging. Meanwhile, this change also includes a nice-to-have change in ScreenDrawerWin to always bring the window to front in each WaitForPendingDraws() function call. I cannot quite tell whether this change can help to resolve the issue, but it is worth trying. BUG=webrtc:6666 Committed: https://crrev.com/2184155782297969eaa2992aca270cb67efaa4e2 Cr-Commit-Position: refs/heads/master@{#15158}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Resolve review comments #

Total comments: 5

Patch Set 3 : Resolve review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -6 lines) Patch
M webrtc/modules/desktop_capture/screen_capturer_integration_test.cc View 1 2 5 chunks +42 lines, -6 lines 0 comments Download
M webrtc/modules/desktop_capture/screen_drawer_win.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 60 (51 generated)
Hzj_jie
4 years, 1 month ago (2016-11-17 23:33:40 UTC) #40
Sergey Ulanov
LGTM, but please see my suggestions https://codereview.webrtc.org/2492723002/diff/140001/webrtc/modules/desktop_capture/screen_capturer_integration_test.cc File webrtc/modules/desktop_capture/screen_capturer_integration_test.cc (right): https://codereview.webrtc.org/2492723002/diff/140001/webrtc/modules/desktop_capture/screen_capturer_integration_test.cc#newcode124 webrtc/modules/desktop_capture/screen_capturer_integration_test.cc:124: return; Not sure ...
4 years, 1 month ago (2016-11-18 01:21:42 UTC) #41
Hzj_jie
https://codereview.webrtc.org/2492723002/diff/140001/webrtc/modules/desktop_capture/screen_capturer_integration_test.cc File webrtc/modules/desktop_capture/screen_capturer_integration_test.cc (right): https://codereview.webrtc.org/2492723002/diff/140001/webrtc/modules/desktop_capture/screen_capturer_integration_test.cc#newcode124 webrtc/modules/desktop_capture/screen_capturer_integration_test.cc:124: return; On 2016/11/18 01:21:42, Sergey Ulanov wrote: > Not ...
4 years, 1 month ago (2016-11-18 04:32:01 UTC) #46
kjellander_webrtc
lgtm with some comments https://codereview.webrtc.org/2492723002/diff/160001/webrtc/modules/desktop_capture/screen_capturer_integration_test.cc File webrtc/modules/desktop_capture/screen_capturer_integration_test.cc (right): https://codereview.webrtc.org/2492723002/diff/160001/webrtc/modules/desktop_capture/screen_capturer_integration_test.cc#newcode218 webrtc/modules/desktop_capture/screen_capturer_integration_test.cc:218: // Split the entire string ...
4 years, 1 month ago (2016-11-18 08:47:23 UTC) #47
Hzj_jie
https://codereview.webrtc.org/2492723002/diff/160001/webrtc/modules/desktop_capture/screen_capturer_integration_test.cc File webrtc/modules/desktop_capture/screen_capturer_integration_test.cc (right): https://codereview.webrtc.org/2492723002/diff/160001/webrtc/modules/desktop_capture/screen_capturer_integration_test.cc#newcode218 webrtc/modules/desktop_capture/screen_capturer_integration_test.cc:218: // Split the entire string (can be over 4M) ...
4 years, 1 month ago (2016-11-18 22:07:25 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2492723002/180001
4 years, 1 month ago (2016-11-19 04:29:49 UTC) #55
commit-bot: I haz the power
Committed patchset #3 (id:180001)
4 years, 1 month ago (2016-11-19 04:31:06 UTC) #57
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/2184155782297969eaa2992aca270cb67efaa4e2 Cr-Commit-Position: refs/heads/master@{#15158}
4 years, 1 month ago (2016-11-19 04:31:16 UTC) #59
kjellander_webrtc
4 years, 1 month ago (2016-11-21 06:58:12 UTC) #60
Message was sent while issue was closed.
Just comments.

https://codereview.webrtc.org/2492723002/diff/160001/webrtc/modules/desktop_c...
File webrtc/modules/desktop_capture/screen_capturer_integration_test.cc (right):

https://codereview.webrtc.org/2492723002/diff/160001/webrtc/modules/desktop_c...
webrtc/modules/desktop_capture/screen_capturer_integration_test.cc:218: // Split
the entire string (can be over 4M) into several lines to
On 2016/11/18 22:07:25, Hzj_jie wrote:
> On 2016/11/18 08:47:23, kjellander_webrtc wrote:
> > How large can this be? The swarming trybots have a limit of 16MB of logs, so
> > going above that will cause tests to fail (and I'm not sure we'll even get
> these
> > lines logged).
> > 
> > There's a special directory we can pass to the script where output files
that
> > shall be archived can be written.
> > Ideally we'll make use of that and write the images in their original format
> to
> > that dir instead. For that we need to have a flag that makes the directory
> > available for the test.
> > I filed https://bugs.chromium.org/p/webrtc/issues/detail?id=6732 for
> > implementing that, so you might want to wait for that (or look at
implementing
> > it yourself).
> > 
> > That said, since this is only written upon failure, we could try this
approach
> > first either way.
> 
> On our trybots, it should be 4M. Since the test will fail immediately after
one
> logging, it should be OK.

The running test case fails, yes, but the remaining test methods are still
executed, which might
use the same debug logging upon additional failures, since
TestCaptureUpdatedRegion is used by multiple test cases.

> I do recall LOG(LS_INFO) will be ignored by trybot, so I used std::out in the
> first iteration. And also, printf / std::out are widely used in other tests,
> such as https://goo.gl/JNYVah and https://goo.gl/VFVaAj. So I would prefer to
> revert the change, and use std::out.
> 
> I am happy with the change, and I believe we can even go further. For example,
> in ScreenCapturerIntegrationTest, a compression is really welcome.
> 
> But we can do two things simultaneous, I would prefer to submit this change
and
> a following change to enable ScreenCapturerIntegrationTests again, and see if
we
> can get a valuable screenshot. Meanwhile, we can work on the tools for test
> cases to store large data.
> 
> Sounds good?

Since it's only printed on failures, it's OK. Let's see how it goes.

Powered by Google App Engine
This is Rietveld 408576698