|
|
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. |
DescriptionFix 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 #
Created: 4 years, 1 month ago
Messages
Total messages: 12 (7 generated)
Description was changed from ========== Fix a subtle proguard incremental build error I encountered a confusing incremental build failure where proguard would read and write to the same file accidentally, failing hard. Happened after I switched the build config from not using proguard (so the output jar was a gn copy hardlink) to using proguard. Fix by checking if the output is not a hardlink to the input in the wrapper script. The build normally uses proguard on an apk, but makes it possible to try and only proguard a single jar, and this potentially only happens in this case. Worth fixing anyway I believe. ========== to ========== 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 this potentially only happens in this case. ==========
tsniatowski@opera.com changed reviewers: + jbudorick@chromium.org
On 2016/11/08 10:37:26, tsniatowski wrote: > mailto:tsniatowski@opera.com changed reviewers: > + mailto:jbudorick@chromium.org PTAL
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.... build/android/gyp/proguard.py:77: if out_inode and \ nit: please use parentheses instead of a trailing \ for continuation lines.
Description was changed from ========== 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 this potentially only happens in this case. ========== to ========== 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. ==========
The CQ bit was checked by tsniatowski@opera.com
The patchset sent to the CQ was uploaded after l-g-t-m from jbudorick@chromium.org Link to the patchset: https://codereview.chromium.org/2485663003/#ps20001 (title: "slash to paren")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== 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. ========== to ========== 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. ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== 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. ========== to ========== 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} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/20b2c575c5ca4b674de21261151af412e9959047 Cr-Commit-Position: refs/heads/master@{#430890} |