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

Issue 2307693002: Fixed flaky VideoSendStreamTest::SupportsAbsoluteSendTime (Closed)

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

Description

Fixed flaky VideoSendStreamTest::SupportsAbsoluteSendTime This test failed on the memcheck bot: https://build.chromium.org/p/client.webrtc/builders/Linux%20Memcheck/builds/6704/steps/video_engine_tests/logs/stdio The test assumed that the absolute send time header extension can never be zero. It's a timestamp truncated to 24 bits, and zero is not a special value - so it can very rarely end up being precisely zero. The fix makes the test wait for at least one packet having a non-zero send time. I've considered changing the test to use a fake clock instead to ensure that not only the value is non-zero, but that it indeed reflects the system timestamp - but that involves changing a very large number of files. Besides, other tests in this file don't verify values for header extensions where zeroes are allowed. NOTRY=true Committed: https://crrev.com/c3f3515f8ea78c0a8a5026639e605a9bdfda4add Cr-Commit-Position: refs/heads/master@{#14056}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Keep sending packets until one has non-zero absSendTime. #

Patch Set 3 : Log a warning when we get a zero absSendTime #

Total comments: 1

Patch Set 4 : "absoluteSendTime" #

Patch Set 5 : formatting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -2 lines) Patch
M webrtc/video/video_send_stream_tests.cc View 1 2 3 4 1 chunk +10 lines, -2 lines 0 comments Download

Messages

Total messages: 34 (18 generated)
skvlad
4 years, 3 months ago (2016-09-01 23:02:23 UTC) #3
pbos-webrtc
https://codereview.webrtc.org/2307693002/diff/1/webrtc/video/video_send_stream_tests.cc File webrtc/video/video_send_stream_tests.cc (left): https://codereview.webrtc.org/2307693002/diff/1/webrtc/video/video_send_stream_tests.cc#oldcode139 webrtc/video/video_send_stream_tests.cc:139: EXPECT_GT(header.extension.absoluteSendTime, 0u); How about returning SEND_PACKET if absoluteSendTime is ...
4 years, 3 months ago (2016-09-01 23:06:22 UTC) #4
pbos-webrtc
https://codereview.webrtc.org/2307693002/diff/1/webrtc/video/video_send_stream_tests.cc File webrtc/video/video_send_stream_tests.cc (left): https://codereview.webrtc.org/2307693002/diff/1/webrtc/video/video_send_stream_tests.cc#oldcode139 webrtc/video/video_send_stream_tests.cc:139: EXPECT_GT(header.extension.absoluteSendTime, 0u); On 2016/09/01 23:06:22, pbos-webrtc wrote: > How ...
4 years, 3 months ago (2016-09-01 23:06:49 UTC) #5
skvlad
https://codereview.webrtc.org/2307693002/diff/1/webrtc/video/video_send_stream_tests.cc File webrtc/video/video_send_stream_tests.cc (left): https://codereview.webrtc.org/2307693002/diff/1/webrtc/video/video_send_stream_tests.cc#oldcode139 webrtc/video/video_send_stream_tests.cc:139: EXPECT_GT(header.extension.absoluteSendTime, 0u); On 2016/09/01 23:06:49, pbos-webrtc wrote: > On ...
4 years, 3 months ago (2016-09-01 23:39:28 UTC) #7
pbos-webrtc
lgtm
4 years, 3 months ago (2016-09-01 23:41:17 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/2307693002/40001
4 years, 3 months ago (2016-09-01 23:43:51 UTC) #11
pbos-webrtc
https://codereview.webrtc.org/2307693002/diff/40001/webrtc/video/video_send_stream_tests.cc File webrtc/video/video_send_stream_tests.cc (right): https://codereview.webrtc.org/2307693002/diff/40001/webrtc/video/video_send_stream_tests.cc#newcode146 webrtc/video/video_send_stream_tests.cc:146: LOG(LS_WARNING) << "Got a packet with zero absSendTime; waiting ...
4 years, 3 months ago (2016-09-01 23:44:51 UTC) #12
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/2307693002/60001
4 years, 3 months ago (2016-09-01 23:46:51 UTC) #17
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/2307693002/80001
4 years, 3 months ago (2016-09-01 23:48:11 UTC) #20
pbos-webrtc
lgtm again, thanks
4 years, 3 months ago (2016-09-01 23:48:31 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL) android_rel on ...
4 years, 3 months ago (2016-09-02 01:48:41 UTC) #23
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/2307693002/80001
4 years, 3 months ago (2016-09-02 17:42:27 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 3 months ago (2016-09-02 19:42:52 UTC) #27
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/2307693002/80001
4 years, 3 months ago (2016-09-02 20:14:55 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-02 20:23:49 UTC) #32
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 20:23:58 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c3f3515f8ea78c0a8a5026639e605a9bdfda4add
Cr-Commit-Position: refs/heads/master@{#14056}

Powered by Google App Engine
This is Rietveld 408576698