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

Issue 1025553008: [Telemtry] Create a temp file for storing wpr's stdout & stderr. (Closed)

Created:
5 years, 9 months ago by nednguyen
Modified:
5 years, 9 months ago
Reviewers:
Zhen Wang, slamm
CC:
chromium-reviews, telemetry-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Telemtry] Create a temp file for storing wpr's stdout & stderr. Previously, webpagereplay stores all the stdout & stder of the wpr subprocess to a fix log file path location. It then parses the log lines to get replay server port assignment. When there are multiple telemetry processes running in parallel, this cause a concurrency problem. This patch addresses the issue by create a temp location for the log file path. This is to make sure that different telemetry processes will write & read to different log files. BUG=469296 Committed: https://crrev.com/8cf5c3d2dd0406a80e8f2f3130212ee7b78839be Cr-Commit-Position: refs/heads/master@{#322247}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address slamm's comment #

Total comments: 2

Patch Set 3 : Move temp log file clean up to the end of StopServer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -7 lines) Patch
M tools/telemetry/telemetry/core/webpagereplay.py View 1 2 7 chunks +28 lines, -7 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
nednguyen
5 years, 9 months ago (2015-03-24 18:11:38 UTC) #2
Zhen Wang
On 2015/03/24 18:11:38, nednguyen wrote: lgtm
5 years, 9 months ago (2015-03-24 18:29:31 UTC) #3
slamm
lgtm One thing this does is make the WPR logs unavailable after a run. At ...
5 years, 9 months ago (2015-03-24 21:01:47 UTC) #4
nednguyen
https://codereview.chromium.org/1025553008/diff/1/tools/telemetry/telemetry/core/webpagereplay.py File tools/telemetry/telemetry/core/webpagereplay.py (right): https://codereview.chromium.org/1025553008/diff/1/tools/telemetry/telemetry/core/webpagereplay.py#newcode80 tools/telemetry/telemetry/core/webpagereplay.py:80: self._tmp_log_file_path = None On 2015/03/24 21:01:47, slamm wrote: > ...
5 years, 9 months ago (2015-03-25 08:32:23 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1025553008/1
5 years, 9 months ago (2015-03-25 08:32:41 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1025553008/20001
5 years, 9 months ago (2015-03-25 08:36:10 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/41215)
5 years, 9 months ago (2015-03-25 19:27:48 UTC) #13
slamm
https://codereview.chromium.org/1025553008/diff/20001/tools/telemetry/telemetry/core/webpagereplay.py File tools/telemetry/telemetry/core/webpagereplay.py (right): https://codereview.chromium.org/1025553008/diff/20001/tools/telemetry/telemetry/core/webpagereplay.py#newcode217 tools/telemetry/telemetry/core/webpagereplay.py:217: self._CleanUpTempLogFilePath() The try job failed because the WPR process ...
5 years, 9 months ago (2015-03-25 19:34:39 UTC) #14
nednguyen
https://codereview.chromium.org/1025553008/diff/20001/tools/telemetry/telemetry/core/webpagereplay.py File tools/telemetry/telemetry/core/webpagereplay.py (right): https://codereview.chromium.org/1025553008/diff/20001/tools/telemetry/telemetry/core/webpagereplay.py#newcode217 tools/telemetry/telemetry/core/webpagereplay.py:217: self._CleanUpTempLogFilePath() On 2015/03/25 19:34:39, slamm wrote: > The try ...
5 years, 9 months ago (2015-03-25 20:11:52 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1025553008/40001
5 years, 9 months ago (2015-03-25 20:13:01 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1025553008/60001
5 years, 9 months ago (2015-03-25 20:21:45 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 9 months ago (2015-03-25 22:21:23 UTC) #24
commit-bot: I haz the power
5 years, 9 months ago (2015-03-25 22:21:54 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8cf5c3d2dd0406a80e8f2f3130212ee7b78839be
Cr-Commit-Position: refs/heads/master@{#322247}

Powered by Google App Engine
This is Rietveld 408576698