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

Issue 10867008: Get rid of device/host clock synchronization in android_commands.py. (Closed)

Created:
8 years, 4 months ago by Philippe
Modified:
8 years, 3 months ago
CC:
chromium-reviews, pam+watch_chromium.org, peter+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org
Visibility:
Public.

Description

Get rid of device/host clock synchronization in android_commands.py. Clocks can't be synchronized programmatically on non-rooted devices due to the inability to use the SET_TIME permission in non-system apps. We were depending on synchronization in AndroidCommands.PushIfNeeded() to handle incremental data push by comparing host and device file timestamps. This CL adds tools/android/m5sum and uses it in android_commands.py so that we can avoid depending on dates to handle incremental data push. This is a first step towards clock synchronization removal. BUG=143114 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154751

Patch Set 1 : #

Total comments: 20

Patch Set 2 : Make 1024 a constant #

Patch Set 3 : Address Isaac's comments #

Total comments: 9

Patch Set 4 : Address Isaac's comments #

Patch Set 5 : Get rid of $STRIP in md5sum.gyp #

Total comments: 8

Patch Set 6 : Address Peter's comments #

Patch Set 7 : Fix GYP file for Ninja builds #

Patch Set 8 : Small changes in android_commands.py. #

Total comments: 4

Patch Set 9 : Address Marcus' comments #

Total comments: 4

Patch Set 10 : Address Marcus' comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -74 lines) Patch
M build/all_android.gyp View 1 2 3 4 5 1 chunk +7 lines, -6 lines 0 comments Download
M build/android/pylib/android_commands.py View 1 2 3 4 5 6 7 8 9 9 chunks +60 lines, -63 lines 0 comments Download
M build/android/pylib/base_test_runner.py View 1 2 3 4 5 6 7 1 chunk +0 lines, -5 lines 0 comments Download
A tools/android/md5sum/md5sum.cc View 1 1 chunk +87 lines, -0 lines 0 comments Download
A tools/android/md5sum/md5sum.gyp View 1 2 3 4 5 6 1 chunk +65 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
Philippe
8 years, 4 months ago (2012-08-23 10:18:17 UTC) #1
Philippe
+isaac
8 years, 3 months ago (2012-08-27 09:18:39 UTC) #2
Isaac (away)
Thanks for the CC. Looks good! I have a couple suggestions... :-) https://chromiumcodereview.appspot.com/10867008/diff/7001/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py ...
8 years, 3 months ago (2012-08-27 10:43:15 UTC) #3
Philippe
https://chromiumcodereview.appspot.com/10867008/diff/7001/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://chromiumcodereview.appspot.com/10867008/diff/7001/build/android/pylib/android_commands.py#newcode25 build/android/pylib/android_commands.py:25: sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)), '..', On 2012/08/27 10:43:15, Isaac wrote: > Extract ...
8 years, 3 months ago (2012-08-28 09:48:28 UTC) #4
Isaac (away)
https://chromiumcodereview.appspot.com/10867008/diff/7001/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://chromiumcodereview.appspot.com/10867008/diff/7001/build/android/pylib/android_commands.py#newcode205 build/android/pylib/android_commands.py:205: self._md5sum_path = '%s/out/Debug/md5sum' % (chrome_src_path) I've recently added the ...
8 years, 3 months ago (2012-08-28 17:12:10 UTC) #5
Philippe
https://chromiumcodereview.appspot.com/10867008/diff/7001/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://chromiumcodereview.appspot.com/10867008/diff/7001/build/android/pylib/android_commands.py#newcode205 build/android/pylib/android_commands.py:205: self._md5sum_path = '%s/out/Debug/md5sum' % (chrome_src_path) On 2012/08/28 17:12:11, Isaac ...
8 years, 3 months ago (2012-08-29 08:36:45 UTC) #6
Isaac (away)
https://chromiumcodereview.appspot.com/10867008/diff/7001/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://chromiumcodereview.appspot.com/10867008/diff/7001/build/android/pylib/android_commands.py#newcode205 build/android/pylib/android_commands.py:205: self._md5sum_path = '%s/out/Debug/md5sum' % (chrome_src_path) Good point. I think ...
8 years, 3 months ago (2012-08-30 06:50:57 UTC) #7
Isaac (away)
python lgtm w/ some comments on the latest patch
8 years, 3 months ago (2012-08-30 06:52:51 UTC) #8
Philippe
https://chromiumcodereview.appspot.com/10867008/diff/17002/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://chromiumcodereview.appspot.com/10867008/diff/17002/build/android/pylib/android_commands.py#newcode206 build/android/pylib/android_commands.py:206: print >>sys.stderr, 'Please build md5sum (\'make md5sum\')' On 2012/08/30 ...
8 years, 3 months ago (2012-08-30 08:22:12 UTC) #9
Peter Beverloo
Thanks for removing $STRIP already :). Some more nits. https://chromiumcodereview.appspot.com/10867008/diff/24003/build/all_android.gyp File build/all_android.gyp (right): https://chromiumcodereview.appspot.com/10867008/diff/24003/build/all_android.gyp#newcode47 build/all_android.gyp:47: ...
8 years, 3 months ago (2012-08-30 12:45:14 UTC) #10
Isaac (away)
lgtm
8 years, 3 months ago (2012-08-30 18:18:49 UTC) #11
Philippe
I also had to change the GYP file slightly. It wasn't working with Ninja due ...
8 years, 3 months ago (2012-08-31 11:57:39 UTC) #12
Philippe
On 2012/08/31 11:57:39, Philippe wrote: > I also had to change the GYP file slightly. ...
8 years, 3 months ago (2012-08-31 11:57:52 UTC) #13
Philippe
On 2012/08/31 11:57:52, Philippe wrote: > On 2012/08/31 11:57:39, Philippe wrote: > > I also ...
8 years, 3 months ago (2012-08-31 12:50:54 UTC) #14
Peter Beverloo
Ok, thanks for trying. We can always iterate on the gyp optimizations later on. LGTM
8 years, 3 months ago (2012-09-03 09:13:40 UTC) #15
Philippe
On 2012/09/03 09:13:40, Peter Beverloo wrote: > Ok, thanks for trying. We can always iterate ...
8 years, 3 months ago (2012-09-03 12:56:56 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pliard@chromium.org/10867008/25003
8 years, 3 months ago (2012-09-03 13:01:12 UTC) #17
commit-bot: I haz the power
Presubmit check for 10867008-25003 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-09-03 13:01:18 UTC) #18
Philippe
+Marcus for tools/android/md5sum.
8 years, 3 months ago (2012-09-03 13:04:49 UTC) #19
bulach
lgtm, just a couple of nits and one suggestion for pushing the new tool to ...
8 years, 3 months ago (2012-09-03 13:22:15 UTC) #20
Philippe
Thanks Marcus. Please take another look before I submit this. https://chromiumcodereview.appspot.com/10867008/diff/25003/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://chromiumcodereview.appspot.com/10867008/diff/25003/build/android/pylib/android_commands.py#newcode212 ...
8 years, 3 months ago (2012-09-03 13:55:37 UTC) #21
bulach
lgtm, thanks! exporting BUILDTYPE seems a good idea, but I haven't participated in that change ...
8 years, 3 months ago (2012-09-03 14:20:55 UTC) #22
Philippe
https://chromiumcodereview.appspot.com/10867008/diff/36010/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://chromiumcodereview.appspot.com/10867008/diff/36010/build/android/pylib/android_commands.py#newcode540 build/android/pylib/android_commands.py:540: default_build_type = os.environ['BUILD_TYPE'] if 'BUILD_TYPE' in ( On 2012/09/03 ...
8 years, 3 months ago (2012-09-03 15:46:06 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pliard@chromium.org/10867008/26004
8 years, 3 months ago (2012-09-03 15:53:27 UTC) #24
Philippe
I will commit this tomorrow. I prefer to be around in case something breaks.
8 years, 3 months ago (2012-09-03 16:43:08 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pliard@chromium.org/10867008/26004
8 years, 3 months ago (2012-09-04 07:48:27 UTC) #26
Philippe
On 2012/09/04 07:48:27, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
8 years, 3 months ago (2012-09-04 08:53:04 UTC) #27
Peter Beverloo
On 2012/09/04 08:53:04, Philippe wrote: > On 2012/09/04 07:48:27, I haz the power (commit-bot) wrote: ...
8 years, 3 months ago (2012-09-04 09:51:45 UTC) #28
Philippe
On 2012/09/04 09:51:45, Peter Beverloo wrote: > On 2012/09/04 08:53:04, Philippe wrote: > > On ...
8 years, 3 months ago (2012-09-04 10:05:13 UTC) #29
commit-bot: I haz the power
List of reviewers changed. wangxianzhu@chromium.org did a drive-by without LGTM'ing!
8 years, 3 months ago (2012-09-04 12:05:40 UTC) #30
Philippe
On 2012/09/04 12:05:40, I haz the power (commit-bot) wrote: > List of reviewers changed. mailto:wangxianzhu@chromium.org ...
8 years, 3 months ago (2012-09-04 12:09:05 UTC) #31
Philippe
On 2012/09/04 12:09:05, Philippe wrote: > On 2012/09/04 12:05:40, I haz the power (commit-bot) wrote: ...
8 years, 3 months ago (2012-09-04 12:10:13 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pliard@chromium.org/10867008/26004
8 years, 3 months ago (2012-09-04 12:10:30 UTC) #33
commit-bot: I haz the power
8 years, 3 months ago (2012-09-04 14:28:57 UTC) #34
Change committed as 154751

Powered by Google App Engine
This is Rietveld 408576698