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

Issue 616063004: Add --output-dir flag for page_runner.py. (Closed)

Created:
6 years, 2 months ago by ariblue
Modified:
6 years, 2 months ago
Reviewers:
nednguyen, dtu, tonyg
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add --output-dir flag for page_runner.py to specify a custom directory for output profiling and results data. Motivation behind this flag: I've run into a bug where a run on a local device and a run on the try bots are showing different versions of the page. I wanted to use the android_screen_recorder_profiler.py to record the try bot version and see what it is actually showing. However, it currently tries to output the video to a temporary directory in /tmp (which I do not have permission to write to). BUG= Committed: https://crrev.com/2a859c8f48b40d7bc443812e6cf760f10e0d22ba Cr-Commit-Position: refs/heads/master@{#297740}

Patch Set 1 #

Total comments: 2

Patch Set 2 : use more generic --output-dir #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -12 lines) Patch
M tools/telemetry/telemetry/page/page_runner.py View 1 2 chunks +5 lines, -1 line 2 comments Download
M tools/telemetry/telemetry/results/results_options.py View 1 4 chunks +19 lines, -11 lines 2 comments Download

Messages

Total messages: 27 (4 generated)
ariblue
6 years, 2 months ago (2014-09-30 22:06:18 UTC) #2
nednguyen
On 2014/09/30 22:06:18, ariblue wrote: Can you wrap your description? It sucks that we have ...
6 years, 2 months ago (2014-09-30 22:10:23 UTC) #3
nednguyen
lgtm
6 years, 2 months ago (2014-09-30 22:11:46 UTC) #4
tonyg
https://codereview.chromium.org/616063004/diff/1/tools/telemetry/telemetry/core/browser_options.py File tools/telemetry/telemetry/core/browser_options.py (right): https://codereview.chromium.org/616063004/diff/1/tools/telemetry/telemetry/core/browser_options.py#newcode109 tools/telemetry/telemetry/core/browser_options.py:109: '--profiler-dir', default=None, We try to be thoughtful about the ...
6 years, 2 months ago (2014-09-30 22:18:40 UTC) #5
nednguyen
https://codereview.chromium.org/616063004/diff/1/tools/telemetry/telemetry/core/browser_options.py File tools/telemetry/telemetry/core/browser_options.py (right): https://codereview.chromium.org/616063004/diff/1/tools/telemetry/telemetry/core/browser_options.py#newcode109 tools/telemetry/telemetry/core/browser_options.py:109: '--profiler-dir', default=None, On 2014/09/30 22:18:39, tonyg wrote: > We ...
6 years, 2 months ago (2014-09-30 22:23:03 UTC) #6
ariblue
On 2014/09/30 22:23:03, nednguyen wrote: > https://codereview.chromium.org/616063004/diff/1/tools/telemetry/telemetry/core/browser_options.py > File tools/telemetry/telemetry/core/browser_options.py (right): > > https://codereview.chromium.org/616063004/diff/1/tools/telemetry/telemetry/core/browser_options.py#newcode109 > ...
6 years, 2 months ago (2014-09-30 22:51:47 UTC) #8
tonyg
On 2014/09/30 22:51:47, ariblue wrote: > On 2014/09/30 22:23:03, nednguyen wrote: > > > https://codereview.chromium.org/616063004/diff/1/tools/telemetry/telemetry/core/browser_options.py ...
6 years, 2 months ago (2014-09-30 22:54:35 UTC) #9
ariblue
On 2014/09/30 22:54:35, tonyg wrote: > On 2014/09/30 22:51:47, ariblue wrote: > > On 2014/09/30 ...
6 years, 2 months ago (2014-10-01 00:01:52 UTC) #10
nednguyen
On 2014/10/01 00:01:52, ariblue wrote: > On 2014/09/30 22:54:35, tonyg wrote: > > On 2014/09/30 ...
6 years, 2 months ago (2014-10-01 04:37:17 UTC) #11
nednguyen
https://codereview.chromium.org/616063004/diff/40001/tools/telemetry/telemetry/page/page_runner.py File tools/telemetry/telemetry/page/page_runner.py (right): https://codereview.chromium.org/616063004/diff/40001/tools/telemetry/telemetry/page/page_runner.py#newcode129 tools/telemetry/telemetry/page/page_runner.py:129: else: This is awkward since results.html will no longer ...
6 years, 2 months ago (2014-10-01 04:37:36 UTC) #12
ariblue
On 2014/10/01 04:37:17, nednguyen wrote: > On 2014/10/01 00:01:52, ariblue wrote: > > On 2014/09/30 ...
6 years, 2 months ago (2014-10-01 17:18:47 UTC) #13
ariblue
https://codereview.chromium.org/616063004/diff/40001/tools/telemetry/telemetry/page/page_runner.py File tools/telemetry/telemetry/page/page_runner.py (right): https://codereview.chromium.org/616063004/diff/40001/tools/telemetry/telemetry/page/page_runner.py#newcode129 tools/telemetry/telemetry/page/page_runner.py:129: else: On 2014/10/01 04:37:36, nednguyen wrote: > This is ...
6 years, 2 months ago (2014-10-01 17:21:09 UTC) #14
nednguyen
On 2014/10/01 17:21:09, ariblue wrote: > https://codereview.chromium.org/616063004/diff/40001/tools/telemetry/telemetry/page/page_runner.py > File tools/telemetry/telemetry/page/page_runner.py (right): > > https://codereview.chromium.org/616063004/diff/40001/tools/telemetry/telemetry/page/page_runner.py#newcode129 > ...
6 years, 2 months ago (2014-10-01 17:52:54 UTC) #15
tonyg
Something still doesn't feel intuitive here. Maybe Dave'll have some ideas. With this patch, would ...
6 years, 2 months ago (2014-10-01 19:44:44 UTC) #17
nednguyen
On 2014/10/01 19:44:44, tonyg wrote: > Something still doesn't feel intuitive here. Maybe Dave'll have ...
6 years, 2 months ago (2014-10-01 19:53:57 UTC) #18
ariblue
On 2014/10/01 19:44:44, tonyg wrote: > Something still doesn't feel intuitive here. Maybe Dave'll have ...
6 years, 2 months ago (2014-10-01 20:23:15 UTC) #19
tonyg
lgtm
6 years, 2 months ago (2014-10-01 23:34:38 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/616063004/40001
6 years, 2 months ago (2014-10-01 23:45:47 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:40001) as d6523d657610b525b8086fae01538a09aeddc33e
6 years, 2 months ago (2014-10-01 23:54:34 UTC) #23
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/2a859c8f48b40d7bc443812e6cf760f10e0d22ba Cr-Commit-Position: refs/heads/master@{#297740}
6 years, 2 months ago (2014-10-01 23:55:25 UTC) #24
dtu
A revert of this CL (patchset #2 id:40001) has been created in https://codereview.chromium.org/616953005/ by dtu@chromium.org. ...
6 years, 2 months ago (2014-10-02 03:34:32 UTC) #25
nednguyen
On 2014/10/02 03:34:32, dtu wrote: > A revert of this CL (patchset #2 id:40001) has ...
6 years, 2 months ago (2014-10-02 15:12:15 UTC) #26
tonyg
6 years, 2 months ago (2014-10-15 00:51:42 UTC) #27
Message was sent while issue was closed.
On 2014/10/02 15:12:15, nednguyen wrote:
> On 2014/10/02 03:34:32, dtu wrote:
> > A revert of this CL (patchset #2 id:40001) has been created in
> > https://codereview.chromium.org/616953005/ by mailto:dtu@chromium.org.
> > 
> > The reason for reverting is: Failing on all perf bots in
> > generate_telemetry_profiles:
> > 
> > Traceback (most recent call last):
> >   <module> at tools/perf/generate_profile:13
> >     sys.exit(profile_generator.Main())
> >   Main at tools/telemetry/telemetry/page/profile_generator.py:145
> >     AddCommandLineArgs(parser)
> >   AddCommandLineArgs at
> tools/telemetry/telemetry/page/profile_generator.py:115
> >     help='Generated profile is placed in this directory.')
> >   add_option at /usr/lib/python2.7/optparse.py:1020
> >     self._check_conflict(option)
> >   _check_conflict at /usr/lib/python2.7/optparse.py:995
> >     option)
> > OptionConflictError: option --output-dir: conflicting option string(s):
> > --output-dir
> > 
> > Locals:
> >   co            : ('--output-dir', <Option at 0x2b074d0: --output-dir>)
> >   conflict_opts : [('--output-dir', <Option at 0x2b074d0: --output-dir>)]
> >   handler       : 'error'
> >   opt           : '--output-dir'
> >   option        : <Option at 0x2b08290: --output-dir>
> > .
> 
> This is again showing that each flags bring a lot of technical debt for us.
> Let's go with:
> 1) Solve chrishenry's TODO, i.e: make --output-dir flag instead of
--output-file
> 2) Place all the artifacts in output_dir
> 
> What do you guys think?

Love it.

Powered by Google App Engine
This is Rietveld 408576698