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

Issue 1338123002: Make MB clobber build directories when switching between GYP and GN. (Closed)

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

Description

Make MB clobber build directories when switching between GYP and GN. GYP and GN put generated files in different places inside the build directory. This means that if you do a GYP build and then a GN build into the same directory, you may get unpredictable results depending on which generated files are picked up at what times. In order to avoid this, we modify MB to keep track of whether a given build directory has build files generated by GYP or GN; if there is a mismatch (like when we flip a bot from GYP to GN), we clobber the build directory and start from scratch to be safe. In addition, the first time we enable MB on a bot, we will not know what the existing build directory contains; to be safe, we do a clobber in this situation as well. R=brettw@chromium.org BUG= Committed: https://crrev.com/c161aa945c811b260f7f2981e592f63d16c3a106 Cr-Commit-Position: refs/heads/master@{#348705}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -2 lines) Patch
M tools/mb/mb.py View 4 chunks +42 lines, -1 line 2 comments Download
M tools/mb/mb_unittest.py View 7 chunks +42 lines, -1 line 0 comments Download

Messages

Total messages: 11 (1 generated)
Dirk Pranke
https://codereview.chromium.org/1338123002/diff/1/tools/mb/mb.py File tools/mb/mb.py (right): https://codereview.chromium.org/1338123002/diff/1/tools/mb/mb.py#newcode296 tools/mb/mb.py:296: 'gyp_defines': '', this was a bug caught by the ...
5 years, 3 months ago (2015-09-12 00:49:41 UTC) #1
brettw
https://codereview.chromium.org/1338123002/diff/1/tools/mb/mb.py File tools/mb/mb.py (right): https://codereview.chromium.org/1338123002/diff/1/tools/mb/mb.py#newcode856 tools/mb/mb.py:856: # In other places in chromium, we often have ...
5 years, 3 months ago (2015-09-12 02:08:25 UTC) #2
Dirk Pranke
On 2015/09/12 02:08:25, brettw wrote: > https://codereview.chromium.org/1338123002/diff/1/tools/mb/mb.py > File tools/mb/mb.py (right): > > https://codereview.chromium.org/1338123002/diff/1/tools/mb/mb.py#newcode856 > ...
5 years, 3 months ago (2015-09-12 15:39:49 UTC) #3
brettw
okay, whatever. LGTM
5 years, 3 months ago (2015-09-12 22:34:49 UTC) #4
brettw
okay, whatever. LGTM
5 years, 3 months ago (2015-09-12 22:34:49 UTC) #5
brettw
okay, whatever. LGTM
5 years, 3 months ago (2015-09-12 22:34:50 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1338123002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1338123002/1
5 years, 3 months ago (2015-09-14 18:30:02 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 3 months ago (2015-09-14 20:21:19 UTC) #9
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/c161aa945c811b260f7f2981e592f63d16c3a106 Cr-Commit-Position: refs/heads/master@{#348705}
5 years, 3 months ago (2015-09-14 20:22:06 UTC) #10
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:36:41 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/c161aa945c811b260f7f2981e592f63d16c3a106
Cr-Commit-Position: refs/heads/master@{#348705}

Powered by Google App Engine
This is Rietveld 408576698