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

Issue 1356873003: CallAndRecordIfStale(): Add knownledge of output_files, depfiles, stamp (Closed)

Created:
5 years, 3 months ago by agrieve
Modified:
5 years, 3 months ago
Reviewers:
stgao, jbudorick
CC:
chromium-reviews, jbudorick+watch_chromium.org, klundberg+watch_chromium.org, pkotwicz, yfriedman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@incremental-script-dep
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CallAndRecordIfStale(): Add knownledge of output_files, depfiles, stamp Added output_paths to md5_check.py since it cuts down on force=os.path.exists() boilder-plate (plus places that were forgetting it). It also improves the message printed when PRINT_MD5_DIFFS=1 is set. Added a wrapper in build_utils.py that automatically handles --depfile and --stamp options, which further cuts down on boilerplate in the clients. Removed colorama to eliminate circular dependency between build_utils and md5_check. BUG=533442 Committed: https://crrev.com/dea0f30983bc18874ac8c49443fb5079d4c1b798 Cr-Commit-Position: refs/heads/master@{#350599}

Patch Set 1 #

Total comments: 5

Patch Set 2 : add test #

Total comments: 3

Patch Set 3 : comments 1 #

Total comments: 5

Patch Set 4 : add assert and remove map() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -137 lines) Patch
M build/android/PRESUBMIT.py View 1 1 chunk +1 line, -0 lines 0 comments Download
M build/android/gyp/dex.py View 1 2 2 chunks +83 lines, -68 lines 0 comments Download
M build/android/gyp/javac.py View 1 2 6 chunks +16 lines, -27 lines 0 comments Download
M build/android/gyp/proguard.py View 1 2 2 chunks +5 lines, -15 lines 0 comments Download
M build/android/gyp/util/build_utils.py View 1 2 3 2 chunks +43 lines, -0 lines 0 comments Download
M build/android/gyp/util/md5_check.py View 1 2 3 4 chunks +40 lines, -26 lines 0 comments Download
M build/android/gyp/util/md5_check_test.py View 1 3 chunks +15 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (3 generated)
jbudorick
https://codereview.chromium.org/1356873003/diff/1/build/android/gyp/util/build_utils.py File build/android/gyp/util/build_utils.py (right): https://codereview.chromium.org/1356873003/diff/1/build/android/gyp/util/build_utils.py#newcode405 build/android/gyp/util/build_utils.py:405: def CallAndRecordIfStale(function, options, record_path=None, input_paths=None, curious: why'd you put ...
5 years, 3 months ago (2015-09-18 18:19:38 UTC) #2
agrieve
https://codereview.chromium.org/1356873003/diff/1/build/android/gyp/util/build_utils.py File build/android/gyp/util/build_utils.py (right): https://codereview.chromium.org/1356873003/diff/1/build/android/gyp/util/build_utils.py#newcode405 build/android/gyp/util/build_utils.py:405: def CallAndRecordIfStale(function, options, record_path=None, input_paths=None, On 2015/09/18 18:19:38, jbudorick ...
5 years, 3 months ago (2015-09-18 18:46:19 UTC) #3
jbudorick
https://codereview.chromium.org/1356873003/diff/1/build/android/gyp/util/build_utils.py File build/android/gyp/util/build_utils.py (right): https://codereview.chromium.org/1356873003/diff/1/build/android/gyp/util/build_utils.py#newcode405 build/android/gyp/util/build_utils.py:405: def CallAndRecordIfStale(function, options, record_path=None, input_paths=None, On 2015/09/18 at 18:46:19, ...
5 years, 3 months ago (2015-09-23 14:56:37 UTC) #4
agrieve
Renamed the wrapper to "CallAndWriteDepfileIfStale". Hopefully that'll make the distinction more clear. https://codereview.chromium.org/1356873003/diff/20001/build/android/gyp/dex.py File build/android/gyp/dex.py ...
5 years, 3 months ago (2015-09-23 17:51:49 UTC) #5
jbudorick
Different function names should be fine. https://codereview.chromium.org/1356873003/diff/40001/build/android/gyp/util/md5_check.py File build/android/gyp/util/md5_check.py (right): https://codereview.chromium.org/1356873003/diff/40001/build/android/gyp/util/md5_check.py#newcode44 build/android/gyp/util/md5_check.py:44: record_path = record_path ...
5 years, 3 months ago (2015-09-24 15:16:48 UTC) #6
agrieve
https://codereview.chromium.org/1356873003/diff/40001/build/android/gyp/util/md5_check.py File build/android/gyp/util/md5_check.py (right): https://codereview.chromium.org/1356873003/diff/40001/build/android/gyp/util/md5_check.py#newcode44 build/android/gyp/util/md5_check.py:44: record_path = record_path or output_paths[0] + '.md5.stamp' On 2015/09/24 ...
5 years, 3 months ago (2015-09-24 15:40:44 UTC) #7
jbudorick
lgtm https://codereview.chromium.org/1356873003/diff/40001/build/android/gyp/util/md5_check.py File build/android/gyp/util/md5_check.py (right): https://codereview.chromium.org/1356873003/diff/40001/build/android/gyp/util/md5_check.py#newcode44 build/android/gyp/util/md5_check.py:44: record_path = record_path or output_paths[0] + '.md5.stamp' On ...
5 years, 3 months ago (2015-09-24 15:42:57 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1356873003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1356873003/60001
5 years, 3 months ago (2015-09-24 16:08:27 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 3 months ago (2015-09-24 17:48:32 UTC) #11
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/dea0f30983bc18874ac8c49443fb5079d4c1b798 Cr-Commit-Position: refs/heads/master@{#350599}
5 years, 3 months ago (2015-09-24 17:49:31 UTC) #12
stgao
FYI: This CL seems to have broken http://build.chromium.org/p/chromium/builders/Android http://build.chromium.org/p/chromium.gpu/builders/Android%20Debug%20%28Nexus%206%29
5 years, 3 months ago (2015-09-24 19:15:08 UTC) #14
dtu
On 2015/09/24 19:15:08, Shuotao wrote: > FYI: > > This CL seems to have broken ...
5 years, 3 months ago (2015-09-24 19:22:53 UTC) #15
Cait (Slow)
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/1369583002/ by caitkp@chromium.org. ...
5 years, 3 months ago (2015-09-24 19:37:20 UTC) #16
agrieve
5 years, 3 months ago (2015-09-24 20:04:04 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/1362113003/ by agrieve@chromium.org.

The reason for reverting is: Fixed import path and ensure "ninja all" builds
locally.

Powered by Google App Engine
This is Rietveld 408576698