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

Issue 1468053008: Add LogDog bootstrapping to `annotated_run.py`. (Closed)

Created:
5 years ago by dnj
Modified:
5 years ago
CC:
chromium-reviews, estaab, infra-reviews+build_chromium.org, kjellander-cc_chromium.org, stip+watch_chromium.org
Target Ref:
refs/heads/master
Project:
build
Visibility:
Public.

Description

Add LogDog bootstrapping to `annotated_run.py`. In the process, refactor a bit of the internals to: - Cleanup old stuff. - Use a singleton execution tempdir instead of several tempdirs. - Use the RecipeRuntime object for operations. - Use "argparse" instead of "optparse". - Use "logging" instead of "print". BUG=chromium:550673 TEST=`./scripts/slave/unittests/annotated_run_test.py`

Patch Set 1 #

Total comments: 1

Patch Set 2 : Merged into `annotated_run.py`. #

Total comments: 25

Patch Set 3 : Fix a comment. #

Patch Set 4 : Strip out argparse, use local "gce.py" (cloned from depot_tools), docstrings. #

Total comments: 32

Patch Set 5 : Fixes? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+421 lines, -2 lines) Patch
M scripts/slave/annotated_run.py View 1 2 3 4 7 chunks +320 lines, -2 lines 0 comments Download
A scripts/slave/gce.py View 1 2 3 4 1 chunk +101 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (7 generated)
dnj
PTAL. This is the first shot at a launcher wrapper for `annoated_run.py` that loops LogDog ...
5 years ago (2015-11-25 22:29:16 UTC) #2
iannucci
https://codereview.chromium.org/1468053008/diff/1/scripts/master/factory/annotator_commands.py File scripts/master/factory/annotator_commands.py (left): https://codereview.chromium.org/1468053008/diff/1/scripts/master/factory/annotator_commands.py#oldcode29 scripts/master/factory/annotator_commands.py:29: runner = self.PathJoin(self._script_dir, 'annotated_run.py') ugh. Please no. This means ...
5 years ago (2015-11-26 00:37:34 UTC) #3
estaab
Moving myself to cc since I don't know this code well enough (but I'd like ...
5 years ago (2015-11-26 02:17:58 UTC) #5
dnj (Google)
On 2015/11/26 00:37:34, iannucci wrote: > https://codereview.chromium.org/1468053008/diff/1/scripts/master/factory/annotator_commands.py > File scripts/master/factory/annotator_commands.py (left): > > https://codereview.chromium.org/1468053008/diff/1/scripts/master/factory/annotator_commands.py#oldcode29 > ...
5 years ago (2015-11-26 08:12:04 UTC) #6
iannucci
You can also just call it from annotated_run. I'm really not in favor of modifying ...
5 years ago (2015-11-26 15:37:34 UTC) #7
dnj
On 2015/11/26 15:37:34, iannucci wrote: > You can also just call it from annotated_run. I'm ...
5 years ago (2015-11-26 18:59:53 UTC) #8
dnj (Google)
Okay updated to merge into `annotated_run.py`. PTAL. +prgervais@ b/c this changes some things about the ...
5 years ago (2015-11-27 20:51:25 UTC) #12
dnj
(Pinging, since I submitted this over holiday).
5 years ago (2015-11-30 21:32:43 UTC) #13
iannucci
+luqui will comment more, but wanted to CC https://chromiumcodereview.appspot.com/1468053008/diff/40001/environment.cfg.py File environment.cfg.py (right): https://chromiumcodereview.appspot.com/1468053008/diff/40001/environment.cfg.py#newcode18 environment.cfg.py:18: os.path.join(cwd, ...
5 years ago (2015-12-01 02:12:46 UTC) #15
iannucci
https://chromiumcodereview.appspot.com/1468053008/diff/40001/scripts/slave/annotated_run.py File scripts/slave/annotated_run.py (right): https://chromiumcodereview.appspot.com/1468053008/diff/40001/scripts/slave/annotated_run.py#newcode43 scripts/slave/annotated_run.py:43: LOGDOG_ERROR_RETURNCODES = ( I think the logdog stuff should ...
5 years ago (2015-12-01 02:38:01 UTC) #16
dnj
https://chromiumcodereview.appspot.com/1468053008/diff/40001/environment.cfg.py File environment.cfg.py (right): https://chromiumcodereview.appspot.com/1468053008/diff/40001/environment.cfg.py#newcode18 environment.cfg.py:18: os.path.join(cwd, os.pardir, 'depot_tools'), On 2015/12/01 02:12:46, iannucci wrote: > ...
5 years ago (2015-12-01 02:39:09 UTC) #17
iannucci
On 2015/12/01 at 02:39:09, dnj wrote: > https://chromiumcodereview.appspot.com/1468053008/diff/40001/environment.cfg.py > File environment.cfg.py (right): > > https://chromiumcodereview.appspot.com/1468053008/diff/40001/environment.cfg.py#newcode18 ...
5 years ago (2015-12-01 02:41:52 UTC) #18
dnj
On 2015/12/01 02:41:52, iannucci wrote: > On 2015/12/01 at 02:39:09, dnj wrote: > > > ...
5 years ago (2015-12-01 02:53:30 UTC) #19
iannucci
Build and depot tools are codependent in an "omfg this is a huge painful headache" ...
5 years ago (2015-12-01 03:03:50 UTC) #20
dnj
On 2015/12/01 03:03:50, iannucci wrote: > Build and depot tools are codependent in an "omfg ...
5 years ago (2015-12-01 03:19:43 UTC) #21
dnj
https://chromiumcodereview.appspot.com/1468053008/diff/40001/scripts/slave/annotated_run.py File scripts/slave/annotated_run.py (right): https://chromiumcodereview.appspot.com/1468053008/diff/40001/scripts/slave/annotated_run.py#newcode50 scripts/slave/annotated_run.py:50: # Whitelist of {master}=>[{builder}|WHITELIST_ALL] whitelisting specific masters On 2015/12/01 ...
5 years ago (2015-12-01 03:36:05 UTC) #22
pgervais
Some comments. I'm wondering whether we really need to handle cipd from here instead of ...
5 years ago (2015-12-01 18:58:28 UTC) #23
iannucci
Discussed offline: * will deploy butler/annotee via puppet/cipd * will refactor config to be passed ...
5 years ago (2015-12-01 20:10:29 UTC) #24
dnj
I split the refactoring part into this CL: https://codereview.chromium.org/1492613002 This is a follow-on that just ...
5 years ago (2015-12-01 22:39:55 UTC) #25
dnj
5 years ago (2015-12-04 07:09:54 UTC) #26
I'm closing this and re-opening as:
https://codereview.chromium.org/1501663002

After being split, all of these patch sets are fairly useless to diff against
the current state.

Powered by Google App Engine
This is Rietveld 408576698