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

Issue 2485663003: Fix a subtle proguard incremental build error (Closed)

Created:
4 years, 1 month ago by tsniatowski
Modified:
4 years, 1 month ago
Reviewers:
jbudorick
CC:
chromium-reviews, mikecase+watch_chromium.org, jbudorick+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix a subtle proguard incremental build error Prevent a confusing incremental build failure where proguard would read and write to the same file accidentally, failing hard. Can happen after switching the build from not using proguard, where the output jar is a gn-copy hardlink to the input jar, to using proguard, where the output is written to by a script reading from the input jar. Fix by checking if the output is not a hardlink to the input in the wrapper script. NB. The build normally uses proguard on an apk, but makes it possible to try and only proguard a single jar, and the bug potentially only happens in this case. Committed: https://crrev.com/20b2c575c5ca4b674de21261151af412e9959047 Cr-Commit-Position: refs/heads/master@{#430890}

Patch Set 1 #

Total comments: 1

Patch Set 2 : slash to paren #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M build/android/gyp/proguard.py View 1 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (7 generated)
tsniatowski
On 2016/11/08 10:37:26, tsniatowski wrote: > mailto:tsniatowski@opera.com changed reviewers: > + mailto:jbudorick@chromium.org PTAL
4 years, 1 month ago (2016-11-08 10:37:39 UTC) #3
jbudorick
lgtm w/ nit Subtle indeed. Thanks for the patch! https://codereview.chromium.org/2485663003/diff/1/build/android/gyp/proguard.py File build/android/gyp/proguard.py (right): https://codereview.chromium.org/2485663003/diff/1/build/android/gyp/proguard.py#newcode77 build/android/gyp/proguard.py:77: ...
4 years, 1 month ago (2016-11-08 14:32:12 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2485663003/20001
4 years, 1 month ago (2016-11-09 07:23:47 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-09 08:23:11 UTC) #10
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 08:24:57 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/20b2c575c5ca4b674de21261151af412e9959047
Cr-Commit-Position: refs/heads/master@{#430890}

Powered by Google App Engine
This is Rietveld 408576698