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

Issue 659293003: Switch telemetry over to use typ to run the unit tests. (Closed)

Created:
6 years, 2 months ago by Dirk Pranke
Modified:
6 years, 1 month ago
Reviewers:
tonyg, achuithb, dtu, nduca
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@rev_typ_v086
Project:
chromium
Visibility:
Public.

Description

Switch telemetry over to use typ to run the unit tests. Using typ allows us to run the tests in parallel and share the logic for parsing the results and uploading them to the flakiness dashboard with other python test steps. R=dtu@chromium.org, tonyg@chromium.org, nduca@chromium.org BUG=402172, 388256 Committed: https://crrev.com/3e7c2a6ee80e05fc6b8090bee850c40b8a2a3810 Cr-Commit-Position: refs/heads/master@{#302570}

Patch Set 1 #

Total comments: 6

Patch Set 2 : re-enable decorator unittests and other review feedback #

Total comments: 1

Patch Set 3 : update w/ chromeos wrapper changes #

Patch Set 4 : fix typos #

Patch Set 5 : fix how we restrict jobs #

Total comments: 6

Patch Set 6 : update bootstrap_deps, catch keyboardinterrupt #

Patch Set 7 : merge to HEAD #

Patch Set 8 : merge to {#302509} #

Patch Set 9 : fix merge error in browser_test_case #

Unified diffs Side-by-side diffs Delta from patch set Stats (+302 lines, -510 lines) Patch
M tools/perf/run_tests View 1 chunk +14 lines, -9 lines 0 comments Download
M tools/telemetry/PRESUBMIT.py View 1 chunk +3 lines, -1 line 0 comments Download
M tools/telemetry/bootstrap_deps View 1 2 3 4 5 1 chunk +17 lines, -30 lines 0 comments Download
M tools/telemetry/run_tests View 1 chunk +14 lines, -8 lines 0 comments Download
M tools/telemetry/telemetry/decorators.py View 1 3 chunks +63 lines, -15 lines 0 comments Download
M tools/telemetry/telemetry/unittest/browser_test_case.py View 1 2 3 4 5 6 7 8 1 chunk +33 lines, -12 lines 0 comments Download
D tools/telemetry/telemetry/unittest/json_results.py View 1 chunk +0 lines, -247 lines 0 comments Download
M tools/telemetry/telemetry/unittest/run_chromeos_tests.py View 1 2 3 4 5 6 2 chunks +18 lines, -26 lines 0 comments Download
M tools/telemetry/telemetry/unittest/run_tests.py View 1 2 3 4 5 4 chunks +114 lines, -143 lines 0 comments Download
M tools/telemetry/telemetry/unittest/run_tests_unittest.py View 1 2 chunks +18 lines, -18 lines 0 comments Download
M tools/telemetry/telemetry/web_perf/timeline_based_measurement_unittest.py View 1 2 3 4 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 32 (9 generated)
tonyg
lg2m, but deferring full review to dtu https://codereview.chromium.org/659293003/diff/1/tools/telemetry/telemetry/core/backends/chrome/inspector_network_unittest.py File tools/telemetry/telemetry/core/backends/chrome/inspector_network_unittest.py (right): https://codereview.chromium.org/659293003/diff/1/tools/telemetry/telemetry/core/backends/chrome/inspector_network_unittest.py#newcode72 tools/telemetry/telemetry/core/backends/chrome/inspector_network_unittest.py:72: def testCacheableHTTPResponse(self): ...
6 years, 2 months ago (2014-10-21 23:31:22 UTC) #2
Dirk Pranke
https://codereview.chromium.org/659293003/diff/1/tools/telemetry/telemetry/core/backends/chrome/inspector_network_unittest.py File tools/telemetry/telemetry/core/backends/chrome/inspector_network_unittest.py (right): https://codereview.chromium.org/659293003/diff/1/tools/telemetry/telemetry/core/backends/chrome/inspector_network_unittest.py#newcode72 tools/telemetry/telemetry/core/backends/chrome/inspector_network_unittest.py:72: def testCacheableHTTPResponse(self): On 2014/10/21 23:31:22, tonyg wrote: > This ...
6 years, 2 months ago (2014-10-22 01:16:10 UTC) #3
Dirk Pranke
Okay, updated with review feedback; Dave, can you please take a look? (Tony feel free ...
6 years, 2 months ago (2014-10-24 01:15:26 UTC) #5
tonyg
lgtm https://codereview.chromium.org/659293003/diff/40001/tools/telemetry/telemetry/decorators.py File tools/telemetry/telemetry/decorators.py (right): https://codereview.chromium.org/659293003/diff/40001/tools/telemetry/telemetry/decorators.py#newcode95 tools/telemetry/telemetry/decorators.py:95: # TODO(dpranke): Remove if we don't need this. ...
6 years, 1 month ago (2014-10-27 17:45:11 UTC) #6
achuithb
Dirk: fyi, cros runs telemetry unit tests like so: https://cs.corp.google.com/#chromeos_public/src/third_party/autotest/files/client/site_tests/telemetry_UnitTests/telemetry_UnitTests.py We'll need to re-do this ...
6 years, 1 month ago (2014-10-27 21:11:34 UTC) #8
Dirk Pranke
On 2014/10/27 21:11:34, achuithb wrote: > Dirk: fyi, cros runs telemetry unit tests like so: ...
6 years, 1 month ago (2014-10-27 21:52:38 UTC) #9
achuithb
On 2014/10/27 21:52:38, Dirk Pranke wrote: > On 2014/10/27 21:11:34, achuithb wrote: > > Dirk: ...
6 years, 1 month ago (2014-10-27 22:29:43 UTC) #10
achuithb
On 2014/10/27 22:29:43, achuithb wrote: > On 2014/10/27 21:52:38, Dirk Pranke wrote: > > On ...
6 years, 1 month ago (2014-10-27 22:31:37 UTC) #11
Dirk Pranke
On 2014/10/27 22:29:43, achuithb wrote: > Is it possible to prepare a patch, which we ...
6 years, 1 month ago (2014-10-27 22:32:02 UTC) #12
achuithb
On 2014/10/27 22:32:02, Dirk Pranke wrote: > On 2014/10/27 22:29:43, achuithb wrote: > > Is ...
6 years, 1 month ago (2014-10-27 23:02:51 UTC) #13
Dirk Pranke
Achuith, can you take a look at the diffs in patchset #3 and make sure ...
6 years, 1 month ago (2014-10-28 01:56:15 UTC) #14
achuithb
On 2014/10/28 01:56:15, Dirk Pranke wrote: > Achuith, can you take a look at the ...
6 years, 1 month ago (2014-10-28 06:53:51 UTC) #15
achuithb
https://codereview.chromium.org/659293003/diff/100001/tools/telemetry/telemetry/unittest/run_tests.py File tools/telemetry/telemetry/unittest/run_tests.py (right): https://codereview.chromium.org/659293003/diff/100001/tools/telemetry/telemetry/unittest/run_tests.py#newcode14 tools/telemetry/telemetry/unittest/run_tests.py:14: util.AddDirToPythonPath(util.GetChromiumSrcDir(), 'third_party', 'typ') You need to add this to ...
6 years, 1 month ago (2014-10-29 19:42:02 UTC) #16
Dirk Pranke
https://codereview.chromium.org/659293003/diff/100001/tools/telemetry/telemetry/unittest/run_tests.py File tools/telemetry/telemetry/unittest/run_tests.py (right): https://codereview.chromium.org/659293003/diff/100001/tools/telemetry/telemetry/unittest/run_tests.py#newcode14 tools/telemetry/telemetry/unittest/run_tests.py:14: util.AddDirToPythonPath(util.GetChromiumSrcDir(), 'third_party', 'typ') On 2014/10/29 19:42:02, achuithb wrote: > ...
6 years, 1 month ago (2014-10-29 19:47:19 UTC) #17
achuithb
https://codereview.chromium.org/659293003/diff/100001/tools/telemetry/telemetry/unittest/run_tests.py File tools/telemetry/telemetry/unittest/run_tests.py (right): https://codereview.chromium.org/659293003/diff/100001/tools/telemetry/telemetry/unittest/run_tests.py#newcode14 tools/telemetry/telemetry/unittest/run_tests.py:14: util.AddDirToPythonPath(util.GetChromiumSrcDir(), 'third_party', 'typ') On 2014/10/29 19:47:18, Dirk Pranke wrote: ...
6 years, 1 month ago (2014-10-29 19:57:30 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/659293003/120002
6 years, 1 month ago (2014-11-03 22:54:59 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/24788) chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/21894) linux_chromium_compile_dbg_32 ...
6 years, 1 month ago (2014-11-03 23:02:00 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/659293003/150001
6 years, 1 month ago (2014-11-03 23:19:51 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/659293003/150001
6 years, 1 month ago (2014-11-03 23:19:52 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/659293003/170001
6 years, 1 month ago (2014-11-04 03:01:33 UTC) #29
commit-bot: I haz the power
Committed patchset #9 (id:170001)
6 years, 1 month ago (2014-11-04 04:00:15 UTC) #30
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/3e7c2a6ee80e05fc6b8090bee850c40b8a2a3810 Cr-Commit-Position: refs/heads/master@{#302570}
6 years, 1 month ago (2014-11-04 04:00:49 UTC) #31
tzik
6 years, 1 month ago (2014-11-04 05:03:30 UTC) #32
Message was sent while issue was closed.
A revert of this CL (patchset #9 id:170001) has been created in
https://codereview.chromium.org/700703003/ by tzik@chromium.org.

The reason for reverting is: This CL causes telemetry_perf_unittests failure:
http://build.chromium.org/p/chromium.linux/buildstatus?builder=Linux%20Tests&...
http://build.chromium.org/p/chromium.mac/buildstatus?builder=Mac%2010.6%20Tes...

Its stack trace was:
Traceback (most recent call last):
  <module> at tools/telemetry/telemetry/unittest/run_tests.py:179
    RunTestsCommand.main()
  main at tools/telemetry/telemetry/unittest/run_tests.py:85
    return obj.Run(options)
  Run at tools/telemetry/telemetry/unittest/run_tests.py:126
    ret, _, _ = runner.run()
  run at third_party/typ/typ/runner.py:187
    upload_ret = self._upload(full_results)
  _upload at third_party/typ/typ/runner.py:599
    full_results)
  make_upload_request at third_party/typ/typ/json_results.py:113
    content_type, data = _encode_multipart_form_data(attrs, full_results)
  _encode_multipart_form_data at third_party/typ/typ/json_results.py:183
    body = CRLF.join(lines)
TypeError: sequence item 3: expected string, NoneType found
.

Powered by Google App Engine
This is Rietveld 408576698