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

Issue 2367923002: Fail to build with unbound Info.plist substitutions instead of silently dropping them. (Closed)

Created:
4 years, 3 months ago by Sidney San Martín
Modified:
3 years, 5 months ago
Reviewers:
Nico, sdefresne
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fail to build with unbound Info.plist substitutions instead of silently dropping them. - In plist_util.py, fail if any plist substitutions aren't bound to values. - Remove a few keys in BuildInfo.plist which had no substitutions. They're added later by tweak_info_plist.py. BUG=649854, 650345 Review-Url: https://codereview.chromium.org/2367923002 Cr-Commit-Position: refs/heads/master@{#484348} Committed: https://chromium.googlesource.com/chromium/src/+/faba7ddfc2b78b1741e578817d7cbbaed0030a93

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use Python 2-style print #

Patch Set 3 : Add a temporary flag to go back to skipping unbound substitutions #

Total comments: 2

Patch Set 4 : Pass --skip-unbound-variables for iOS builds, document map_fn. #

Patch Set 5 : Rebase, remove logic to optionally ignore unbound substitutions #

Patch Set 6 : Better printing for SubstitutionErrors #

Patch Set 7 : Rebase #

Patch Set 8 : Fix a SubstitutionError #

Total comments: 2

Patch Set 9 : Hard code this deployment target like the others. Rebase, too. #

Patch Set 10 : Hard code one more instance of LSMinimumSystemVersion #

Total comments: 2

Patch Set 11 : Add MACOSX_DEPLOYMENT_TARGET as a default substitution. #

Patch Set 12 : Apparently iOS builds also use mac/base_rules.gni. #

Patch Set 13 : Rebase to pick up crrev/c/555912 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -73 lines) Patch
M build/config/mac/BuildInfo.plist View 1 chunk +0 lines, -8 lines 0 comments Download
M build/config/mac/plist_util.py View 1 2 3 4 5 6 4 chunks +24 lines, -64 lines 0 comments Download
M ui/base/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M ui/base/test/framework-Info.plist View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 81 (51 generated)
Sidney San Martín
When we talked about this, you wanted to let it fail with the natural KeyError. ...
4 years, 3 months ago (2016-09-23 19:04:13 UTC) #2
Sidney San Martín
On 2016/09/23 19:04:13, Sidney San Martín wrote: > When we talked about this, you wanted ...
4 years, 3 months ago (2016-09-23 19:07:10 UTC) #4
Robert Sesek
https://codereview.chromium.org/2367923002/diff/1/build/config/mac/gen_plist.py File build/config/mac/gen_plist.py (left): https://codereview.chromium.org/2367923002/diff/1/build/config/mac/gen_plist.py#oldcode168 build/config/mac/gen_plist.py:168: if not isinstance(plist1, dict) or not isinstance(plist2, dict): Was ...
4 years, 3 months ago (2016-09-23 20:55:55 UTC) #5
Robert Sesek
Also, +sdefresne since he authored the script initially.
4 years, 3 months ago (2016-09-23 20:56:53 UTC) #7
sdefresne
On 2016/09/23 20:56:53, Robert Sesek wrote: > Also, +sdefresne since he authored the script initially. ...
4 years, 2 months ago (2016-09-26 12:53:14 UTC) #9
Sidney San Martín
Let me know how this looks. It brings back support, behind a flag, for dropping ...
4 years, 2 months ago (2016-09-26 18:38:25 UTC) #12
sdefresne
Can you add --skip-unbound-variables to the invocation of gen_plist.py in build/config/mac/base_rules.gni if is_ios is true? ...
4 years, 2 months ago (2016-09-27 08:26:00 UTC) #13
Sidney San Martín
On 2016/09/27 08:26:00, sdefresne wrote: > Can you add --skip-unbound-variables to the invocation of gen_plist.py ...
4 years, 2 months ago (2016-09-27 20:15:21 UTC) #14
Sidney San Martín
On 2016/09/27 20:15:21, Sidney San Martín wrote: > On 2016/09/27 08:26:00, sdefresne wrote: > > ...
4 years, 2 months ago (2016-10-07 16:23:40 UTC) #15
sdefresne
On 2016/10/07 16:23:40, Sidney San Martín wrote: > On 2016/09/27 20:15:21, Sidney San Martín wrote: ...
4 years ago (2016-12-21 13:09:07 UTC) #16
Sidney San Martín
On 2016/12/21 13:09:07, sdefresne wrote: > rebasing this CL and sending it to CQ works. ...
3 years, 11 months ago (2017-01-05 02:18:59 UTC) #17
Sidney San Martín
On 2016/12/21 13:09:07, sdefresne wrote: > Most of the downstream iOS code has been upstreamed. ...
3 years, 11 months ago (2017-01-05 03:04:00 UTC) #22
Sidney San Martín
On 2017/01/05 03:04:00, sdy wrote: > On 2016/12/21 13:09:07, sdefresne wrote: > > Most of ...
3 years, 10 months ago (2017-02-01 23:17:54 UTC) #28
sdefresne
On 2017/02/01 23:17:54, Sidney San Martín wrote: > On 2017/01/05 03:04:00, sdy wrote: > > ...
3 years, 6 months ago (2017-06-01 13:21:37 UTC) #29
sdefresne
sdy: ping?
3 years, 6 months ago (2017-06-15 13:28:12 UTC) #30
Sidney San Martín
On 2017/06/15 13:28:12, sdefresne wrote: > sdy: ping? Thanks — rebasing now!
3 years, 6 months ago (2017-06-20 22:28:00 UTC) #31
Sidney San Martín
PTAL? I'm doing another dry run now, I think the last one failed for reasons ...
3 years, 6 months ago (2017-06-21 16:11:08 UTC) #43
sdefresne
lgtm thakis: ping for OWNERS
3 years, 5 months ago (2017-06-26 11:44:40 UTC) #46
Nico
On 2017/06/26 11:44:40, sdefresne wrote: > lgtm > > thakis: ping for OWNERS Here's how ...
3 years, 5 months ago (2017-06-26 14:38:33 UTC) #47
sdefresne
On 2017/06/26 14:38:33, Nico (vacation Jun 30-Jul 11) wrote: > On 2017/06/26 11:44:40, sdefresne wrote: ...
3 years, 5 months ago (2017-06-26 14:44:33 UTC) #48
Nico
lgtm https://codereview.chromium.org/2367923002/diff/140001/build/config/mac/BuildInfo.plist File build/config/mac/BuildInfo.plist (left): https://codereview.chromium.org/2367923002/diff/140001/build/config/mac/BuildInfo.plist#oldcode24 build/config/mac/BuildInfo.plist:24: <string>${COMMIT_HASH}</string> From the Cl description, this removal here ...
3 years, 5 months ago (2017-06-26 14:47:18 UTC) #49
Sidney San Martín
Thanks — sorry for the confusing message when I added you, Nico. Seeing the screenshot ...
3 years, 5 months ago (2017-06-26 17:40:03 UTC) #50
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/2367923002/140001
3 years, 5 months ago (2017-06-26 17:40:34 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/450351)
3 years, 5 months ago (2017-06-26 17:58:42 UTC) #54
sdefresne
https://codereview.chromium.org/2367923002/diff/180001/extensions/shell/app/app-Info.plist File extensions/shell/app/app-Info.plist (right): https://codereview.chromium.org/2367923002/diff/180001/extensions/shell/app/app-Info.plist#newcode28 extensions/shell/app/app-Info.plist:28: <string>10.9.0</string> I don't like hardcoding the value here. It ...
3 years, 5 months ago (2017-06-27 08:26:25 UTC) #57
Sidney San Martín
sdefresne@, mind taking another quick look? I want to make sure it's still reasonable for ...
3 years, 5 months ago (2017-06-27 19:45:52 UTC) #60
sdefresne
Still lgtm, but the CL is starting to get large. Can you split the $mac_deployment_target/$ios_deployment_target ...
3 years, 5 months ago (2017-06-28 08:49:49 UTC) #69
Sidney San Martín
I'm going to land this once crbug/739469 un-breaks the CQ.
3 years, 5 months ago (2017-07-05 19:33:56 UTC) #74
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/2367923002/240001
3 years, 5 months ago (2017-07-05 19:55:32 UTC) #78
commit-bot: I haz the power
3 years, 5 months ago (2017-07-05 21:04:44 UTC) #81
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/faba7ddfc2b78b1741e578817d7c...

Powered by Google App Engine
This is Rietveld 408576698