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

Issue 9127009: Constrained Network test does not fail fast under fatal conditions. (Closed)

Created:
8 years, 11 months ago by shadi
Modified:
8 years, 11 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, John Grabowski, Nirnimesh, acolwell+watch_chromium.org, annacc+watch_chromium.org, dennis_jeffrey, anantha, pam+watch_chromium.org, dyu1, vrk (LEFT CHROMIUM), scherkus (not reviewing), ihf+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Constrained Network test does not fail fast under fatal conditions. This CL does the following: - adds a timeout for each perf test, so that if a video does not load the test will time-out. (Currently set to 10 sec for playing event to be fired). - adds sudo commands to traffic control. - adds CNS logs to pyauto logs. - s/kbps/kbit/ where applicable. BUG=109322 TEST={cns, traffic_control} unit tests, local tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117125

Patch Set 1 #

Patch Set 2 : Nits. #

Total comments: 25

Patch Set 3 : Updates on comments. #

Total comments: 6

Patch Set 4 : Update comments. #

Total comments: 6

Patch Set 5 : and again... #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -83 lines) Patch
M chrome/test/data/media/html/media_constrained_network.html View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/test/functional/media/media_constrained_network_perf.py View 1 2 3 4 7 chunks +68 lines, -20 lines 0 comments Download
M media/tools/constrained_network_server/cn.py View 1 chunk +1 line, -1 line 0 comments Download
M media/tools/constrained_network_server/cns.py View 1 2 3 4 chunks +20 lines, -0 lines 0 comments Download
M media/tools/constrained_network_server/traffic_control.py View 12 chunks +27 lines, -24 lines 0 comments Download
M media/tools/constrained_network_server/traffic_control_test.py View 3 4 1 chunk +1 line, -3 lines 2 comments Download
M media/tools/constrained_network_server/traffic_control_unittest.py View 1 2 5 chunks +39 lines, -32 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
shadi
Dale, can you please review these changes?
8 years, 11 months ago (2012-01-06 22:51:52 UTC) #1
DaleCurtis
http://codereview.chromium.org/9127009/diff/2001/chrome/test/functional/media/media_constrained_network_perf.py File chrome/test/functional/media/media_constrained_network_perf.py (right): http://codereview.chromium.org/9127009/diff/2001/chrome/test/functional/media/media_constrained_network_perf.py#newcode32 chrome/test/functional/media/media_constrained_network_perf.py:32: import urllib2 This should go under threading. http://codereview.chromium.org/9127009/diff/2001/chrome/test/functional/media/media_constrained_network_perf.py#newcode107 chrome/test/functional/media/media_constrained_network_perf.py:107: ...
8 years, 11 months ago (2012-01-06 23:19:41 UTC) #2
DaleCurtis
Also, please provide a more detailed description as well as some text for the TEST= ...
8 years, 11 months ago (2012-01-06 23:40:00 UTC) #3
shadi
Dale, please review? :) http://codereview.chromium.org/9127009/diff/2001/chrome/test/functional/media/media_constrained_network_perf.py File chrome/test/functional/media/media_constrained_network_perf.py (right): http://codereview.chromium.org/9127009/diff/2001/chrome/test/functional/media/media_constrained_network_perf.py#newcode32 chrome/test/functional/media/media_constrained_network_perf.py:32: import urllib2 On 2012/01/06 23:19:42, ...
8 years, 11 months ago (2012-01-07 04:56:19 UTC) #4
DaleCurtis
http://codereview.chromium.org/9127009/diff/2001/media/tools/constrained_network_server/cns.py File media/tools/constrained_network_server/cns.py (right): http://codereview.chromium.org/9127009/diff/2001/media/tools/constrained_network_server/cns.py#newcode323 media/tools/constrained_network_server/cns.py:323: logging.basicConfig(level=log_level, format='%(message)s') On 2012/01/07 04:56:19, shadi wrote: > cherrypy.log ...
8 years, 11 months ago (2012-01-09 19:21:19 UTC) #5
shadi
I'm moving proper cheerypy.log format to a new issue. http://codereview.chromium.org/9127009/diff/7001/chrome/test/functional/media/media_constrained_network_perf.py File chrome/test/functional/media/media_constrained_network_perf.py (right): http://codereview.chromium.org/9127009/diff/7001/chrome/test/functional/media/media_constrained_network_perf.py#newcode109 chrome/test/functional/media/media_constrained_network_perf.py:109: ...
8 years, 11 months ago (2012-01-09 23:07:36 UTC) #6
DaleCurtis
http://codereview.chromium.org/9127009/diff/9001/chrome/test/functional/media/media_constrained_network_perf.py File chrome/test/functional/media/media_constrained_network_perf.py (right): http://codereview.chromium.org/9127009/diff/9001/chrome/test/functional/media/media_constrained_network_perf.py#newcode242 chrome/test/functional/media/media_constrained_network_perf.py:242: return not urllib2.urlopen(test_url) is None Use "is not None", ...
8 years, 11 months ago (2012-01-10 00:20:17 UTC) #7
shadi
http://codereview.chromium.org/9127009/diff/9001/chrome/test/functional/media/media_constrained_network_perf.py File chrome/test/functional/media/media_constrained_network_perf.py (right): http://codereview.chromium.org/9127009/diff/9001/chrome/test/functional/media/media_constrained_network_perf.py#newcode242 chrome/test/functional/media/media_constrained_network_perf.py:242: return not urllib2.urlopen(test_url) is None On 2012/01/10 00:20:18, DaleCurtis ...
8 years, 11 months ago (2012-01-10 00:45:46 UTC) #8
DaleCurtis
http://codereview.chromium.org/9127009/diff/15001/media/tools/constrained_network_server/traffic_control_test.py File media/tools/constrained_network_server/traffic_control_test.py (right): http://codereview.chromium.org/9127009/diff/15001/media/tools/constrained_network_server/traffic_control_test.py#newcode78 media/tools/constrained_network_server/traffic_control_test.py:78: class_detail = ('class htb 1:%x root prio 0 rate ...
8 years, 11 months ago (2012-01-10 00:48:33 UTC) #9
shadi
http://codereview.chromium.org/9127009/diff/15001/media/tools/constrained_network_server/traffic_control_test.py File media/tools/constrained_network_server/traffic_control_test.py (right): http://codereview.chromium.org/9127009/diff/15001/media/tools/constrained_network_server/traffic_control_test.py#newcode78 media/tools/constrained_network_server/traffic_control_test.py:78: class_detail = ('class htb 1:%x root prio 0 rate ...
8 years, 11 months ago (2012-01-10 00:54:42 UTC) #10
DaleCurtis
LGTM, +fischman for commit approval.
8 years, 11 months ago (2012-01-10 00:55:45 UTC) #11
Ami GONE FROM CHROMIUM
LGTM
8 years, 11 months ago (2012-01-10 06:15:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shadi@chromium.org/9127009/15001
8 years, 11 months ago (2012-01-10 21:07:50 UTC) #13
commit-bot: I haz the power
Try job failure for 9127009-15001 (retry) on linux_rel for step "ui_tests". It's a second try, ...
8 years, 11 months ago (2012-01-10 22:27:54 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shadi@chromium.org/9127009/15001
8 years, 11 months ago (2012-01-10 22:36:50 UTC) #15
commit-bot: I haz the power
8 years, 11 months ago (2012-01-11 00:11:50 UTC) #16
Change committed as 117125

Powered by Google App Engine
This is Rietveld 408576698