0
Commit Graph

67 Commits

Author SHA1 Message Date
79bdcb66e8 Revert of [Android] Remove adb_commands from telemetry. (patchset id:240001 of https://codereview.chromium.org/1141833003/)
Reason for revert:
On 2015/06/03 at 03:23:53, commit-bot wrote:
> Patchset 13 (id:??) landed as https://crrev.com/c951c9e158d55d2be18f8226200679aee55f336d
> Cr-Commit-Position: refs/heads/master@{#332538}

This change breaks --browser=list when non-rooted Android devices are attached.

$ tools/perf/run_benchmark --browser=list
ERROR:root:Fail to create platform instance for Android device 04f120591b9223e1.

Traceback (most recent call last):
  <module> at tools/perf/run_benchmark:20
    sys.exit(benchmark_runner.main(config))
  main at tools/telemetry/telemetry/benchmark_runner.py:433
    options, args = parser.parse_args()
  ParseArgs at tools/telemetry/telemetry/core/browser_options.py:179
    device)
  Cacher at tools/telemetry/telemetry/decorators.py:30
    cacher.__cache[key] = obj(*args, **kwargs)
  GetAllAvailableBrowsers at tools/telemetry/telemetry/core/browser_finder.py:147
    browser_finder.FindAllAvailableBrowsers(options, device))
  FindAllAvailableBrowsers at tools/telemetry/telemetry/core/backends/chrome/android_browser_finder.py:217
    android_platform = platform.GetPlatformForDevice(device, finder_options)
  GetPlatformForDevice at tools/telemetry/telemetry/core/platform/__init__.py:58
    finder_options))
  CreatePlatformForDevice at tools/telemetry/telemetry/core/platform/android_platform_backend.py:186
    platform_backend = AndroidPlatformBackend(device, finder_options)
  __init__ at tools/telemetry/telemetry/core/platform/android_platform_backend.py:148
    self._device.EnableRoot()
  TimeoutRetryWrapper at build/android/pylib/device/decorators.py:57
    return timeout_retry.Run(impl, timeout, retries)
  Run at build/android/pylib/utils/timeout_retry.py:161
    thread_group.JoinAll(child_thread.GetWatcher())
  JoinAll at build/android/pylib/utils/reraiser_thread.py:143
    self._JoinAll(watcher)
  _JoinAll at build/android/pylib/utils/reraiser_thread.py:130
    thread.ReraiseIfException()
  run at build/android/pylib/utils/reraiser_thread.py:76
    self._ret = self._func(*self._args, **self._kwargs)
  RunOnTimeoutThread at build/android/pylib/utils/timeout_retry.py:150
    ret[0] = func(*args, **kwargs)
  impl at build/android/pylib/device/decorators.py:51
    return f(*args, **kwargs)
  EnableRoot at build/android/pylib/device/device_utils.py:289
    'Cannot enable root in user builds.', str(self))
CommandFailedError: (device: 04f120591b9223e1) Cannot enable root in user builds.

Locals:
  retries : 3
  timeout : 30

Original issue's description:
> [Android] Remove adb_commands from telemetry.
>
> ...because it's an abomination.
>
> BUG=476709
>
> Committed: https://crrev.com/c951c9e158d55d2be18f8226200679aee55f336d
> Cr-Commit-Position: refs/heads/master@{#332538}

TBR=dtu@chromium.org,nednguyen@google.com,primiano@chromium.org,skyostil@chromium.org,sullivan@chromium.org,picksi@chromium.org,zhenw@chromium.org,jbudorick@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=476709

Review URL: https://codereview.chromium.org/1145153005

Cr-Commit-Position: refs/heads/master@{#332560}
2015-06-03 05:42:11 +00:00
c951c9e158 [Android] Remove adb_commands from telemetry.
...because it's an abomination.

BUG=476709

Review URL: https://codereview.chromium.org/1141833003

Cr-Commit-Position: refs/heads/master@{#332538}
2015-06-03 03:23:21 +00:00
4defe37208 [Telemetry] Always printout test's timing info.
BUG=379378

Review URL: https://codereview.chromium.org/1152763005

Cr-Commit-Position: refs/heads/master@{#331676}
2015-05-27 22:44:02 +00:00
fb9823b0bd Revert of Make sure that tracing is always cleaned up for v8_gc_times page_test (patchset id:60001 of https://codereview.chromium.org/1151933005/)
Reason for revert:
I suspect this is causing failures on telemetry_perf_unittests - see https://build.chromium.org/p/chromium.win/builders/XP%20Tests%20%281%29 build  and later

Original issue's description:
> Make sure that tracing is always cleaned up for v8_gc_times page_test
>
> BUG=491104
> CQ_EXTRA_TRYBOTS=tryserver.chromium.perf:linux_perf_bisect;tryserver.chromium.perf:mac_perf_bisect;tryserver.chromium.perf:win_perf_bisect;tryserver.chromium.perf:android_nexus5_perf_bisect
>
> Committed: https://crrev.com/1d1d10c687de9424db5a66a89d179f11784d7ee8
> Cr-Commit-Position: refs/heads/master@{#331590}

TBR=sullivan@chromium.org,rmcilroy@chromium.org,prasadv@chromium.org,nednguyen@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=491104

Review URL: https://codereview.chromium.org/1147093008

Cr-Commit-Position: refs/heads/master@{#331669}
2015-05-27 22:14:13 +00:00
1d1d10c687 Make sure that tracing is always cleaned up for v8_gc_times page_test
BUG=491104
CQ_EXTRA_TRYBOTS=tryserver.chromium.perf:linux_perf_bisect;tryserver.chromium.perf:mac_perf_bisect;tryserver.chromium.perf:win_perf_bisect;tryserver.chromium.perf:android_nexus5_perf_bisect

Review URL: https://codereview.chromium.org/1151933005

Cr-Commit-Position: refs/heads/master@{#331590}
2015-05-27 17:03:21 +00:00
ac496302b1 [Android] Remove more references to and uses of AndroidCommands.
This includes removing most direct references and uses from telemetry.

BUG=267773,476709

Review URL: https://codereview.chromium.org/1132993004

Cr-Commit-Position: refs/heads/master@{#329963}
2015-05-14 22:52:42 +00:00
1f2a81e969 Move user_story.user_story_runner to story.story_runner.
BUG=465594
CQ_EXTRA_TRYBOTS=tryserver.chromium.perf:linux_perf_bisect;tryserver.chromium.perf:mac_perf_bisect;tryserver.chromium.perf:win_perf_bisect;tryserver.chromium.perf:android_nexus5_perf_bisect

Review URL: https://codereview.chromium.org/1103163008

Cr-Commit-Position: refs/heads/master@{#327990}
2015-05-01 22:00:56 +00:00
3b678eae31 [Telemetry] Move TestStreamOutput to unittest_util.
Motivation: when I make benchmark_runner._PrintBenchmarkList a public method,
I want to provide unittest coverage for the method. I would want to reuse the
logic of TestStreamOutput for writing that unittest.

BUG=482090

Review URL: https://codereview.chromium.org/1112773003

Cr-Commit-Position: refs/heads/master@{#327610}
2015-04-29 23:21:08 +00:00
6d62551b30 Move user_story.shared_user_story_state to story.shared_state
BUG=465594

Review URL: https://codereview.chromium.org/1108993004

Cr-Commit-Position: refs/heads/master@{#327596}
2015-04-29 22:07:22 +00:00
77ffa479e2 Roll web-page-replay to 4e4d540a18c099e2ad805696072f95815f313c0e. (attempt 1)
For the full list of changes, see
94d7e2a...4e4d540.

WebPageReplay moved the method has_sni() from certutils to platformsettings,
and renamed it to HasSniSupport(). This CL fixes the one location where
has_sni() is used, and also fixes the stubs.

BUG=477130

Review URL: https://codereview.chromium.org/1087093002

Cr-Commit-Position: refs/heads/master@{#325313}
2015-04-15 21:39:53 +00:00
a9fd08e95f [Telemetry] Change BeginGestureInteraction to CreateGestureInteracion in telemetry/
BUG=475090

Review URL: https://codereview.chromium.org/1088693002

Cr-Commit-Position: refs/heads/master@{#324957}
2015-04-14 00:22:07 +00:00
e40abfc533 Update cloud_storage_stub to handle buckets other than the 3 telemetry defaults.
BUG=467260

Review URL: https://codereview.chromium.org/1053423002

Cr-Commit-Position: refs/heads/master@{#324090}
2015-04-07 19:26:54 +00:00
dtu
fa7987281c [telemetry] Sort imports in Telemetry and its dependents.
As part of the Telemetry public API refactor, I wrote a tool that sorts imports.
The tool will be checked in separately, but here's all the import changes in Telemetry and its dependencies.
It'll be easier to test the refactor tool if we do the import sorting in advance, so it doesn't clutter the diffs for the module moves.

Style guide rule: "Within each grouping, imports should be sorted lexicographically, ignoring case, according to each module's full package path."

BUG=449308
TEST=trybots (tools/telemetry/run_tests; tools/perf/run_tests)

Review URL: https://codereview.chromium.org/1029263003

Cr-Commit-Position: refs/heads/master@{#322211}
2015-03-25 19:46:30 +00:00
3fcda3af70 [Telemetry] Update page_set_smoke_test to check for mix states in page set.
BUG=468085

Review URL: https://codereview.chromium.org/1010773008

Cr-Commit-Position: refs/heads/master@{#321197}
2015-03-18 20:05:44 +00:00
4e937c22de [Telemetry] Remove CheckNoMixedInBetweenLegacyRunMethodsAndRunPageInteractions as crbug.com/418375 is fixed.
BUG=418375

Review URL: https://codereview.chromium.org/1014353002

Cr-Commit-Position: refs/heads/master@{#321156}
2015-03-18 17:16:58 +00:00
c4c9ab99ee [Telemetry] Remove is_smooth flag.
This CL removes the is_smooth flag from Telemetry, and refactors existing tests
and usages on a case-by-case basis to take this into account.

BUG=444697
R=nednguyen,sullivan

Review URL: https://codereview.chromium.org/1013803003

Cr-Commit-Position: refs/heads/master@{#321015}
2015-03-17 23:58:47 +00:00
cd55fdb2cf Refactor serving_dirs with two goals in mind:
1) Move the serving_dir related logic to one place and add some comments to improve hackability and stability for cloud_storage in telemetry.

2) Make serving_dirs available for user stories as part of the refactor to remove page_sets.

This is the second part of https://codereview.chromium.org/794493004/, broken out for reviewer ease.

BUG=454531
BUG=435063

Committed: https://crrev.com/eed596dced7b9e3f7d21c84f695a39b946c62bf2
Cr-Commit-Position: refs/heads/master@{#320523}

Review URL: https://codereview.chromium.org/838253005

Cr-Commit-Position: refs/heads/master@{#320990}
2015-03-17 22:08:41 +00:00
c624e3576c Revert of Refactor serving_dirs. (patchset id:110001 of https://codereview.chromium.org/838253005/)
Reason for revert:
Causing failures on GPU bots

http://build.chromium.org/p/chromium.gpu/builders/Win7%20Release%20%28NVIDIA%29/builds/30080

Original issue's description:
> Refactor serving_dirs with two goals in mind:
>
> 1) Move the serving_dir related logic to one place and add some comments to improve hackability and stability for cloud_storage in telemetry.
>
> 2) Make serving_dirs available for user stories as part of the refactor to remove page_sets.
>
> This is the second part of https://codereview.chromium.org/794493004/, broken out for reviewer ease.
>
> BUG=454531
> BUG=435063
>
> Committed: https://crrev.com/eed596dced7b9e3f7d21c84f695a39b946c62bf2
> Cr-Commit-Position: refs/heads/master@{#320523}

TBR=dtu@chromium.org,sullivan@chromium.org,nednguyen@google.com,chrishenry@google.com,dpranke@chromium.org,aiolos@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=454531

Review URL: https://codereview.chromium.org/1005903004

Cr-Commit-Position: refs/heads/master@{#320543}
2015-03-13 19:07:35 +00:00
eed596dced Refactor serving_dirs with two goals in mind:
1) Move the serving_dir related logic to one place and add some comments to improve hackability and stability for cloud_storage in telemetry.

2) Make serving_dirs available for user stories as part of the refactor to remove page_sets.

This is the second part of https://codereview.chromium.org/794493004/, broken out for reviewer ease.

BUG=454531
BUG=435063

Review URL: https://codereview.chromium.org/838253005

Cr-Commit-Position: refs/heads/master@{#320523}
2015-03-13 17:47:04 +00:00
c12ba21289 Fix system_stub.Restore(), and add a unittest to catch the bug being fixed.
BUG=466415

Review URL: https://codereview.chromium.org/999963002

Cr-Commit-Position: refs/heads/master@{#320385}
2015-03-12 22:06:33 +00:00
3176863a31 [Telemetry] Skip disabled Tests when filtering
BUG=462779

Review URL: https://codereview.chromium.org/968493003

Cr-Commit-Position: refs/heads/master@{#318730}
2015-03-02 19:01:13 +00:00
e97726ddb2 [Telemetry] Pass test_runner environment in local args instead of a global variable
Also adds more fields to environment to narrow the scope of
benchmark and user story set discovery. This should avoid problems
with adding Python files to unrelated directories, and hides PageTests
from external Telemetry benchmark runners like run_gpu_tests.py and
chrome_proxy's run_benchmark.

R=dtu,nednguyen,sullivan,kbr@chromium.org,bolian
BUG=460181
TEST=tools/perf/run_benchmark; content/test/gpu/run_gpu_tests.py; tools/chrome_proxy/run_benchmark  # All return a full and correct test list.

Committed: https://crrev.com/1da5f7f70ea6dc7dd0667ea78637802c76305f5a
Cr-Commit-Position: refs/heads/master@{#318149}

Review URL: https://codereview.chromium.org/942663002

Cr-Commit-Position: refs/heads/master@{#318531}
2015-02-27 22:33:46 +00:00
501f28dee5 Check against .py instead of .pyc
Fix the reason for revert of https://codereview.chromium.org/946473002/

BUG=454531

Review URL: https://codereview.chromium.org/954563002

Cr-Commit-Position: refs/heads/master@{#318497}
2015-02-27 19:54:40 +00:00
68c881e69b Telemetry: Move TimeoutException from util module to exceptions module.
This change helps move the Telemetry framework towards saner exception
handling.

BUG=460625

Review URL: https://codereview.chromium.org/952693003

Cr-Commit-Position: refs/heads/master@{#318349}
2015-02-27 00:35:30 +00:00
f29d783494 Revert of [Telemetry] Pass test_runner environment in local args instead of a global variable (patchset id:160001 of https://codereview.chromium.org/942663002/)
Reason for revert:
crbug.com/462063

Original issue's description:
> [Telemetry] Pass test_runner environment in local args instead of a global variable
>
> Also adds more fields to environment to narrow the scope of
> benchmark and user story set discovery. This should avoid problems
> with adding Python files to unrelated directories, and hides PageTests
> from external Telemetry benchmark runners like run_gpu_tests.py and
> chrome_proxy's run_benchmark.
>
> R=dtu,nednguyen,sullivan,kbr@chromium.org,bolian
> BUG=460181
> TEST=tools/perf/run_benchmark; content/test/gpu/run_gpu_tests.py; tools/chrome_proxy/run_benchmark  # All return a full and correct test list.
>
> Committed: https://crrev.com/1da5f7f70ea6dc7dd0667ea78637802c76305f5a
> Cr-Commit-Position: refs/heads/master@{#318149}

TBR=bolian@chromium.org,dtu@chromium.org,kbr@chromium.org,nednguyen@google.com,sullivan@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=460181

Review URL: https://codereview.chromium.org/955183003

Cr-Commit-Position: refs/heads/master@{#318175}
2015-02-26 02:52:17 +00:00
1da5f7f70e [Telemetry] Pass test_runner environment in local args instead of a global variable
Also adds more fields to environment to narrow the scope of
benchmark and user story set discovery. This should avoid problems
with adding Python files to unrelated directories, and hides PageTests
from external Telemetry benchmark runners like run_gpu_tests.py and
chrome_proxy's run_benchmark.

R=dtu,nednguyen,sullivan,kbr@chromium.org,bolian
BUG=460181
TEST=tools/perf/run_benchmark; content/test/gpu/run_gpu_tests.py; tools/chrome_proxy/run_benchmark  # All return a full and correct test list.

Review URL: https://codereview.chromium.org/942663002

Cr-Commit-Position: refs/heads/master@{#318149}
2015-02-25 23:41:19 +00:00
jam
14042b4980 Revert of Move base_dir to user_story_set, remove file_path. (patchset id:60001 of https://codereview.chromium.org/946473002/)
Reason for revert:
breaks on main waterfall, i.e.
http://build.chromium.org/p/chromium.win/builders/Win%207%20Tests%20x64%20%281%29/builds/21577/steps/telemetry_unittests/logs/stdio

  AssertionError: 'E:\\b\\build\\slave\\Win_7_Tests_x64__1_\\build\\src\\tools\\telemetry\\telemetry\\user_story\\user_story_set_unittest.pyc' != 'E:\\b\\build\\slave\\Win_7_Tests_x64__1_\\build\\src\\tools\\telemetry\\telemetry\\user_story\\user_story_set_unittest.py'

not sure why this fails on main waterfall but not trybots?

Original issue's description:
> Move base_dir to user_story_set, remove file_path.
>
> BUG=454531
>
> Committed: https://crrev.com/65ff7d22f8986ab2832045af09160dc753e40c5f
> Cr-Commit-Position: refs/heads/master@{#317632}

TBR=chrishenry@google.com,dtu@chromium.org,sullivan@chromium.org,nednguyen@google.com,aiolos@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=454531

Review URL: https://codereview.chromium.org/951593003

Cr-Commit-Position: refs/heads/master@{#317665}
2015-02-23 22:20:19 +00:00
9f7bd97f10 Telemetry: Add a functional test for InspectorBackendList.GetTabById().
This CL also exposes the property tabs on the class TabTestCase.

BUG=442546

Review URL: https://codereview.chromium.org/940153002

Cr-Commit-Position: refs/heads/master@{#317662}
2015-02-23 22:11:28 +00:00
65ff7d22f8 Move base_dir to user_story_set, remove file_path.
BUG=454531

Review URL: https://codereview.chromium.org/946473002

Cr-Commit-Position: refs/heads/master@{#317632}
2015-02-23 19:59:33 +00:00
ac997d3fdc Parallelize telemetry unit tests on Android bots
BUG=379378

Review URL: https://codereview.chromium.org/902763002

Cr-Commit-Position: refs/heads/master@{#317621}
2015-02-23 19:35:13 +00:00
b79273f0a3 [Telemetry] Move gpu_timeline metrics to telemetry.web_perf
BUG=439497

Review URL: https://codereview.chromium.org/926833002

Cr-Commit-Position: refs/heads/master@{#316625}
2015-02-17 19:35:24 +00:00
82bfff9ffd [Telemetry] Add comment to page_set_smoke_test. Noop change
Review URL: https://codereview.chromium.org/921283002

Cr-Commit-Position: refs/heads/master@{#316311}
2015-02-13 22:51:57 +00:00
af25c16d02 Revert of Revert of [Telemtry] Move url lists of alexa1-10000 page to a json file. (patchset id:1 of https://codereview.chromium.org/920953003/)
Reason for revert:
Original CL was ok. Failures were most likely due to https://codereview.chromium.org/914303007/ instead.

Original issue's description:
> Revert of [Telemtry] Move url lists of alexa1-10000 page to a json file. (patchset  id:1 of https://codereview.chromium.org/915303002/)
>
> Reason for revert:
> Build broke on many bots:
>
> Example:
> https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%281%29/builds/36194
>
> Running ['E:\\b\\depot_tools\\python276_bin\\python.exe', u'E:\\b\\build\\scripts\\tools\\runit.py', '--show-path', 'E:\\b\\depot_tools\\python276_bin\\python.exe', u'E:\\b\\build\\scripts\\slave\\runtest.py', '--target', 'Release', '--xvfb', '--builder-name', u'Win7 Tests (1)', '--slave-name', u'vm801-m1', '--build-number', '36194', '--build-properties', '{"buildnumber": 36194, "slavename": "vm801-m1", "buildername": "Win7 Tests (1)"}', '--annotate', 'gtest', '--test-type', 'telemetry_unittests', '--run-python-script', 'E:\\b\\build\\slave\\Win7_Tests__1_\\build\\src\\tools\\telemetry\\run_tests', '--browser', 'release', '--retry-limit', '3', '--write-full-results-to', 'c:\\users\\chrome~2\\appdata\\local\\temp\\tmpo3eir6']
> Set PYTHONPATH: E:\b\build\..\build_internal\site_config;E:\b\build\third_party\httplib2\python2;E:\b\build\third_party\zope;E:\b\build\third_party\uritemplate;E:\b\build\third_party\twisted_8_1;E:\b\build\third_party\tempita_0_5;E:\b\build\third_party\swarm_client;E:\b\build\third_party\sqlalchemy_migrate_0_7_1;E:\b\build\third_party\sqlalchemy_0_7_1;E:\b\build\third_party\simplejson;E:\b\build\third_party\setuptools-0.6c11;E:\b\build\third_party\pytz;E:\b\build\third_party\psutils;E:\b\build\third_party\oauth2client;E:\b\build\third_party\mock-1.0.1;E:\b\build\third_party\mock-0.7.2;E:\b\build\third_party\mock-0.6.0;E:\b\build\third_party\markupsafe;E:\b\build\third_party\lighttpd;E:\b\build\third_party\jinja2;E:\b\build\third_party\infra;E:\b\build\third_party\httplib2;E:\b\build\third_party\gsutil;E:\b\build\third_party\google_api_python_client;E:\b\build\third_party\depot_tools_patch;E:\b\build\third_party\depot_tools;E:\b\build\third_party\decorator_3_3_1;E:\b\build\third_party\Crypto;E:\b\build\third_party\coverage-3.7.1;E:\b\build\third_party\cherrypy;E:\b\build\third_party\buildbot_8_4p1;E:\b\build\third_party\buildbot_7_12;E:\b\build\third_party\.svn;E:\b\build\site_config;E:\b\build\scripts;E:\b\build\scripts\release;E:\b\build\third_party;E:\b\build\third_party\requests_1_2_3;E:\b\build_internal\site_config;E:\b\build_internal\symsrc;E:\b\build\slave;E:\b\build\third_party\buildbot_slave_8_4;E:\b\build\third_party\twisted_10_2;
>   File "E:\b\depot_tools\python276_bin\python.exe", line 1
> SyntaxError: Non-ASCII character '\x90' in file E:\b\depot_tools\python276_bin\python.exe on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
> Command ['E:\\b\\depot_tools\\python276_bin\\python.exe', u'E:\\b\\build\\scripts\\tools\\runit.py', '--show-path', 'E:\\b\\depot_tools\\python276_bin\\python.exe', u'E:\\b\\build\\scripts\\slave\\runtest.py', '--target', 'Release', '--xvfb', '--builder-name', u'Win7 Tests (1)', '--slave-name', u'vm801-m1', '--build-number', '36194', '--build-properties', '{"buildnumber": 36194, "slavename": "vm801-m1", "buildername": "Win7 Tests (1)"}', '--annotate', 'gtest', '--test-type', 'telemetry_unittests', '--run-python-script', 'E:\\b\\build\\slave\\Win7_Tests__1_\\build\\src\\tools\\telemetry\\run_tests', '--browser', 'release', '--retry-limit', '3', '--write-full-results-to', 'c:\\users\\chrome~2\\appdata\\local\\temp\\tmpo3eir6'] returned exit code 1
> Traceback (most recent call last):
>   File "E:\b\build\slave\Win7_Tests__1_\build\src\testing\scripts\telemetry_unittests.py", line 54, in <module>
>     sys.exit(common.run_script(sys.argv[1:], funcs))
>   File "E:\b\build\slave\Win7_Tests__1_\build\src\testing\scripts\common.py", line 49, in run_script
>     return args.func(args)
>   File "E:\b\build\slave\Win7_Tests__1_\build\src\testing\scripts\telemetry_unittests.py", line 31, in main_run
>     results = json.load(f)
>   File "E:\b\depot_tools\python276_bin\lib\json\__init__.py", line 290, in load
>
> @@@STEP_CURSOR telemetry_unittests@@@
>
> Original issue's description:
> > [Telemtry] Move url lists of alexa1-10000 page to a json file.
> >
> > Existing implementation of alexa1-10000 embeds the huge url list in
> > the python file, which is a terrible. It makes it super hard to navigate
> > through the file, or review its content, and make it harder to update the
> > alexa1-10000 pages if needed.
> >
> > Committed: https://crrev.com/fec4b0793f9d7eb6bef66f83687f10e6391dff62
> > Cr-Commit-Position: refs/heads/master@{#316012}
>
> TBR=sullivan@chromium.org,dtu@chromium.org,nednguyen@google.com
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
>
> Committed: https://crrev.com/c0cee90848513819e5a80c38f0337e56f611e02f
> Cr-Commit-Position: refs/heads/master@{#316049}

TBR=sullivan@chromium.org,dtu@chromium.org,nednguyen@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true

Review URL: https://codereview.chromium.org/924513004

Cr-Commit-Position: refs/heads/master@{#316055}
2015-02-12 21:39:02 +00:00
c0cee90848 Revert of [Telemtry] Move url lists of alexa1-10000 page to a json file. (patchset id:1 of https://codereview.chromium.org/915303002/)
Reason for revert:
Build broke on many bots:

Example:
https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%281%29/builds/36194

Running ['E:\\b\\depot_tools\\python276_bin\\python.exe', u'E:\\b\\build\\scripts\\tools\\runit.py', '--show-path', 'E:\\b\\depot_tools\\python276_bin\\python.exe', u'E:\\b\\build\\scripts\\slave\\runtest.py', '--target', 'Release', '--xvfb', '--builder-name', u'Win7 Tests (1)', '--slave-name', u'vm801-m1', '--build-number', '36194', '--build-properties', '{"buildnumber": 36194, "slavename": "vm801-m1", "buildername": "Win7 Tests (1)"}', '--annotate', 'gtest', '--test-type', 'telemetry_unittests', '--run-python-script', 'E:\\b\\build\\slave\\Win7_Tests__1_\\build\\src\\tools\\telemetry\\run_tests', '--browser', 'release', '--retry-limit', '3', '--write-full-results-to', 'c:\\users\\chrome~2\\appdata\\local\\temp\\tmpo3eir6']
Set PYTHONPATH: E:\b\build\..\build_internal\site_config;E:\b\build\third_party\httplib2\python2;E:\b\build\third_party\zope;E:\b\build\third_party\uritemplate;E:\b\build\third_party\twisted_8_1;E:\b\build\third_party\tempita_0_5;E:\b\build\third_party\swarm_client;E:\b\build\third_party\sqlalchemy_migrate_0_7_1;E:\b\build\third_party\sqlalchemy_0_7_1;E:\b\build\third_party\simplejson;E:\b\build\third_party\setuptools-0.6c11;E:\b\build\third_party\pytz;E:\b\build\third_party\psutils;E:\b\build\third_party\oauth2client;E:\b\build\third_party\mock-1.0.1;E:\b\build\third_party\mock-0.7.2;E:\b\build\third_party\mock-0.6.0;E:\b\build\third_party\markupsafe;E:\b\build\third_party\lighttpd;E:\b\build\third_party\jinja2;E:\b\build\third_party\infra;E:\b\build\third_party\httplib2;E:\b\build\third_party\gsutil;E:\b\build\third_party\google_api_python_client;E:\b\build\third_party\depot_tools_patch;E:\b\build\third_party\depot_tools;E:\b\build\third_party\decorator_3_3_1;E:\b\build\third_party\Crypto;E:\b\build\third_party\coverage-3.7.1;E:\b\build\third_party\cherrypy;E:\b\build\third_party\buildbot_8_4p1;E:\b\build\third_party\buildbot_7_12;E:\b\build\third_party\.svn;E:\b\build\site_config;E:\b\build\scripts;E:\b\build\scripts\release;E:\b\build\third_party;E:\b\build\third_party\requests_1_2_3;E:\b\build_internal\site_config;E:\b\build_internal\symsrc;E:\b\build\slave;E:\b\build\third_party\buildbot_slave_8_4;E:\b\build\third_party\twisted_10_2;
  File "E:\b\depot_tools\python276_bin\python.exe", line 1
SyntaxError: Non-ASCII character '\x90' in file E:\b\depot_tools\python276_bin\python.exe on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
Command ['E:\\b\\depot_tools\\python276_bin\\python.exe', u'E:\\b\\build\\scripts\\tools\\runit.py', '--show-path', 'E:\\b\\depot_tools\\python276_bin\\python.exe', u'E:\\b\\build\\scripts\\slave\\runtest.py', '--target', 'Release', '--xvfb', '--builder-name', u'Win7 Tests (1)', '--slave-name', u'vm801-m1', '--build-number', '36194', '--build-properties', '{"buildnumber": 36194, "slavename": "vm801-m1", "buildername": "Win7 Tests (1)"}', '--annotate', 'gtest', '--test-type', 'telemetry_unittests', '--run-python-script', 'E:\\b\\build\\slave\\Win7_Tests__1_\\build\\src\\tools\\telemetry\\run_tests', '--browser', 'release', '--retry-limit', '3', '--write-full-results-to', 'c:\\users\\chrome~2\\appdata\\local\\temp\\tmpo3eir6'] returned exit code 1
Traceback (most recent call last):
  File "E:\b\build\slave\Win7_Tests__1_\build\src\testing\scripts\telemetry_unittests.py", line 54, in <module>
    sys.exit(common.run_script(sys.argv[1:], funcs))
  File "E:\b\build\slave\Win7_Tests__1_\build\src\testing\scripts\common.py", line 49, in run_script
    return args.func(args)
  File "E:\b\build\slave\Win7_Tests__1_\build\src\testing\scripts\telemetry_unittests.py", line 31, in main_run
    results = json.load(f)
  File "E:\b\depot_tools\python276_bin\lib\json\__init__.py", line 290, in load

@@@STEP_CURSOR telemetry_unittests@@@

Original issue's description:
> [Telemtry] Move url lists of alexa1-10000 page to a json file.
>
> Existing implementation of alexa1-10000 embeds the huge url list in
> the python file, which is a terrible. It makes it super hard to navigate
> through the file, or review its content, and make it harder to update the
> alexa1-10000 pages if needed.
>
> Committed: https://crrev.com/fec4b0793f9d7eb6bef66f83687f10e6391dff62
> Cr-Commit-Position: refs/heads/master@{#316012}

TBR=sullivan@chromium.org,dtu@chromium.org,nednguyen@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true

Review URL: https://codereview.chromium.org/920953003

Cr-Commit-Position: refs/heads/master@{#316049}
2015-02-12 21:21:11 +00:00
fec4b0793f [Telemtry] Move url lists of alexa1-10000 page to a json file.
Existing implementation of alexa1-10000 embeds the huge url list in
the python file, which is a terrible. It makes it super hard to navigate
through the file, or review its content, and make it harder to update the
alexa1-10000 pages if needed.

Review URL: https://codereview.chromium.org/915303002

Cr-Commit-Position: refs/heads/master@{#316012}
2015-02-12 18:48:17 +00:00
30c0674334 Install android test certificate authority when host supports SNI
(pyOpenSSL 0.13 or greater).

This relands https://crrev.com/855603002/,
"Roll Web Page Replay to pick-up HTTPS certificate fixes," and
picks-up one additional Web Page Replay change to test for SNI support.

BUG=431686

Review URL: https://codereview.chromium.org/903153002

Cr-Commit-Position: refs/heads/master@{#315333}
2015-02-09 17:30:04 +00:00
56d974ff8e Revert of Revert of [Telemetry] Fix WPR files not being downloaded when required. (patchset id:1 of https://codereview.chromium.org/852863003/)
Reason for revert:
Reverting my revert because it didn't fix the flake! Churn, churn, churn...

Original issue's description:
> Revert of [Telemetry] Fix WPR files not being downloaded when required. (patchset  id:60001 of https://codereview.chromium.org/834173006/)
>
> Reason for revert:
> Possible suspect for newly introduced telemetry unit test flake, e.g.:
>
> https://build.chromium.org/p/chromium.mac/builders/Mac10.9%20Tests%20%28dbg%29/builds/1965/steps/telemetry_unittests/logs/stdio
>
> Reverting to see what happens.
>
> Original issue's description:
> > [Telemetry] Fix WPR files not being downloaded when required.
> >
> > BUG=
> >
> > Committed: https://crrev.com/672e7140315568e9bfc442770a23fee66e045cb2
> > Cr-Commit-Position: refs/heads/master@{#311496}
>
> TBR=nednguyen@google.com,aiolos@chromium.org,lizeb@chromium.org
> NOTREECHECKS=true
> NOTRY=true
> BUG=
>
> Committed: https://crrev.com/6041d4206970522a18f49afb1ba069651dc22ba2
> Cr-Commit-Position: refs/heads/master@{#311551}

TBR=nednguyen@google.com,aiolos@chromium.org,lizeb@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=

Review URL: https://codereview.chromium.org/794363005

Cr-Commit-Position: refs/heads/master@{#311588}
2015-01-15 00:36:58 +00:00
6041d42069 Revert of [Telemetry] Fix WPR files not being downloaded when required. (patchset id:60001 of https://codereview.chromium.org/834173006/)
Reason for revert:
Possible suspect for newly introduced telemetry unit test flake, e.g.:

https://build.chromium.org/p/chromium.mac/builders/Mac10.9%20Tests%20%28dbg%29/builds/1965/steps/telemetry_unittests/logs/stdio

Reverting to see what happens.

Original issue's description:
> [Telemetry] Fix WPR files not being downloaded when required.
>
> BUG=
>
> Committed: https://crrev.com/672e7140315568e9bfc442770a23fee66e045cb2
> Cr-Commit-Position: refs/heads/master@{#311496}

TBR=nednguyen@google.com,aiolos@chromium.org,lizeb@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=

Review URL: https://codereview.chromium.org/852863003

Cr-Commit-Position: refs/heads/master@{#311551}
2015-01-14 22:10:45 +00:00
672e714031 [Telemetry] Fix WPR files not being downloaded when required.
BUG=

Review URL: https://codereview.chromium.org/834173006

Cr-Commit-Position: refs/heads/master@{#311496}
2015-01-14 16:58:03 +00:00
0934df74b3 Move the download out of initialization so we can correctly throw errors while
still supporting UserStories using local data.

Just log warnings when trying to download archives without a specified bucket
or where the user doesn't have permission to access the archive's bucket but
has a local copy of the archive. Raises cloud storage errors when there is no
local copy of the archive and the user doesn't have permission to access the
archive's bucket.

Also removes the ignore_archive parameter since it is only used in the smoke
test and doesn't provide any information that can't be gleaned from the
UserStory not having a bucket.

BUG=

Review URL: https://codereview.chromium.org/794493004

Cr-Commit-Position: refs/heads/master@{#310542}
2015-01-08 18:42:55 +00:00
d0fa8f06d5 Add support in Telemetry for specifying exact Android APK
Prior to this commit, you could not specify a path to an Android APK to run a
Telemetry test against. Desktop was the only platform that supported it.
This commit provides support support for running reference builds for the
Android platform in buildbot.

To run a Telemetry test against an exact APK, you can run the following
in tools/perf:

./run_benchmark --browser=exact --browser-executable=/path/to/my.apk benchmark

This also adds myself (mstrum@amazon.com) to AUTHORS.

R=tonyg@chromium.org
BUG=435179

Review URL: https://codereview.chromium.org/745733002

Cr-Commit-Position: refs/heads/master@{#310346}
2015-01-07 20:10:53 +00:00
f1f7920fa6 [Telemetry] Rename RunSmoothness to RunPageInteractions
TBR=tonyg@chromium.org, ernstm@chromium.org
BUG=418375

Review URL: https://codereview.chromium.org/826113003

Cr-Commit-Position: refs/heads/master@{#309750}
2014-12-30 06:51:25 +00:00
1ea2aacffc Move make_javascript_deterministic to UserStory.
BUG=439512,439700

Review URL: https://codereview.chromium.org/806513002

Cr-Commit-Position: refs/heads/master@{#308707}
2014-12-17 01:18:53 +00:00
a172a0945e Replaced @benchmark.Enabled/Disabled and @test.Enabled/Disabled with @decorators.Enabled/Disabled in all unit tests
BUG=

Review URL: https://codereview.chromium.org/797003002

Cr-Commit-Position: refs/heads/master@{#308607}
2014-12-16 17:39:48 +00:00
0af9f48270 Rename AddPage -> AddUserStory in tools/telemetry.
BUG=439512

Review URL: https://codereview.chromium.org/805613002

Cr-Commit-Position: refs/heads/master@{#308276}
2014-12-13 16:49:10 +00:00
68084e8474 Stop execution for unexpected exceptions like KeyboardInterrupt...
We "white list" some exceptions which user story runner can continue running
the rest of user stories even if they are raised during the test run.

Those exceptions are:
page_test.Failure
util.TimeoutException
exceptions.LoginException
exceptions.ProfilingException
page_action.PageActionNotSupported
exceptions.AppCrashException (except if this is thrown inside
shared_user_story_state.state.TearDownState(), which indicates a failure of
recovering the test state)

BUG=437735

Review URL: https://codereview.chromium.org/755323012

Cr-Commit-Position: refs/heads/master@{#308258}
2014-12-13 08:13:55 +00:00
c06ac51276 Move t.p.page_set_archive_info.PageSetArchiveInfo to t.wpr.archive_info.WprArchiveInfo.
BUG=439700

Review URL: https://codereview.chromium.org/765203003

Cr-Commit-Position: refs/heads/master@{#307540}
2014-12-09 20:39:13 +00:00
743c93574d Move WPR-related attributes to UserStorySet.
Make wpr_archive_info property effectively immutable.
Move cloud storage bucket validation logic to page_set_archive_info module.

BUG=439512

Review URL: https://codereview.chromium.org/779383002

Cr-Commit-Position: refs/heads/master@{#307148}
2014-12-06 03:09:07 +00:00
ce8d7384eb [Telemetry] Reland increased unittest parallelism everywhere except XP.
XP was the only platform that hung last time we tried this and the other
platforms sped up considerably.

BUG=417812

Review URL: https://codereview.chromium.org/752393005

Cr-Commit-Position: refs/heads/master@{#307139}
2014-12-06 01:40:23 +00:00
5a1a8edb92 Remove startup_url from PageSet, we can now only specify startup_url on a Page.
Also make startup_url immutable.

BUG=439512

Review URL: https://codereview.chromium.org/782033002

Cr-Commit-Position: refs/heads/master@{#307116}
2014-12-05 23:44:22 +00:00