Chromium Code Reviews

Issue 2387293002: Fixed flaky VideoSendStreamTests after ViEEncoder changes (Closed)

Created:
4 years, 2 months ago by skvlad
Modified:
4 years, 2 months ago
Reviewers:
stefan-webrtc, mflodman, perkj_webrtc
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, tterriberry_mozilla.com, perkj_webrtc, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fixed flaky VideoSendStreamTests after ViEEncoder changes After https://codereview.webrtc.org/2386573002 changed where resolution changes are handled, a few VideoSendStreamTests became flaky. They were waiting for an InitEncode call they triggered, but sometimes were getting one triggered by the resolution change when the first frame was generated. The fix was to make the tests wait for two InitEncode calls first - one when the stream is created, and the second when the first frame was encoded. BUG=webrtc:6467, webrtc:6371 R=perkj@webrtc.org, stefan@webrtc.org Committed: https://crrev.com/cf33d9c9d3fb57cca28861845d673934993e83df Cr-Commit-Position: refs/heads/master@{#14490}

Patch Set 1 #

Patch Set 2 : Fixed another test #

Patch Set 3 : Wait inside InitEncode to avoid data races. #

Unified diffs Side-by-side diffs Stats (+17 lines, -7 lines)
M webrtc/video/video_send_stream_tests.cc View 4 chunks +17 lines, -7 lines 0 comments

Messages

Total messages: 14 (7 generated)
skvlad
PTAL. The MSan and DrMemory bots have been recently flaky because of this: https://build.chromium.org/p/client.webrtc/builders/Linux%20MSan
4 years, 2 months ago (2016-10-04 01:06:54 UTC) #3
kjellander_webrtc
On 2016/10/04 01:06:54, skvlad wrote: > PTAL. The MSan and DrMemory bots have been recently ...
4 years, 2 months ago (2016-10-04 06:30:29 UTC) #5
stefan-webrtc
Per, are we now encoding a frame in QVGA resolution in the beginning that we ...
4 years, 2 months ago (2016-10-04 07:26:04 UTC) #6
perkj_webrtc
lgtm thanks for fixing. Stefan, the behaviour is moved from webrtcvideoengine2 to ViEEncoder. The qcif ...
4 years, 2 months ago (2016-10-04 07:42:43 UTC) #7
stefan-webrtc
On 2016/10/04 07:42:43, perkj_webrtc wrote: > lgtm > thanks for fixing. > > Stefan, the ...
4 years, 2 months ago (2016-10-04 07:58:48 UTC) #9
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/2387293002/40001
4 years, 2 months ago (2016-10-04 08:04:12 UTC) #11
skvlad
4 years, 2 months ago (2016-10-04 08:47:10 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
cf33d9c9d3fb57cca28861845d673934993e83df (presubmit successful).

Powered by Google App Engine