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

Issue 14988009: First cut of testing infrastructure for recipes. (Closed)

Created:
7 years, 7 months ago by iannucci
Modified:
7 years, 7 months ago
CC:
chromium-reviews, cmp-cc_chromium.org, ilevy-cc_chromium.org, xusydoc+watch_chromium.org, kjellander+cc_chromium.org
Visibility:
Public.

Description

First cut of testing infrastructure for recipes. R=agable@chromium.org BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=200078

Patch Set 1 #

Patch Set 2 : Add coverage to third_party. The C module is a speed-only optimization. #

Total comments: 20

Patch Set 3 : Fix presubmit and make test api more accurate #

Patch Set 4 : Address comments #

Total comments: 6

Patch Set 5 : Refactor magic a bit #

Patch Set 6 : DEVNULLLLL!!!! #

Patch Set 7 : Pylinting #

Total comments: 5

Patch Set 8 : Add comment #

Total comments: 11

Patch Set 9 : nitfixen #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11555 lines, -64 lines) Patch
M PRESUBMIT.py View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M scripts/slave/annotated_checkout.py View 1 2 3 8 chunks +26 lines, -8 lines 0 comments Download
M scripts/slave/annotated_run.py View 1 2 3 4 5 6 7 8 9 chunks +73 lines, -48 lines 0 comments Download
M scripts/slave/recipe_util.py View 1 2 3 4 5 6 7 8 2 chunks +34 lines, -0 lines 0 comments Download
M scripts/slave/recipes/gatekeeper.py View 1 chunk +1 line, -1 line 0 comments Download
A + scripts/slave/recipes_test/gatekeeper.py View 1 chunk +3 lines, -9 lines 0 comments Download
A scripts/slave/recipes_test/gatekeeper.basic.expected View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
A scripts/slave/recipes_test/run_presubmit.py View 1 chunk +23 lines, -0 lines 0 comments Download
A scripts/slave/recipes_test/run_presubmit.blink_bare.expected View 1 2 3 4 1 chunk +44 lines, -0 lines 0 comments Download
A scripts/slave/recipes_test/run_presubmit.chromium.expected View 1 2 3 4 1 chunk +44 lines, -0 lines 0 comments Download
A scripts/slave/recipes_test/run_presubmit.tools_build.expected View 1 2 3 4 1 chunk +82 lines, -0 lines 0 comments Download
A scripts/slave/recipes_test/toolkit.py View 1 chunk +12 lines, -0 lines 0 comments Download
A scripts/slave/recipes_test/toolkit.basic.expected View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A scripts/slave/unittests/recipes_test.py View 1 2 3 4 5 6 1 chunk +202 lines, -0 lines 0 comments Download
M scripts/slave/unittests/test_env.py View 1 1 chunk +1 line, -0 lines 0 comments Download
A third_party/coverage-3.6/AUTHORS.txt View 1 1 chunk +41 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/CHANGES.txt View 1 1 chunk +943 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/MANIFEST.in View 1 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/PKG-INFO View 1 1 chunk +38 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/README.google View 1 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/README.txt View 1 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage.egg-info/PKG-INFO View 1 1 chunk +38 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage.egg-info/SOURCES.txt View 1 1 chunk +237 lines, -0 lines 0 comments Download
A + third_party/coverage-3.6/coverage.egg-info/dependency_links.txt View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A third_party/coverage-3.6/coverage.egg-info/entry_points.txt View 1 1 chunk +5 lines, -0 lines 0 comments Download
A + third_party/coverage-3.6/coverage.egg-info/not-zip-safe View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A third_party/coverage-3.6/coverage.egg-info/top_level.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/__init__.py View 1 1 chunk +120 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/__main__.py View 1 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/annotate.py View 1 1 chunk +101 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/backward.py View 1 1 chunk +147 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/bytecode.py View 1 1 chunk +91 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/cmdline.py View 1 1 chunk +730 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/codeunit.py View 1 1 chunk +145 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/collector.py View 1 1 chunk +340 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/config.py View 1 1 chunk +211 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/control.py View 1 1 chunk +720 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/data.py View 1 1 chunk +270 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/execfile.py View 1 1 chunk +138 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/files.py View 1 1 chunk +289 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/fullcoverage/encodings.py View 1 1 chunk +57 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/html.py View 1 1 chunk +367 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/htmlfiles/coverage_html.js View 1 1 chunk +376 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/htmlfiles/index.html View 1 1 chunk +104 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/htmlfiles/jquery-1.4.3.min.js View 1 1 chunk +166 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/htmlfiles/jquery.hotkeys.js View 1 1 chunk +99 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/htmlfiles/jquery.isonscreen.js View 1 1 chunk +53 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/htmlfiles/jquery.tablesorter.min.js View 1 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/htmlfiles/keybd_closed.png View 1 Binary file 0 comments Download
A third_party/coverage-3.6/coverage/htmlfiles/keybd_open.png View 1 Binary file 0 comments Download
A third_party/coverage-3.6/coverage/htmlfiles/pyfile.html View 1 1 chunk +90 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/htmlfiles/style.css View 1 1 chunk +300 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/misc.py View 1 1 chunk +159 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/parser.py View 1 1 chunk +662 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/phystokens.py View 1 1 chunk +206 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/report.py View 1 1 chunk +92 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/results.py View 1 1 chunk +254 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/summary.py View 1 1 chunk +86 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/templite.py View 1 1 chunk +166 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/tracer.c View 1 1 chunk +730 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/version.py View 1 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/coverage/xmlreport.py View 1 1 chunk +150 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/doc/api.rst View 1 1 chunk +47 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/doc/branch.rst View 1 1 chunk +120 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/doc/changes.rst View 1 1 chunk +629 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/doc/cmd.rst View 1 1 chunk +365 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/doc/config.rst View 1 1 chunk +198 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/doc/contributing.rst View 1 1 chunk +164 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/doc/excluding.rst View 1 1 chunk +105 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/doc/faq.rst View 1 1 chunk +116 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/doc/index.rst View 1 1 chunk +171 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/doc/install.rst View 1 1 chunk +80 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/doc/source.rst View 1 1 chunk +74 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/doc/subprocess.rst View 1 1 chunk +66 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/doc/trouble.rst View 1 1 chunk +88 lines, -0 lines 0 comments Download
A third_party/coverage-3.6/requirements.txt View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
iannucci
7 years, 7 months ago (2013-05-10 09:24:01 UTC) #1
iannucci
So there's a catch. Right now the tests require you to `pip install coverage`. I'd ...
7 years, 7 months ago (2013-05-10 09:27:06 UTC) #2
iannucci
So there's a catch. Right now the tests require you to `pip install coverage`. I'd ...
7 years, 7 months ago (2013-05-10 09:27:06 UTC) #3
iannucci
On 2013/05/10 09:27:06, iannucci wrote: > So there's a catch. Right now the tests require ...
7 years, 7 months ago (2013-05-10 09:30:30 UTC) #4
Vadim Shtayura
There's more and more magic in recipes framework... https://codereview.chromium.org/14988009/diff/4002/scripts/slave/annotated_checkout.py File scripts/slave/annotated_checkout.py (right): https://codereview.chromium.org/14988009/diff/4002/scripts/slave/annotated_checkout.py#newcode182 scripts/slave/annotated_checkout.py:182: def ...
7 years, 7 months ago (2013-05-11 00:33:32 UTC) #5
iannucci
PTAL https://chromiumcodereview.appspot.com/14988009/diff/4002/scripts/slave/annotated_checkout.py File scripts/slave/annotated_checkout.py (right): https://chromiumcodereview.appspot.com/14988009/diff/4002/scripts/slave/annotated_checkout.py#newcode182 scripts/slave/annotated_checkout.py:182: def setup(self, *args, **kwargs): On 2013/05/11 00:33:32, Vadim ...
7 years, 7 months ago (2013-05-11 04:12:27 UTC) #6
Isaac (away)
Drive by comments, hope that's OK. https://codereview.chromium.org/14988009/diff/15001/scripts/slave/annotated_checkout.py File scripts/slave/annotated_checkout.py (right): https://codereview.chromium.org/14988009/diff/15001/scripts/slave/annotated_checkout.py#newcode241 scripts/slave/annotated_checkout.py:241: stream = StringIO.StringIO() ...
7 years, 7 months ago (2013-05-12 09:24:56 UTC) #7
iannucci
PTAL. I refactored the magic somewhat. Should be much more readable now :) https://chromiumcodereview.appspot.com/14988009/diff/15001/scripts/slave/annotated_checkout.py File ...
7 years, 7 months ago (2013-05-14 04:31:35 UTC) #8
Isaac (away)
https://chromiumcodereview.appspot.com/14988009/diff/15001/scripts/slave/annotated_run.py File scripts/slave/annotated_run.py (right): https://chromiumcodereview.appspot.com/14988009/diff/15001/scripts/slave/annotated_run.py#newcode244 scripts/slave/annotated_run.py:244: proc.communicate('') On 2013/05/14 04:31:35, iannucci wrote: > On 2013/05/12 ...
7 years, 7 months ago (2013-05-14 10:49:20 UTC) #9
Mike Stip (use stip instead)
few comments, other than that lg2m. do you still need to pip install, or are ...
7 years, 7 months ago (2013-05-14 18:01:32 UTC) #10
iannucci
On 2013/05/14 10:49:20, Isaac wrote: > https://chromiumcodereview.appspot.com/14988009/diff/15001/scripts/slave/annotated_run.py > File scripts/slave/annotated_run.py (right): > > https://chromiumcodereview.appspot.com/14988009/diff/15001/scripts/slave/annotated_run.py#newcode244 > ...
7 years, 7 months ago (2013-05-14 18:48:20 UTC) #11
iannucci
PTAL. I'd really like to land this today so I can land the enhanced recipe ...
7 years, 7 months ago (2013-05-14 19:18:14 UTC) #12
iannucci
Oh, and this is fully standalone, btw. There's no need to pip install anything. Once ...
7 years, 7 months ago (2013-05-14 19:20:29 UTC) #13
agable
LGTM with nitty comments. Go go go! https://codereview.chromium.org/14988009/diff/52001/scripts/slave/annotated_checkout.py File scripts/slave/annotated_checkout.py (right): https://codereview.chromium.org/14988009/diff/52001/scripts/slave/annotated_checkout.py#newcode254 scripts/slave/annotated_checkout.py:254: return (0, ...
7 years, 7 months ago (2013-05-14 20:47:23 UTC) #14
iannucci
Landing :) https://chromiumcodereview.appspot.com/14988009/diff/52001/scripts/slave/annotated_checkout.py File scripts/slave/annotated_checkout.py (right): https://chromiumcodereview.appspot.com/14988009/diff/52001/scripts/slave/annotated_checkout.py#newcode254 scripts/slave/annotated_checkout.py:254: return (0, checkout.root()) On 2013/05/14 20:47:23, Aaron ...
7 years, 7 months ago (2013-05-14 21:32:08 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/iannucci@chromium.org/14988009/21002
7 years, 7 months ago (2013-05-14 21:34:26 UTC) #16
Isaac (away)
https://chromiumcodereview.appspot.com/14988009/diff/40001/scripts/slave/recipe_util.py File scripts/slave/recipe_util.py (right): https://chromiumcodereview.appspot.com/14988009/diff/40001/scripts/slave/recipe_util.py#newcode72 scripts/slave/recipe_util.py:72: path_func_name = (name+"_path") did pylint really pass on this? ...
7 years, 7 months ago (2013-05-14 21:34:27 UTC) #17
commit-bot: I haz the power
Can't process patch for file third_party/coverage-3.6/coverage/htmlfiles/keybd_open.png. Binary file support is temporarilly disabled due to a ...
7 years, 7 months ago (2013-05-14 21:34:36 UTC) #18
iannucci
On 2013/05/14 21:34:27, Isaac wrote: > https://chromiumcodereview.appspot.com/14988009/diff/40001/scripts/slave/recipe_util.py > File scripts/slave/recipe_util.py (right): > > https://chromiumcodereview.appspot.com/14988009/diff/40001/scripts/slave/recipe_util.py#newcode72 > ...
7 years, 7 months ago (2013-05-14 21:35:25 UTC) #19
iannucci
7 years, 7 months ago (2013-05-14 21:37:40 UTC) #20
Message was sent while issue was closed.
Committed patchset #9 manually as r200078 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698