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

Issue 157743004: android: Require exe unittests to have a foo_unittest_stripped target. (Closed)

Created:
6 years, 10 months ago by Nico
Modified:
6 years, 10 months ago
CC:
chromium-reviews, craigdh+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, klundberg+watch_chromium.org, agl, jln+watch_chromium.org, frankf+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

android: Require exe unittests to have a foo_unittest_stripped target. This allows the test runner to not depend on the STRIP env var, which is going away. Other approaches considered: 1. Converting the remaining exe-based tests to apk tests. The apk versions were slower, and didn't pass without other changes though. 2. Just don't strip. But that slows down these two tests by over 100% (due to copying data to the device is slow, and stripped size is 0.5MB while unstripped size is on the order of 10MB). 3. Try to get a trip binary from third_party/android_tools/ndk. That's fiddly since it requires getting the right arch. Since there are only two exe-based tests left, just strip them from gyp. Medium-term, maybe gyp/mac's postbuild stuff can be brought to android, it looks like there are various things that could be made simpler with that. BUG=142642 TEST= build/android/test_runner.py gtest -s sandbox_linux_unittests && build/android/test_runner.py gtest -s breakpad_unittests R=bulach@chromium.org, frankf@chromium.org TBR=jln, thestig Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250035

Patch Set 1 #

Total comments: 7

Patch Set 2 : debug #

Patch Set 3 : debug more #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -23 lines) Patch
M breakpad/breakpad.gyp View 1 chunk +15 lines, -0 lines 0 comments Download
M build/all.gyp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M build/android/pylib/gtest/test_package_exe.py View 1 2 1 chunk +16 lines, -21 lines 0 comments Download
M sandbox/linux/sandbox_linux.gypi View 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Nico
6 years, 10 months ago (2014-02-08 01:07:12 UTC) #1
bulach
lgtm, thanks for pushing this nico!
6 years, 10 months ago (2014-02-08 01:22:41 UTC) #2
frankf
lgtm after fixes https://codereview.chromium.org/157743004/diff/1/build/android/pylib/gtest/test_package_exe.py File build/android/pylib/gtest/test_package_exe.py (right): https://codereview.chromium.org/157743004/diff/1/build/android/pylib/gtest/test_package_exe.py#newcode127 build/android/pylib/gtest/test_package_exe.py:127: logging.critical('Did not find %s, build target ...
6 years, 10 months ago (2014-02-08 01:34:43 UTC) #3
frankf
https://codereview.chromium.org/157743004/diff/1/build/android/pylib/gtest/test_package_exe.py File build/android/pylib/gtest/test_package_exe.py (right): https://codereview.chromium.org/157743004/diff/1/build/android/pylib/gtest/test_package_exe.py#newcode133 build/android/pylib/gtest/test_package_exe.py:133: if target_mtime < source_mtime: On 2014/02/08 01:34:43, frankf wrote: ...
6 years, 10 months ago (2014-02-08 01:43:36 UTC) #4
Nico
Thanks! https://codereview.chromium.org/157743004/diff/1/build/android/pylib/gtest/test_package_exe.py File build/android/pylib/gtest/test_package_exe.py (right): https://codereview.chromium.org/157743004/diff/1/build/android/pylib/gtest/test_package_exe.py#newcode127 build/android/pylib/gtest/test_package_exe.py:127: logging.critical('Did not find %s, build target %s', On ...
6 years, 10 months ago (2014-02-08 02:13:16 UTC) #5
Nico
On 2014/02/08 02:13:16, Nico wrote: > Thanks! > > https://codereview.chromium.org/157743004/diff/1/build/android/pylib/gtest/test_package_exe.py > File build/android/pylib/gtest/test_package_exe.py (right): > ...
6 years, 10 months ago (2014-02-08 02:20:30 UTC) #6
Nico
The CQ bit was checked by thakis@chromium.org
6 years, 10 months ago (2014-02-08 02:20:34 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/157743004/1
6 years, 10 months ago (2014-02-08 02:21:45 UTC) #8
Nico
The CQ bit was unchecked by thakis@chromium.org
6 years, 10 months ago (2014-02-08 02:40:17 UTC) #9
Nico
https://codereview.chromium.org/157743004/diff/1/build/android/pylib/gtest/test_package_exe.py File build/android/pylib/gtest/test_package_exe.py (right): https://codereview.chromium.org/157743004/diff/1/build/android/pylib/gtest/test_package_exe.py#newcode133 build/android/pylib/gtest/test_package_exe.py:133: if target_mtime < source_mtime: On 2014/02/08 01:43:37, frankf wrote: ...
6 years, 10 months ago (2014-02-08 02:43:44 UTC) #10
Nico
https://codereview.chromium.org/157743004/diff/1/build/android/pylib/gtest/test_package_exe.py File build/android/pylib/gtest/test_package_exe.py (right): https://codereview.chromium.org/157743004/diff/1/build/android/pylib/gtest/test_package_exe.py#newcode133 build/android/pylib/gtest/test_package_exe.py:133: if target_mtime < source_mtime: On 2014/02/08 02:43:45, Nico wrote: ...
6 years, 10 months ago (2014-02-08 02:47:53 UTC) #11
Nico
On third thought, zip files should conserve mtimes. I added a bit of debugging and ...
6 years, 10 months ago (2014-02-08 19:45:49 UTC) #12
Nico
Relatively often, the _stripped binary is just one second older than the non-stripped one. unix2dostime ...
6 years, 10 months ago (2014-02-09 00:08:58 UTC) #13
Nico
I think https://codereview.chromium.org/157743004/ will make the bots like this CL. On Sat, Feb 8, 2014 ...
6 years, 10 months ago (2014-02-09 23:15:41 UTC) #14
Nico
On 2014/02/09 23:15:41, Nico wrote: > I think https://codereview.chromium.org/157743004/ will make the bots like > ...
6 years, 10 months ago (2014-02-09 23:35:35 UTC) #15
Nico
The CQ bit was checked by thakis@chromium.org
6 years, 10 months ago (2014-02-10 01:37:40 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/157743004/400001
6 years, 10 months ago (2014-02-10 01:37:54 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-10 01:54:40 UTC) #18
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=49161
6 years, 10 months ago (2014-02-10 01:54:40 UTC) #19
Nico
+tbr thestig for breakpad, jln for sandbox/linux
6 years, 10 months ago (2014-02-10 02:14:49 UTC) #20
Nico
Committed patchset #3 manually as r250035.
6 years, 10 months ago (2014-02-10 02:18:22 UTC) #21
frankf
https://codereview.chromium.org/157743004/diff/1/build/android/pylib/gtest/test_package_exe.py File build/android/pylib/gtest/test_package_exe.py (right): https://codereview.chromium.org/157743004/diff/1/build/android/pylib/gtest/test_package_exe.py#newcode127 build/android/pylib/gtest/test_package_exe.py:127: logging.critical('Did not find %s, build target %s', To be ...
6 years, 10 months ago (2014-02-10 18:27:11 UTC) #22
Lei Zhang
6 years, 10 months ago (2014-02-10 23:23:16 UTC) #23
Message was sent while issue was closed.
breakpad lgtm

Powered by Google App Engine
This is Rietveld 408576698