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

Issue 1570333002: 'recipes.py isolate' command to build an isolate of the current package's toolchain (Closed)

Created:
4 years, 11 months ago by luqui
Modified:
4 years, 8 months ago
CC:
chromium-reviews, infra-reviews+recipes-py_chromium.org, Paweł Hajdan Jr., estaab, nodir
Base URL:
git@github.com:luci/recipes-py.git@master
Target Ref:
refs/heads/master
Project:
recipes-py
Visibility:
Public.

Description

'recipes.py isolate' command to build an isolate of the current package's toolchain BUG=459840 R=iannucci@chromium.org,martiniss@chromium.org,maruel@chromium.org

Patch Set 1 #

Total comments: 22

Patch Set 2 : Support -O option when isolating #

Total comments: 2

Patch Set 3 : Review comments #

Total comments: 22

Patch Set 4 : moar review comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -204 lines) Patch
M recipe_engine/package.py View 1 2 7 chunks +58 lines, -5 lines 1 comment Download
A recipes.extra View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M recipes.py View 1 2 3 4 chunks +39 lines, -0 lines 1 comment Download
D unittests/errors_test.py View 1 chunk +0 lines, -189 lines 0 comments Download
A + unittests/package_setup_test.py View 1 2 3 7 chunks +64 lines, -10 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (1 generated)
luqui
ptal
4 years, 11 months ago (2016-01-09 00:37:14 UTC) #1
M-A Ruel
https://codereview.chromium.org/1570333002/diff/1/recipe_engine/package.py File recipe_engine/package.py (right): https://codereview.chromium.org/1570333002/diff/1/recipe_engine/package.py#newcode375 recipe_engine/package.py:375: """Returns a collection of directories containing recipes.""" Returns the ...
4 years, 11 months ago (2016-01-09 00:52:00 UTC) #2
martiniss
https://codereview.chromium.org/1570333002/diff/20001/recipes.extra File recipes.extra (right): https://codereview.chromium.org/1570333002/diff/20001/recipes.extra#newcode1 recipes.extra:1: recipe_engine I have no clue what this file does, ...
4 years, 11 months ago (2016-01-11 19:43:17 UTC) #3
iannucci
On 2016/01/11 at 19:43:17, martiniss wrote: > https://codereview.chromium.org/1570333002/diff/20001/recipes.extra > File recipes.extra (right): > > https://codereview.chromium.org/1570333002/diff/20001/recipes.extra#newcode1 ...
4 years, 11 months ago (2016-01-15 04:19:46 UTC) #4
luqui
ready to rock https://chromiumcodereview.appspot.com/1570333002/diff/1/recipe_engine/package.py File recipe_engine/package.py (right): https://chromiumcodereview.appspot.com/1570333002/diff/1/recipe_engine/package.py#newcode375 recipe_engine/package.py:375: """Returns a collection of directories containing ...
4 years, 11 months ago (2016-01-15 23:11:27 UTC) #5
M-A Ruel
https://chromiumcodereview.appspot.com/1570333002/diff/40001/recipe_engine/package.py File recipe_engine/package.py (right): https://chromiumcodereview.appspot.com/1570333002/diff/40001/recipe_engine/package.py#newcode428 recipe_engine/package.py:428: if not EXCLUDE.search(fname): if not fname.endswith('.pyc'): is much more ...
4 years, 11 months ago (2016-01-16 00:42:39 UTC) #6
luqui
addressed https://chromiumcodereview.appspot.com/1570333002/diff/40001/recipe_engine/package.py File recipe_engine/package.py (right): https://chromiumcodereview.appspot.com/1570333002/diff/40001/recipe_engine/package.py#newcode428 recipe_engine/package.py:428: if not EXCLUDE.search(fname): On 2016/01/16 00:42:39, M-A Ruel ...
4 years, 11 months ago (2016-01-16 03:55:30 UTC) #7
M-A Ruel
https://chromiumcodereview.appspot.com/1570333002/diff/60001/recipe_engine/package.py File recipe_engine/package.py (right): https://chromiumcodereview.appspot.com/1570333002/diff/60001/recipe_engine/package.py#newcode416 recipe_engine/package.py:416: fname = re.sub(r'#.*', '', line).replace('/', os.sep).strip() You should use ...
4 years, 11 months ago (2016-01-16 23:30:48 UTC) #8
martiniss
Should I take this over? We need this, correct?
4 years, 9 months ago (2016-03-16 01:11:30 UTC) #9
M-A Ruel
On 2016/03/16 01:11:30, martiniss wrote: > Should I take this over? We need this, correct? ...
4 years, 9 months ago (2016-03-16 12:57:28 UTC) #11
estaab
4 years, 8 months ago (2016-03-29 08:43:21 UTC) #12
Message was sent while issue was closed.
This CL on it's own doesn't solve the bootstrapping problem since something
would need the full checkout to run recipes.py isolate.

Robbie and I talked about wrapping up some gitiles requests into a pretty
class that basically just looks like:
recipe_fetcher = GitilesBasedFetcher(repo_url, revision)
dir = tempfile.mkdtemp()
recipe_fetcher.Fetch(manifest_or_isolate_or_something, dir)
# do something with the downloaded recipes in 'dir'

This would let us avoid fetching a full, potentially massive checkout (e.g.
chromium) and let us specify files outside of some recipe root being used
by some misbehaving recipe_modules / recipes.

But really what we might want in the longer term is isolating as a service,
i.e. some magic RPC rpc_call(isolate_server, repo, revision, isolate_path)
-> isolate_hash where the git client state is handled by the service.
Maybe? I can dream.

On Wed, Mar 16, 2016 at 9:57 PM, <maruel@chromium.org> wrote:

> On 2016/03/16 01:11:30, martiniss wrote:
> > Should I take this over? We need this, correct?
>
> cc'ing pawel, erik and nodir
>
> I don't know how it fits with kitchen.
>
> https://codereview.chromium.org/1570333002/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698