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

Issue 20824008: Reland r212020: Move Python setup/tear down logic into Forwarder ... (Closed)

Created:
7 years, 4 months ago by Philippe
Modified:
7 years, 4 months ago
Reviewers:
bulach
CC:
chromium-reviews, craigdh+watch_chromium.org, kkania, frankf, chrome-speed-team+watch_google.com, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, klundberg+watch_chromium.org, telemetry+watch_chromium.org, frankf+watch_chromium.org
Visibility:
Public.

Description

Reland r212020: Move Python setup/tear down logic into Forwarder ... The initial attempt caused flakiness (random deadlocks). It turns out that testserver.py was inheriting undesirable file descriptors when it was spawned (including file lock file descriptors). Closing the unnecessary file descriptors between fork() and exec() solves the problem. Forwarder used to be a pain to setup/tear down across all the various harnesses. This CL should hopefully solve these issues by hiding these implementation details. The host daemon is now killed once the first time that the Forwarder class is used and the daemon running on the devices is also killed the first time a port is forwarded for a specific device. TBR=bulach@chromium.org BUG=242846 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215023

Patch Set 1 #

Patch Set 2 : Close unused FDs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+269 lines, -169 lines) Patch
M build/android/adb_reverse_forwarder.py View 2 chunks +2 lines, -6 lines 0 comments Download
M build/android/bb_run_sharded_steps.py View 2 chunks +2 lines, -1 line 0 comments Download
M build/android/pylib/base/base_test_runner.py View 4 chunks +18 lines, -24 lines 0 comments Download
M build/android/pylib/base/test_dispatcher.py View 3 chunks +0 lines, -4 lines 0 comments Download
M build/android/pylib/chrome_test_server_spawner.py View 1 9 chunks +19 lines, -12 lines 0 comments Download
M build/android/pylib/forwarder.py View 5 chunks +211 lines, -82 lines 0 comments Download
M build/android/pylib/host_driven/python_test_sharder.py View 1 chunk +1 line, -1 line 0 comments Download
M build/android/pylib/instrumentation/test_runner.py View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/test/chromedriver/run_py_tests.py View 1 chunk +4 lines, -9 lines 0 comments Download
M chrome/test/chromedriver/test_environment.py View 1 chunk +3 lines, -8 lines 0 comments Download
M tools/telemetry/telemetry/core/chrome/adb_commands.py View 2 chunks +5 lines, -16 lines 0 comments Download
M tools/telemetry/telemetry/core/chrome/android_browser_backend.py View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Philippe
Hi Marcus, Please diff between patch set 1 (which is the initial CL) and patch ...
7 years, 4 months ago (2013-08-01 11:34:36 UTC) #1
bulach
lgtm, thanks!
7 years, 4 months ago (2013-08-01 12:32:59 UTC) #2
Philippe
On 2013/08/01 12:32:59, bulach wrote: > lgtm, thanks! Thanks Marcus!
7 years, 4 months ago (2013-08-01 12:33:11 UTC) #3
Philippe
7 years, 4 months ago (2013-08-01 13:45:53 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r215023 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698