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

Issue 1127233002: Use Clang's update.py --print-revision everywhere. (Closed)

Created:
5 years, 7 months ago by hans
Modified:
5 years, 7 months ago
Reviewers:
Nico, scottmg
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use Clang's update.py --print-revision everywhere. Since yesterday, it works on Windows. This allows us to not completely clobber the build from update.py each time, since the build system tracks the dependency instead. It should also be possible to use this from gn, so we can delete the posix-print-revision.py script. The only problem was that the hack we use for fixing the output in gclient runhooks didn't work. I've adjusted that to not fail when the hack doesn't work. BUG=483065 R=scottmg@chromium.org, thakis@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/cd20b07ab7edf2a7bab8e34362cebe5f92b41a27

Patch Set 1 #

Patch Set 2 : No need to clobber the build dir in update.py anymore #

Total comments: 2

Patch Set 3 : Make --print-version not fall over and die when there's no clang checkout #

Patch Set 4 : Fix Windows for realz #

Patch Set 5 : Set 'shell=True' when running 'svn info' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -37 lines) Patch
M build/common.gypi View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M build/config/compiler/BUILD.gn View 1 chunk +5 lines, -5 lines 0 comments Download
M build/download_gold_plugin.py View 1 chunk +3 lines, -3 lines 0 comments Download
D tools/clang/scripts/posix-print-revision.py View 1 chunk +0 lines, -11 lines 0 comments Download
M tools/clang/scripts/update.py View 1 2 3 4 4 chunks +13 lines, -16 lines 0 comments Download

Messages

Total messages: 33 (8 generated)
hans
thakis: please take a look scottmg: owners for gn stuff
5 years, 7 months ago (2015-05-06 18:54:51 UTC) #2
Nico
https://codereview.chromium.org/1127233002/diff/20001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1127233002/diff/20001/build/common.gypi#newcode2634 build/common.gypi:2634: 'defines': ['CR_CLANG_REVISION=<!(<(DEPTH)/tools/clang/scripts/update.py --print-revision)'], Does this work? update.py always goes ...
5 years, 7 months ago (2015-05-06 18:59:05 UTC) #3
hans
https://codereview.chromium.org/1127233002/diff/20001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1127233002/diff/20001/build/common.gypi#newcode2634 build/common.gypi:2634: 'defines': ['CR_CLANG_REVISION=<!(<(DEPTH)/tools/clang/scripts/update.py --print-revision)'], On 2015/05/06 18:59:05, Nico wrote: > ...
5 years, 7 months ago (2015-05-06 19:32:15 UTC) #4
Nico
lgtm then
5 years, 7 months ago (2015-05-06 19:48:52 UTC) #5
Nico
lgtm then
5 years, 7 months ago (2015-05-06 19:48:53 UTC) #6
hans
Scott, does the gn part look good to you?
5 years, 7 months ago (2015-05-06 19:55:21 UTC) #7
scottmg
lgtm
5 years, 7 months ago (2015-05-06 19:59:03 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1127233002/20001
5 years, 7 months ago (2015-05-06 20:00:33 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_rel on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_rel/builds/80987)
5 years, 7 months ago (2015-05-06 20:15:20 UTC) #12
hans
On 2015/05/06 20:15:20, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 7 months ago (2015-05-06 20:21:27 UTC) #13
hans
On 2015/05/06 20:21:27, hans wrote: > On 2015/05/06 20:15:20, I haz the power (commit-bot) wrote: ...
5 years, 7 months ago (2015-05-06 20:32:49 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1127233002/40001
5 years, 7 months ago (2015-05-06 20:34:14 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_rel on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_rel/builds/81008)
5 years, 7 months ago (2015-05-06 20:49:50 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1127233002/60001
5 years, 7 months ago (2015-05-06 21:04:30 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-06 22:39:03 UTC) #23
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/828bba82c5ed315cf073ad9599c0d5334a9a403d Cr-Commit-Position: refs/heads/master@{#328634}
5 years, 7 months ago (2015-05-06 22:40:33 UTC) #24
Nico
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/1131813002/ by thakis@chromium.org. ...
5 years, 7 months ago (2015-05-07 01:14:25 UTC) #25
hans
On 2015/05/07 01:14:25, Nico wrote: > A revert of this CL (patchset #4 id:60001) has ...
5 years, 7 months ago (2015-05-07 01:43:50 UTC) #26
scottmg
On 2015/05/07 01:43:50, hans wrote: > On 2015/05/07 01:14:25, Nico wrote: > > A revert ...
5 years, 7 months ago (2015-05-07 02:06:51 UTC) #27
hans
On 2015/05/07 02:06:51, scottmg wrote: > I'd recommend taking svn.exe out of your local PATH ...
5 years, 7 months ago (2015-05-07 02:12:54 UTC) #28
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/cd20b07ab7edf2a7bab8e34362cebe5f92b41a27 Cr-Commit-Position: refs/heads/master@{#328699}
5 years, 7 months ago (2015-05-07 03:50:22 UTC) #29
hans
Committed patchset #5 (id:80001) manually as cd20b07ab7edf2a7bab8e34362cebe5f92b41a27 (presubmit successful).
5 years, 7 months ago (2015-05-07 03:50:43 UTC) #30
hans
The first bot made it through: http://build.chromium.org/p/chromium.fyi/builders/CrWinClang64%28dll%29/builds/1275/steps/gclient%20runhooks/logs/stdio
5 years, 7 months ago (2015-05-07 04:21:29 UTC) #31
Nico
One side-effect that wasn't clear to me: The clang/win fyi bots no longer do clobber ...
5 years, 7 months ago (2015-05-10 05:43:48 UTC) #32
hans
5 years, 7 months ago (2015-05-10 18:34:49 UTC) #33
Message was sent while issue was closed.
On 2015/05/10 05:43:48, Nico wrote:
> One side-effect that wasn't clear to me: The clang/win fyi bots no longer do
> clobber builds if clang didn't change. That's not a problem, but it just got
> very scared for a few minutes when I saw two bots rebuilding only 3k TUs
between
> builds. It looks like this was correct and working as intended; I just didn't
> think of this being intentional immediately.

Right, and this matches the non-Windows Clang ToT builders. I think it's good
they're all mostly using the same scheme.

Powered by Google App Engine
This is Rietveld 408576698