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

Issue 887673003: Add support for create_installer_archive.py to generate a depfile (Closed)

Created:
5 years, 10 months ago by scottmg
Modified:
5 years, 10 months ago
Reviewers:
Nico, grt (UTC plus 2)
CC:
chromium-reviews, grt+watch_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for create_installer_archive.py to generate a depfile Adds functionality to create_installer_archive.py to generate a .d file that includes all of the files that it packages into chrome[.packed].7z. This is done by tracking the source of all the files that are copied into the staging dir that is given to 7za to package the .7z file. The depfile is then used in a gyp 'depfile' to correctly specify the implicit dependencies for the mini_installer target. Previously it used a fake output of 'xxx2.out' to cause it to rebuild every time (which is what we're trying to avoid in this change). Additionally, switch from a rule to an action in gyp -- gyp currently only supports 'depfile' on actions, and as there's only one file being built here, they're equivalent. BUG=342974, 451499 Committed: https://crrev.com/f79c2e881fb94775cdac5679795ae3e6957fc487 Cr-Commit-Position: refs/heads/master@{#314015}

Patch Set 1 #

Total comments: 4

Patch Set 2 : make installer_archive an action #

Patch Set 3 : fixes for component mode #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -6 lines) Patch
M chrome/installer/mini_installer.gyp View 1 3 chunks +9 lines, -6 lines 0 comments Download
M chrome/tools/build/win/create_installer_archive.py View 1 2 7 chunks +48 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (6 generated)
scottmg
https://codereview.chromium.org/887673003/diff/1/chrome/installer/mini_installer.gyp File chrome/installer/mini_installer.gyp (left): https://codereview.chromium.org/887673003/diff/1/chrome/installer/mini_installer.gyp#oldcode195 chrome/installer/mini_installer.gyp:195: '<(PRODUCT_DIR)/<(RULE_INPUT_NAME).packed.7z', this expanded to "chrome.release.packed.7z" which was never generated, ...
5 years, 10 months ago (2015-01-29 23:32:41 UTC) #1
scottmg
grt: installer-y bits + OWNERS thakis: knowing all about depfile/ninja.
5 years, 10 months ago (2015-01-30 00:08:45 UTC) #3
grt (UTC plus 2)
This is awesome. Thanks for tackling it. The python looks better than what I would ...
5 years, 10 months ago (2015-01-30 19:03:27 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/887673003/40001
5 years, 10 months ago (2015-01-30 19:23:43 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/5553)
5 years, 10 months ago (2015-01-30 20:12:37 UTC) #8
scottmg
On 2015/01/30 20:12:37, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 10 months ago (2015-01-30 21:07:09 UTC) #9
scottmg
Now doesn't relpath the inputs so it can work across drives, fixes a bug in ...
5 years, 10 months ago (2015-01-30 21:54:52 UTC) #12
Nico
lgtm Does that script have tests, perchance? :-)
5 years, 10 months ago (2015-01-30 22:51:14 UTC) #13
scottmg
On 2015/01/30 22:51:14, Nico wrote: > lgtm > > Does that script have tests, perchance? ...
5 years, 10 months ago (2015-01-30 22:53:08 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/887673003/80001
5 years, 10 months ago (2015-01-30 22:53:37 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:80001)
5 years, 10 months ago (2015-01-30 22:57:12 UTC) #17
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/f79c2e881fb94775cdac5679795ae3e6957fc487 Cr-Commit-Position: refs/heads/master@{#314015}
5 years, 10 months ago (2015-01-30 22:57:58 UTC) #18
grt (UTC plus 2)
On 2015/01/30 22:51:14, Nico wrote: > lgtm > > Does that script have tests, perchance? ...
5 years, 10 months ago (2015-01-30 23:13:37 UTC) #19
scottmg
On 2015/01/30 23:13:37, grt wrote: > On 2015/01/30 22:51:14, Nico wrote: > > lgtm > ...
5 years, 10 months ago (2015-01-30 23:16:33 UTC) #20
grt (UTC plus 2)
5 years, 10 months ago (2015-01-31 02:20:26 UTC) #21
Message was sent while issue was closed.
On 2015/01/30 23:16:33, scottmg wrote:
> On 2015/01/30 23:13:37, grt wrote:
> > On 2015/01/30 22:51:14, Nico wrote:
> > > lgtm
> > > 
> > > Does that script have tests, perchance? :-)
> > 
> > In a sense. test_installer.py runs the installer, and will give you a red
> tryrun
> > if it doesn't seem to install something resembling Chromium/Chrome.
> 
> Oops, did I run that in the default set above?

For a static build, yes:
http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_....

For a component build, possibly not. I think the dbg win bots would run it.

Powered by Google App Engine
This is Rietveld 408576698