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

Issue 2832223002: diagnose_apk_bloat.py: support pre supersize revs. (Closed)

Created:
3 years, 8 months ago by estevenson
Modified:
3 years, 8 months ago
Reviewers:
agrieve
CC:
chromium-reviews, wnwen+watch_chromium.org, estevenson+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

diagnose_apk_bloat.py: support pre supersize revs. Previously if you tried to pass a rev created before tools/binary_size/supersize existed the script would fail. This CL fixes that by copying supersize to a temporary directory before running any git/gclient commands. Also fix _global_restore_checkout_func that became broken in https://codereview.chromium.org/2834103002/. BUG=710717 Review-Url: https://codereview.chromium.org/2832223002 Cr-Commit-Position: refs/heads/master@{#466511} Committed: https://chromium.googlesource.com/chromium/src/+/45ccc6e4217655e9f21e6257062c6e5b82bc22da

Patch Set 1 #

Patch Set 2 : uniform args: --archive-dir -> --archive-directory #

Total comments: 2

Patch Set 3 : Move tmp dir to SRC_ROOT #

Patch Set 4 : rebase #

Patch Set 5 : Fix _global_restore_checkout_func #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -31 lines) Patch
M tools/binary_size/diagnose_apk_bloat.py View 1 2 3 4 10 chunks +47 lines, -31 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
estevenson
3 years, 8 months ago (2017-04-21 16:57:14 UTC) #2
agrieve
https://codereview.chromium.org/2832223002/diff/20001/tools/binary_size/diagnose_apk_bloat.py File tools/binary_size/diagnose_apk_bloat.py (right): https://codereview.chromium.org/2832223002/diff/20001/tools/binary_size/diagnose_apk_bloat.py#newcode550 tools/binary_size/diagnose_apk_bloat.py:550: tmp_dir = tempfile.mkdtemp() This will break helpers.SOURCE_DIR, won't it? ...
3 years, 8 months ago (2017-04-21 17:00:30 UTC) #3
estevenson
https://codereview.chromium.org/2832223002/diff/20001/tools/binary_size/diagnose_apk_bloat.py File tools/binary_size/diagnose_apk_bloat.py (right): https://codereview.chromium.org/2832223002/diff/20001/tools/binary_size/diagnose_apk_bloat.py#newcode550 tools/binary_size/diagnose_apk_bloat.py:550: tmp_dir = tempfile.mkdtemp() On 2017/04/21 17:00:29, agrieve wrote: > ...
3 years, 8 months ago (2017-04-21 20:27:03 UTC) #4
agrieve
lgtm
3 years, 8 months ago (2017-04-21 20:36:48 UTC) #5
estevenson
Gah, also forgot the "global" when setting _global_restore_checkout_func in my last CL so I fixed ...
3 years, 8 months ago (2017-04-22 00:27:26 UTC) #7
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/2832223002/80001
3 years, 8 months ago (2017-04-22 00:28:21 UTC) #10
commit-bot: I haz the power
3 years, 8 months ago (2017-04-22 00:38:12 UTC) #13
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/45ccc6e4217655e9f21e6257062c...

Powered by Google App Engine
This is Rietveld 408576698