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

Issue 2511213002: Move ENV into custom deps, allow it to be random. (Closed)

Created:
4 years, 1 month ago by dnj
Modified:
4 years ago
CC:
chromium-reviews, infra-reviews+recipes-py_chromium.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Move ENV into custom deps, allow it to be random. When a custom deps directory is specified, install the bootstrap environment into that directory rather than into the main script directory. This makes parallel invocations of recipe engine (e.g., for recipe testing) more independent. Add a special "--deps-path=-" option to instruct the recipe engine to create a temporary deps directory, operate out of it, and clean it up at termination. This will make using hermetic recipe test spaces much more accessible to various testing scripts. BUG=chromium:666404 TEST=local - Ran with "--use-bootstrap", still installs ENV locally. - Ran with "--use-bootstrap" and "--deps-dir /tmp/fake", works, installs ENV there. - Ran with "--use-bootstrap" and "--deps-dir=-", works, cleans up afterwards. - Ran without "--use-bootstrap" everything seems to be working. Committed: https://github.com/luci/recipes-py/commit/67fe1f3ccee14c273b3d7d6235280497b4413cba

Patch Set 1 #

Total comments: 7

Patch Set 2 : Comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -16 lines) Patch
M recipes.py View 1 4 chunks +70 lines, -16 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
dnj
PTAL. I'm hoping that by isolating recipe runs into temporary spaces, we can have more ...
4 years, 1 month ago (2016-11-17 19:25:37 UTC) #2
iannucci
lgtm https://codereview.chromium.org/2511213002/diff/1/recipes.py File recipes.py (right): https://codereview.chromium.org/2511213002/diff/1/recipes.py#newcode584 recipes.py:584: logging.debug('Using custom deps path: %s', args.deps_path) let's make ...
4 years, 1 month ago (2016-11-17 21:15:04 UTC) #3
dnj
https://codereview.chromium.org/2511213002/diff/1/recipes.py File recipes.py (right): https://codereview.chromium.org/2511213002/diff/1/recipes.py#newcode584 recipes.py:584: logging.debug('Using custom deps path: %s', args.deps_path) On 2016/11/17 21:15:04, ...
4 years, 1 month ago (2016-11-17 21:27:57 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2511213002/20001
4 years, 1 month ago (2016-11-17 21:28:10 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://github.com/luci/recipes-py/commit/67fe1f3ccee14c273b3d7d6235280497b4413cba
4 years, 1 month ago (2016-11-17 21:31:47 UTC) #9
Michael Moss
https://codereview.chromium.org/2511213002/diff/1/recipes.py File recipes.py (right): https://codereview.chromium.org/2511213002/diff/1/recipes.py#newcode584 recipes.py:584: logging.debug('Using custom deps path: %s', args.deps_path) On 2016/11/17 21:15:04, ...
4 years ago (2016-12-02 17:08:57 UTC) #11
dnj
On 2016/12/02 17:08:57, Michael Moss wrote: > https://codereview.chromium.org/2511213002/diff/1/recipes.py > File recipes.py (right): > > https://codereview.chromium.org/2511213002/diff/1/recipes.py#newcode584 ...
4 years ago (2016-12-02 17:20:00 UTC) #12
Michael Moss
On 2016/12/02 17:20:00, dnj wrote: > On 2016/12/02 17:08:57, Michael Moss wrote: > > https://codereview.chromium.org/2511213002/diff/1/recipes.py ...
4 years ago (2016-12-02 17:28:48 UTC) #13
dnj
On 2016/12/02 17:28:48, Michael Moss wrote: > On 2016/12/02 17:20:00, dnj wrote: > > On ...
4 years ago (2016-12-02 17:39:54 UTC) #14
Michael Moss
On 2016/12/02 17:39:54, dnj wrote: > On 2016/12/02 17:28:48, Michael Moss wrote: > > On ...
4 years ago (2016-12-02 17:43:08 UTC) #15
dnj
On 2016/12/02 17:43:08, Michael Moss wrote: > On 2016/12/02 17:39:54, dnj wrote: > > On ...
4 years ago (2016-12-02 21:37:48 UTC) #16
Michael Moss
> It's not meant as a warning. The log level was chosen to make it ...
4 years ago (2016-12-02 21:51:33 UTC) #17
dnj
4 years ago (2016-12-02 23:42:03 UTC) #18
Message was sent while issue was closed.
> > It is useful on bots for sure to see where they are building out of.
Locally,
> > yeah probably less useful. Not sure what the right thing to do here is.
> 
> Is there a reason bots can't run at 'info' or 'debug' log level?

Those levels both show more log messages than we want to show in a standard
BuildBot run.

Powered by Google App Engine
This is Rietveld 408576698