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

Issue 168603004: Move toolchain update control into src, but keep download logic in depot_tools (Closed)

Created:
6 years, 10 months ago by scottmg
Modified:
6 years, 10 months ago
Reviewers:
iannucci, M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Visibility:
Public.

Description

Move toolchain update control into src, but keep download logic in depot_tools Moves the update functionality out of update_depot_tools into src/ in https://codereview.chromium.org/175573004 . get_toolchain_if_required.py now expects a list of hashes on the command line, and makes sure that it gets one of those. toolchain2013.py saves a .json which contains information relevant to the interests of the caller, so that it can set up the parent environment. This is returned via the --output-json command line argument to get_...py R=iannucci@chromium.org BUG=323300 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252725

Patch Set 1 #

Total comments: 1

Patch Set 2 : save and return json #

Patch Set 3 : json #

Total comments: 1

Patch Set 4 : rebase #

Patch Set 5 : back to crlf #

Patch Set 6 : reitveld #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -21 lines) Patch
M update_depot_tools.bat View 1 2 3 4 2 chunks +1 line, -8 lines 0 comments Download
M win_toolchain/get_toolchain_if_necessary.py View 1 2 4 chunks +11 lines, -9 lines 0 comments Download
M win_toolchain/toolchain2013.py View 1 2 chunks +13 lines, -2 lines 0 comments Download
D win_toolchain/toolchain_vs2013.hash View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
scottmg
6 years, 10 months ago (2014-02-21 23:34:26 UTC) #1
iannucci
lgtm https://codereview.chromium.org/168603004/diff/1/win_toolchain/get_toolchain_if_necessary.py File win_toolchain/get_toolchain_if_necessary.py (right): https://codereview.chromium.org/168603004/diff/1/win_toolchain/get_toolchain_if_necessary.py#newcode149 win_toolchain/get_toolchain_if_necessary.py:149: print >> sys.stderr, 'Usage: get_toolchain_if_necessary.py sha1...' Probably want ...
6 years, 10 months ago (2014-02-21 23:53:08 UTC) #2
scottmg
and the other side.
6 years, 10 months ago (2014-02-21 23:53:10 UTC) #3
scottmg
On 2014/02/21 23:53:08, iannucci wrote: > lgtm > > https://codereview.chromium.org/168603004/diff/1/win_toolchain/get_toolchain_if_necessary.py > File win_toolchain/get_toolchain_if_necessary.py (right): > ...
6 years, 10 months ago (2014-02-22 00:02:51 UTC) #4
scottmg
PTAL
6 years, 10 months ago (2014-02-22 01:10:02 UTC) #5
iannucci
lgtm https://codereview.chromium.org/168603004/diff/110001/win_toolchain/get_toolchain_if_necessary.py File win_toolchain/get_toolchain_if_necessary.py (right): https://codereview.chromium.org/168603004/diff/110001/win_toolchain/get_toolchain_if_necessary.py#newcode198 win_toolchain/get_toolchain_if_necessary.py:198: shutil.copyfile(os.path.join(target_dir, 'data.json'), options.output_json) ooh, fancy... We're assuming that ...
6 years, 10 months ago (2014-02-22 01:23:06 UTC) #6
scottmg
On 2014/02/22 01:23:06, iannucci wrote: > lgtm > > https://codereview.chromium.org/168603004/diff/110001/win_toolchain/get_toolchain_if_necessary.py > File win_toolchain/get_toolchain_if_necessary.py (right): > ...
6 years, 10 months ago (2014-02-22 01:39:35 UTC) #7
iannucci
On 2014/02/22 01:39:35, scottmg wrote: > On 2014/02/22 01:23:06, iannucci wrote: > > lgtm > ...
6 years, 10 months ago (2014-02-22 01:39:48 UTC) #8
scottmg
The CQ bit was checked by scottmg@chromium.org
6 years, 10 months ago (2014-02-22 01:40:40 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/168603004/110001
6 years, 10 months ago (2014-02-22 01:40:43 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-22 01:40:45 UTC) #11
commit-bot: I haz the power
Failed to apply patch for depot_tools/update_depot_tools.bat: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 10 months ago (2014-02-22 01:40:45 UTC) #12
scottmg
On 2014/02/22 01:40:45, I haz the power (commit-bot) wrote: > Failed to apply patch for ...
6 years, 10 months ago (2014-02-22 01:41:12 UTC) #13
scottmg
The CQ bit was checked by scottmg@chromium.org
6 years, 10 months ago (2014-02-22 01:46:30 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/168603004/320001
6 years, 10 months ago (2014-02-22 01:46:41 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-22 01:46:42 UTC) #16
commit-bot: I haz the power
Failed to apply patch for depot_tools/update_depot_tools.bat: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 10 months ago (2014-02-22 01:46:43 UTC) #17
scottmg
Committed patchset #6 manually as r252725 (presubmit successful).
6 years, 10 months ago (2014-02-22 01:47:58 UTC) #18
scottmg
On 2014/02/22 01:39:48, iannucci wrote: > On 2014/02/22 01:39:35, scottmg wrote: > > On 2014/02/22 ...
6 years, 10 months ago (2014-02-22 03:00:48 UTC) #19
scottmg
In the interest of expedience and fixing this tonight, I'm going to move data.json out ...
6 years, 10 months ago (2014-02-22 03:11:25 UTC) #20
iannucci
6 years, 10 months ago (2014-02-22 08:35:29 UTC) #21
Message was sent while issue was closed.
On 2014/02/22 03:11:25, scottmg wrote:
> In the interest of expedience and fixing this tonight, I'm going to move
> data.json out of the hashed part for now, but otherwise keep things the
> same. We'll have to figure out the correct location for these things when
> we work out supporting multiple sha1s simultaneously.
> 
> 
> On Fri, Feb 21, 2014 at 7:00 PM, <mailto:scottmg@chromium.org> wrote:
> 
> > On 2014/02/22 01:39:48, iannucci wrote:
> >
> >> On 2014/02/22 01:39:35, scottmg wrote:
> >> > On 2014/02/22 01:23:06, iannucci wrote:
> >> > > lgtm
> >> > >
> >> > >
> >> >
> >>
> >
> > https://codereview.chromium.org/168603004/diff/110001/win_
> > toolchain/get_toolchain_if_necessary.py
> >
> >> > > File win_toolchain/get_toolchain_if_necessary.py (right):
> >> > >
> >> > >
> >> >
> >>
> >
> > https://codereview.chromium.org/168603004/diff/110001/win_
> > toolchain/get_toolchain_if_necessary.py#newcode198
> >
> >> > > win_toolchain/get_toolchain_if_necessary.py:198:
> >> > > shutil.copyfile(os.path.join(target_dir, 'data.json'),
> >>
> > options.output_json)
> >
> >> > > ooh, fancy...
> >> > >
> >> > > We're assuming that the caller will be able to correctly absolute-ify
> >> the
> >> path
> >> > > data in data.json?
> >> > >
> >> > > Or does data contain absolute paths?
> >> >
> >> > Yes, all the paths in data.json are absolute.
> >> >
> >>
> >
> > Duh! Obviously that isn't going to work when it's not the same path as my
> > machine because that part's hashed. Some days, I should just stay in bed.
> > $#@!$@
> >

Hehe, yeah that was kinda what I was getting at :P.

> >
> >  > >
> >> > > Probably will need to change when we're not running toolchain2013 all
> >> the
> >> time
> >> >
> >> > You mean for gs mirroring instead? Yeah, we'll burn that bridge when we
> >> get
> >> > there.
> >>
> >
> >  sg, ship it
> >>
> >
> >
> >
> > https://codereview.chromium.org/168603004/
> >
> 
> To unsubscribe from this group and stop receiving emails from it, send an
email
> to mailto:chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698