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

Issue 2722183004: Fix flaky ViEEncoder tests. (Closed)

Created:
3 years, 9 months ago by kthelgason
Modified:
3 years, 9 months ago
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fix flaky ViEEncoder tests. This CL fixes two issues. The first is a tsan complaint about a data race. The test had a fix to make it deterministic but the race still existed, so this adds locks around the critical section to appease the sanitizer. The second, more annoying issue, is that occasionally the test would start before the encoder had been configured, as this happens asynchronously on a task queue. This would cause frames to be queued up and dropped, but not where we expected them to be dropped. This was causing some tests to fail very occasionally. I've added a synchronisation mechanism by posting a barrier task on the queue and not proceeding with the tests until it finishes. BUG=webrtc:7217, webrtc:7232, webrtc:7260 Review-Url: https://codereview.webrtc.org/2722183004 Cr-Commit-Position: refs/heads/master@{#16995} Committed: https://chromium.googlesource.com/external/webrtc/+/2fc52544b02aab6a206ae76dc220e7c8409c9b31

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -18 lines) Patch
M webrtc/video/vie_encoder_unittest.cc View 7 chunks +19 lines, -18 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
kthelgason
Please take a look :)
3 years, 9 months ago (2017-03-02 13:17:31 UTC) #4
magjed_webrtc
lgtm ;)
3 years, 9 months ago (2017-03-02 13:26:23 UTC) #5
sprang_webrtc
lgtm
3 years, 9 months ago (2017-03-02 15:15:05 UTC) #8
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/2722183004/1
3 years, 9 months ago (2017-03-03 08:22:26 UTC) #10
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 08:24:44 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/external/webrtc/+/2fc52544b02aab6a206ae76dc...

Powered by Google App Engine
This is Rietveld 408576698