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

Issue 1308083002: Fix javac command never caching input .md5s (Closed)

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

Description

Fix javac command never caching input .md5s This was broken over a year ago by http://crrev.com/a78eb479 This change also removes --classes-dir (which is currently unused), and makes --jar-path (always used) required. It also forces the command to run if the output is missing (rather than relying completely on the .stamp file) On my ubiquity machine: Add a log statement to a file in base_java then build chrome_apk: Before: real 2m25.188s user 4m52.950s sys 1m10.064s After: real 1m16.989s user 1m13.795s sys 0m44.040s BUG=523420, 379190 Committed: https://crrev.com/1c366880cb68fbf25050f1c6d78684eb6ae2e644 Cr-Commit-Position: refs/heads/master@{#346975}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Review comments and move depfile into md5 check #

Patch Set 3 : Add force=exists so that md5 doesn't prevent building when no output file exists #

Patch Set 4 : fnmatch helper #

Total comments: 2

Patch Set 5 : rebase #

Patch Set 6 : empty libs #

Patch Set 7 : add back --classes-dir to fix cast bbot #

Patch Set 8 : remove flag it actually is unused like i thought before #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -141 lines) Patch
M build/android/gyp/jar.py View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M build/android/gyp/javac.py View 1 2 3 4 5 7 6 chunks +112 lines, -129 lines 0 comments Download
M build/android/gyp/util/build_utils.py View 1 2 3 4 1 chunk +6 lines, -7 lines 0 comments Download
M build/android/rezip.gyp View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 25 (11 generated)
agrieve
On 2015/08/21 20:36:48, agrieve wrote: > mailto:agrieve@chromium.org changed reviewers: > + mailto:jbudorick@chromium.org Note: I think ...
5 years, 4 months ago (2015-08-21 20:37:42 UTC) #2
jbudorick
https://codereview.chromium.org/1308083002/diff/1/build/android/gyp/javac.py File build/android/gyp/javac.py (left): https://codereview.chromium.org/1308083002/diff/1/build/android/gyp/javac.py#oldcode122 build/android/gyp/javac.py:122: record_path = os.path.join(classes_dir, 'javac.md5.stamp') This is the fix, right? ...
5 years, 4 months ago (2015-08-23 02:50:51 UTC) #3
agrieve
https://codereview.chromium.org/1308083002/diff/1/build/android/gyp/javac.py File build/android/gyp/javac.py (left): https://codereview.chromium.org/1308083002/diff/1/build/android/gyp/javac.py#oldcode122 build/android/gyp/javac.py:122: record_path = os.path.join(classes_dir, 'javac.md5.stamp') On 2015/08/23 02:50:50, jbudorick wrote: ...
5 years, 4 months ago (2015-08-26 05:52:58 UTC) #4
jbudorick
https://codereview.chromium.org/1308083002/diff/60001/build/android/gyp/util/build_utils.py File build/android/gyp/util/build_utils.py (right): https://codereview.chromium.org/1308083002/diff/60001/build/android/gyp/util/build_utils.py#newcode240 build/android/gyp/util/build_utils.py:240: return filters and any(fnmatch.fnmatch(path, f) for f in filters) ...
5 years, 3 months ago (2015-09-01 16:28:09 UTC) #7
agrieve
https://codereview.chromium.org/1308083002/diff/60001/build/android/gyp/util/build_utils.py File build/android/gyp/util/build_utils.py (right): https://codereview.chromium.org/1308083002/diff/60001/build/android/gyp/util/build_utils.py#newcode240 build/android/gyp/util/build_utils.py:240: return filters and any(fnmatch.fnmatch(path, f) for f in filters) ...
5 years, 3 months ago (2015-09-01 16:58:18 UTC) #8
jbudorick
lgtm
5 years, 3 months ago (2015-09-02 01:18:16 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308083002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308083002/80001
5 years, 3 months ago (2015-09-02 15:02:56 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/110982)
5 years, 3 months ago (2015-09-02 15:19:55 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308083002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308083002/100001
5 years, 3 months ago (2015-09-02 16:34:24 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/64106)
5 years, 3 months ago (2015-09-02 16:51:44 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308083002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308083002/140001
5 years, 3 months ago (2015-09-02 17:12:07 UTC) #22
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 3 months ago (2015-09-02 18:33:25 UTC) #23
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/1c366880cb68fbf25050f1c6d78684eb6ae2e644 Cr-Commit-Position: refs/heads/master@{#346975}
5 years, 3 months ago (2015-09-02 18:34:08 UTC) #24
agrieve
5 years, 3 months ago (2015-09-02 20:30:54 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/1309663005/ by agrieve@chromium.org.

The reason for reverting is: Causing try-bot failures:

e.g.:
http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromiu....

Powered by Google App Engine
This is Rietveld 408576698