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

Issue 1908293002: Add MB configs for ClangToTLinux* bots on FYI (Closed)

Created:
4 years, 8 months ago by Dirk Pranke
Modified:
4 years, 8 months ago
Reviewers:
Nico, brettw, krasin
CC:
chromium-reviews, aneeshm, krasin1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add MB configs for ClangToTLinux* bots on FYI The tip-of-tree Clang bots rely on an environment variable called LLVM_FORCE_HEAD_REVISION to be set in order to know to fetch the tip-of-tree Clang and use its version in the compile time defines, rather than the checked-in version. We don't want GN to use or depend on environment variables, so this patch modifies the clang update script to also look at a new command line arg, and adds a GN arg called 'llvm_force_head_revision' to cause the same effect. However, we need to keep the env var around for `gclient runhooks` and to keep the existing bots (and devs) working while on GYP, and, perhaps more importantly, adding a new GYP_DEFINE that does what we need to build/common.gypi is proving intractable, so we hack MB to rewrite what the GYP_DEFINE would be if life made sense back into the env var. BUG=481692, 582737 R=thakis@chromium.org, brettw@chromium.org Committed: https://crrev.com/909bad6afa7124f67c4890f3c1bc244179141978 Cr-Commit-Position: refs/heads/master@{#389408}

Patch Set 1 #

Total comments: 2

Patch Set 2 : use clang_revision, rename configs and ubsan_hack #

Patch Set 3 : s/clang_revision/llvm_force_head_revision #

Patch Set 4 : add llvm_force_head_revision MB/GYP hack #

Total comments: 4

Patch Set 5 : attempt to update w/ review feedback #

Patch Set 6 : fix var name #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -20 lines) Patch
M build/config/compiler/BUILD.gn View 1 2 3 4 5 3 chunks +19 lines, -7 lines 0 comments Download
M tools/clang/scripts/update.py View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M tools/mb/mb.py View 1 2 3 1 chunk +15 lines, -0 lines 1 comment Download
M tools/mb/mb_config.pyl View 1 2 3 4 7 chunks +46 lines, -12 lines 0 comments Download

Messages

Total messages: 29 (13 generated)
Dirk Pranke
4 years, 8 months ago (2016-04-22 01:05:31 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1908293002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1908293002/1
4 years, 8 months ago (2016-04-22 01:05:57 UTC) #3
krasin
lgtm the comment is not super critical, feel free to ignore / fix later. https://codereview.chromium.org/1908293002/diff/1/tools/mb/mb_config.pyl ...
4 years, 8 months ago (2016-04-22 01:09:14 UTC) #5
Dirk Pranke
https://codereview.chromium.org/1908293002/diff/1/tools/mb/mb_config.pyl File tools/mb/mb_config.pyl (right): https://codereview.chromium.org/1908293002/diff/1/tools/mb/mb_config.pyl#newcode2265 tools/mb/mb_config.pyl:2265: 'ubsan_hack': { On 2016/04/22 01:09:14, krasin wrote: > Please, ...
4 years, 8 months ago (2016-04-22 01:14:24 UTC) #6
Nico
lgtm I remember that it's important that LLVM_FORCE_HEAD_REVISION is in the env while build files ...
4 years, 8 months ago (2016-04-22 01:26:38 UTC) #7
Dirk Pranke
On 2016/04/22 01:26:38, Nico wrote: > lgtm > > I remember that it's important that ...
4 years, 8 months ago (2016-04-22 01:30:47 UTC) #8
Dirk Pranke
Okay, this is yet another approach for this stupid problem, whereby we make MB present ...
4 years, 8 months ago (2016-04-22 22:31:01 UTC) #12
brettw
LGTM from my end
4 years, 8 months ago (2016-04-22 23:08:08 UTC) #14
Nico
lgtm with comment https://codereview.chromium.org/1908293002/diff/80001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/1908293002/diff/80001/build/config/compiler/BUILD.gn#newcode246 build/config/compiler/BUILD.gn:246: defines += [ "CR_CLANG_REVISION=$clang_revision" ] restore ...
4 years, 8 months ago (2016-04-24 01:52:48 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1908293002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1908293002/100001
4 years, 8 months ago (2016-04-24 20:49:06 UTC) #18
Dirk Pranke
https://codereview.chromium.org/1908293002/diff/80001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/1908293002/diff/80001/build/config/compiler/BUILD.gn#newcode246 build/config/compiler/BUILD.gn:246: defines += [ "CR_CLANG_REVISION=$clang_revision" ] On 2016/04/24 01:52:48, Nico ...
4 years, 8 months ago (2016-04-24 20:49:18 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/149930)
4 years, 8 months ago (2016-04-24 20:56:00 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1908293002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1908293002/120001
4 years, 8 months ago (2016-04-24 21:19:04 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 8 months ago (2016-04-24 23:15:07 UTC) #26
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/909bad6afa7124f67c4890f3c1bc244179141978 Cr-Commit-Position: refs/heads/master@{#389408}
4 years, 8 months ago (2016-04-24 23:16:44 UTC) #28
Dirk Pranke
4 years, 8 months ago (2016-04-25 22:12:16 UTC) #29
Message was sent while issue was closed.
fixing now ...

https://codereview.chromium.org/1908293002/diff/120001/tools/mb/mb.py
File tools/mb/mb.py (right):

https://codereview.chromium.org/1908293002/diff/120001/tools/mb/mb.py#newcode...
tools/mb/mb.py:1094: env['LLVM_FORCE_HEAD_REVISION'] = 1
this should've been '1'.

Powered by Google App Engine
This is Rietveld 408576698