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

Issue 2206363002: Added integration test to Chrome Proxy to verify direct connection on remote site timeout (Closed)

Created:
4 years, 4 months ago by Robert Ogden
Modified:
4 years, 4 months ago
Reviewers:
bustamante, sclittle
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added integration test to Chrome Proxy to verify direct connection on remote site timeout. Added an integration test to Chrome Proxy, testing that when a remote site times out connecting, the proxy will bypass and the client will use a direct connection to the remote site. This should not take longer than 30 seconds. This CL adds a handler to the chromeproxy-test appspot server to facilitate this test. This handler waits 60 seconds on any request coming from the proxy (causing a timeout) but responds immediately to direct connections. BUG=635561 Committed: https://crrev.com/deb4af80f00e9455ce2cfcb61ce1fc9400462deb Cr-Commit-Position: refs/heads/master@{#410869}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Added an integration test to Chrome Proxy to verify direct connection on proxy HTTP timeout #

Total comments: 2

Patch Set 3 : Added an integration test to Chrome Proxy to verify direct connection on proxy HTTP timeout #

Total comments: 8

Patch Set 4 : Added integration test to Chrome Proxy to verify direct connection on remote site timeout #

Total comments: 16

Patch Set 5 : Updated comments #

Patch Set 6 : Updated timing thresholds for poor connections #

Patch Set 7 : nit missing period #

Total comments: 4

Patch Set 8 : Updated timing to server=90s and test=120s #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -4 lines) Patch
M tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py View 1 2 3 4 2 chunks +16 lines, -1 line 0 comments Download
M tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py View 1 2 3 2 chunks +15 lines, -1 line 0 comments Download
M tools/chrome_proxy/integration_tests/chrome_proxy_metrics.py View 1 2 3 4 5 6 7 1 chunk +21 lines, -0 lines 0 comments Download
A tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/http_timeout.py View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
M tools/chrome_proxy/testserver/app.yaml View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M tools/chrome_proxy/testserver/server.go View 1 2 3 4 5 6 7 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (8 generated)
Robert Ogden
4 years, 4 months ago (2016-08-03 18:18:07 UTC) #3
sclittle
I'll let Richard take the first review pass here. nit: Is there a bug associated ...
4 years, 4 months ago (2016-08-03 18:27:06 UTC) #4
bustamante
Thanks for adding this! I just have some small comments below. https://codereview.chromium.org/2206363002/diff/1/tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py File tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py (right): ...
4 years, 4 months ago (2016-08-03 19:04:39 UTC) #6
Robert Ogden
bustamante@'s comments addressed. Please re-review :) https://codereview.chromium.org/2206363002/diff/1/tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py File tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py (right): https://codereview.chromium.org/2206363002/diff/1/tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py#newcode334 tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py:334: return 'chrome_proxy_benchmark.pingback' On ...
4 years, 4 months ago (2016-08-03 21:12:32 UTC) #7
bustamante
lgtm % one last nit Scott can you take a look? https://codereview.chromium.org/2206363002/diff/20001/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py File tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py (right): ...
4 years, 4 months ago (2016-08-03 21:40:55 UTC) #8
sclittle
Nice code! Just a few comments, mainly about the blackholing server. Could you update the ...
4 years, 4 months ago (2016-08-03 22:30:10 UTC) #9
Robert Ogden
Test changed as discussed Wednesday. New bug=635561 Let me know what you think this time ...
4 years, 4 months ago (2016-08-08 16:46:42 UTC) #11
sclittle
https://codereview.chromium.org/2206363002/diff/60001/tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py File tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py (right): https://codereview.chromium.org/2206363002/diff/60001/tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py#newcode15 tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py:15: """Check that the proxy bypasses when endpoint times out. ...
4 years, 4 months ago (2016-08-09 21:31:32 UTC) #12
Robert Ogden
Addressed sclittle@'s comments. Thanks :) https://codereview.chromium.org/2206363002/diff/60001/tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py File tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py (right): https://codereview.chromium.org/2206363002/diff/60001/tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py#newcode15 tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py:15: """Check that the proxy ...
4 years, 4 months ago (2016-08-09 21:56:22 UTC) #13
sclittle
https://codereview.chromium.org/2206363002/diff/60001/tools/chrome_proxy/integration_tests/chrome_proxy_metrics.py File tools/chrome_proxy/integration_tests/chrome_proxy_metrics.py (right): https://codereview.chromium.org/2206363002/diff/60001/tools/chrome_proxy/integration_tests/chrome_proxy_metrics.py#newcode877 tools/chrome_proxy/integration_tests/chrome_proxy_metrics.py:877: tab.WaitForDocumentReadyStateToBeComplete(timeout=30) On 2016/08/09 21:56:22, Robert Ogden wrote: > On ...
4 years, 4 months ago (2016-08-09 22:12:03 UTC) #14
Robert Ogden
Timing updated to 90s timeout, server delays 115s. (Appspot 502's traffic at 120s) https://codereview.chromium.org/2206363002/diff/60001/tools/chrome_proxy/integration_tests/chrome_proxy_metrics.py File ...
4 years, 4 months ago (2016-08-09 22:17:55 UTC) #15
sclittle
https://codereview.chromium.org/2206363002/diff/120001/tools/chrome_proxy/testserver/server.go File tools/chrome_proxy/testserver/server.go (right): https://codereview.chromium.org/2206363002/diff/120001/tools/chrome_proxy/testserver/server.go#newcode93 tools/chrome_proxy/testserver/server.go:93: // Appspot will 502 traffic at 120 seconds with ...
4 years, 4 months ago (2016-08-09 22:30:36 UTC) #16
Robert Ogden
Good thinking on the timing sclittle@, implemented as suggested https://codereview.chromium.org/2206363002/diff/120001/tools/chrome_proxy/testserver/server.go File tools/chrome_proxy/testserver/server.go (right): https://codereview.chromium.org/2206363002/diff/120001/tools/chrome_proxy/testserver/server.go#newcode93 tools/chrome_proxy/testserver/server.go:93: ...
4 years, 4 months ago (2016-08-09 22:44:54 UTC) #17
sclittle
LGTM! Thanks for doing this.
4 years, 4 months ago (2016-08-09 22:48:36 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2206363002/140001
4 years, 4 months ago (2016-08-09 22:49:55 UTC) #21
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-08-09 23:39:45 UTC) #23
commit-bot: I haz the power
4 years, 4 months ago (2016-08-09 23:41:27 UTC) #25
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/deb4af80f00e9455ce2cfcb61ce1fc9400462deb
Cr-Commit-Position: refs/heads/master@{#410869}

Powered by Google App Engine
This is Rietveld 408576698