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

Issue 11231087: Removing flake in TemporaryHTTPServer. (Closed)

Created:
8 years, 2 months ago by hartmanng
Modified:
8 years, 1 month ago
Reviewers:
dtu, nduca, marja
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Removing flake in TemporaryHTTPServer. Note that I think ReplayServer (wpr_server.py) could still potentially be flaky since it makes use of webpagereplay.py (which hardcodes ports). We may eventually want to subclass it or something to make it get dynamic ports like we do elsewhere. In fact, I ran into the problem today while working on this patch - if a test doesn't exit properly, the server may be left up blocking these hardcoded ports. I've made a new bug for this, since I think it's a bit out of the scope of this issue (crbug.com/157459). BUG=154229 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168902

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -14 lines) Patch
M tools/telemetry/telemetry/cros_browser_backend.py View 1 2 3 chunks +17 lines, -6 lines 0 comments Download
M tools/telemetry/telemetry/cros_interface.py View 1 2 2 chunks +21 lines, -6 lines 0 comments Download
M tools/telemetry/telemetry/cros_interface_unittest.py View 1 2 2 chunks +37 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/temporary_http_server.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/wpr_server.py View 1 2 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
hartmanng
This should fix all 3 of the flake sources pointed out in http://code.google.com/p/chromium/issues/detail?id=154229 .
8 years, 2 months ago (2012-10-23 21:56:13 UTC) #1
dtu
https://chromiumcodereview.appspot.com/11231087/diff/1/tools/chrome_remote_control/chrome_remote_control/cros_interface.py File tools/chrome_remote_control/chrome_remote_control/cros_interface.py (right): https://chromiumcodereview.appspot.com/11231087/diff/1/tools/chrome_remote_control/chrome_remote_control/cros_interface.py#newcode371 tools/chrome_remote_control/chrome_remote_control/cros_interface.py:371: def RunRemotePython(self, pycmd): Only test images have Python. Ideally ...
8 years, 2 months ago (2012-10-23 22:15:04 UTC) #2
hartmanng
nduca, please take a look
8 years, 1 month ago (2012-11-05 21:12:29 UTC) #3
nduca
http://codereview.chromium.org/11231087/diff/1/tools/chrome_remote_control/chrome_remote_control/cros_browser_backend.py File tools/chrome_remote_control/chrome_remote_control/cros_browser_backend.py (right): http://codereview.chromium.org/11231087/diff/1/tools/chrome_remote_control/chrome_remote_control/cros_browser_backend.py#newcode174 tools/chrome_remote_control/chrome_remote_control/cros_browser_backend.py:174: try: ssh to the target and run wget with ...
8 years, 1 month ago (2012-11-06 04:28:01 UTC) #4
nduca
dev images have ssh and scp, and the have /bin/sh, netstat (/usr/sbin? i forget where), ...
8 years, 1 month ago (2012-11-06 04:28:14 UTC) #5
hartmanng
I think this should work better, the only remote commands I added are netstat and ...
8 years, 1 month ago (2012-11-19 18:49:13 UTC) #6
nduca
Looks like the right approach. Some comments... http://codereview.chromium.org/11231087/diff/14006/tools/telemetry/telemetry/cros_browser_backend.py File tools/telemetry/telemetry/cros_browser_backend.py (left): http://codereview.chromium.org/11231087/diff/14006/tools/telemetry/telemetry/cros_browser_backend.py#oldcode133 tools/telemetry/telemetry/cros_browser_backend.py:133: self._host_port = ...
8 years, 1 month ago (2012-11-19 20:20:04 UTC) #7
hartmanng
PTAL https://codereview.chromium.org/11231087/diff/14006/tools/telemetry/telemetry/cros_browser_backend.py File tools/telemetry/telemetry/cros_browser_backend.py (left): https://codereview.chromium.org/11231087/diff/14006/tools/telemetry/telemetry/cros_browser_backend.py#oldcode133 tools/telemetry/telemetry/cros_browser_backend.py:133: self._host_port = ports[0][0] On 2012/11/19 20:20:04, nduca wrote: ...
8 years, 1 month ago (2012-11-20 16:37:04 UTC) #8
nduca
lgtm
8 years, 1 month ago (2012-11-20 19:34:00 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hartmanng@chromium.org/11231087/15005
8 years, 1 month ago (2012-11-20 19:48:45 UTC) #10
commit-bot: I haz the power
Retried try job too often for step(s) browser_tests, content_browsertests
8 years, 1 month ago (2012-11-20 21:09:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hartmanng@chromium.org/11231087/15005
8 years, 1 month ago (2012-11-20 21:15:13 UTC) #12
commit-bot: I haz the power
Change committed as 168902
8 years, 1 month ago (2012-11-20 23:00:57 UTC) #13
marja
This broke some telemetry tests. E.g., ERROR: testFailure (telemetry.multi_page_benchmark_unittest.MultiPageBenchmarkUnitTest) ---------------------------------------------------------------------- Traceback (most recent call last): ...
8 years, 1 month ago (2012-11-22 13:33:40 UTC) #14
hartmanng
8 years, 1 month ago (2012-11-22 14:02:41 UTC) #15
On 2012/11/22 13:33:40, marja wrote:
> This broke some telemetry tests.
> 
> E.g.,
> ERROR: testFailure
> (telemetry.multi_page_benchmark_unittest.MultiPageBenchmarkUnitTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
>
"/media/ssdvol/chromium/src/tools/telemetry/telemetry/multi_page_benchmark_unittest.py",
> line 73, in testFailure
>     all_results = self.RunBenchmark(benchmark, ps)
>   File
>
"/media/ssdvol/chromium/src/tools/telemetry/telemetry/multi_page_benchmark_unittest_base.py",
> line 51, in RunBenchmark
>     runner.Run(options, possible_browser, benchmark, results)
>   File "/media/ssdvol/chromium/src/tools/telemetry/telemetry/page_runner.py",
> line 112, in Run
>     self._RunPage(options, page, state.tab, test, results)
>   File "/media/ssdvol/chromium/src/tools/telemetry/telemetry/page_runner.py",
> line 129, in _RunPage
>     did_prepare = self.PreparePage(page, tab, page_state, results)
>   File "/media/ssdvol/chromium/src/tools/telemetry/telemetry/page_runner.py",
> line 193, in PreparePage
>     target_side_url = tab.browser.http_server.UrlOf(filename)
>   File
>
"/media/ssdvol/chromium/src/tools/telemetry/telemetry/temporary_http_server.py",
> line 69, in UrlOf
>     return urlparse.urljoin(self.url, path)
>   File
>
"/media/ssdvol/chromium/src/tools/telemetry/telemetry/temporary_http_server.py",
> line 66, in url
>     return self._forwarder.url
>   File
>
"/media/ssdvol/chromium/src/tools/telemetry/telemetry/desktop_browser_backend.py",
> line 107, in url
>     return 'http://localhost:%i' % self._host_port
> TypeError: not all arguments converted during string formatting

Sorry about this (and thanks for letting me know). I have a fix up here
https://codereview.chromium.org/11418131

Powered by Google App Engine
This is Rietveld 408576698