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

Issue 1926793002: 👔 Move side-loaded test data /sdcard -> /sdcard/gtestdata (Closed)

Created:
4 years, 7 months ago by agrieve
Modified:
4 years, 7 months ago
Reviewers:
jbudorick, mef, Nico
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, cbentzel+watch_chromium.org, jbudorick+watch_chromium.org, mikecase+watch_chromium.org, michaelbai, Michael van Ouwerkerk
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move side-loaded test data /sdcard -> /sdcard/chromium_tests_root And use delete_device_stale=True when pushing. This will prevent tests mistakenly passing when they depend on stale data files from a previous test. BUG=607169 Committed: https://crrev.com/0fe567512193cc8fbfcfd006ff1d504bd6346290 Cr-Commit-Position: refs/heads/master@{#396169}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : missing import #

Patch Set 4 : fix cast compile #

Total comments: 16

Patch Set 5 : gtestdata -> chromium_tests_root #

Patch Set 6 : rebase #

Patch Set 7 : gyp #

Patch Set 8 : gyp2 #

Patch Set 9 : manifest #

Patch Set 10 : android_manifest_path -> android_manifest_path% #

Patch Set 11 : rebase #

Total comments: 26

Patch Set 12 : some review fixes #

Total comments: 1

Patch Set 13 : rebase #

Patch Set 14 : Fix embedded test server not initializing PathProvider overrides #

Patch Set 15 : attempt to fix cronet #

Patch Set 16 : Add a couple more places to init native dirs. Note though that these failing tests all passed for m… #

Patch Set 17 : Was passing due to stale files on my /sdcard. Now should be fixed. QuicTestServer had a ref to e::a… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -56 lines) Patch
M base/base_paths_android.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -2 lines 0 comments Download
M base/test/android/javatests/src/org/chromium/base/test/util/UrlUtils.java View 1 2 3 4 2 chunks +9 lines, -2 lines 0 comments Download
M base/test/test_support_android.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M base/test/test_support_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +15 lines, -8 lines 0 comments Download
M build/android/pylib/local/device/local_device_gtest_run.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -3 lines 0 comments Download
M build/android/pylib/local/device/local_device_instrumentation_test_run.py View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +12 lines, -6 lines 0 comments Download
M build/android/pylib/remote/device/remote_device_test_run.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M build/apk_test.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M chrome/common/chrome_paths.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M components/cronet/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -0 lines 0 comments Download
M components/cronet/android/test/mock_cert_verifier.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +11 lines, -3 lines 0 comments Download
M components/cronet/android/test/native_test_server.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +8 lines, -1 line 0 comments Download
M components/cronet/android/test/quic_test_server.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +12 lines, -6 lines 0 comments Download
M components/cronet/android/test/src/org/chromium/net/MockCertVerifier.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -2 lines 0 comments Download
M components/cronet/android/test/src/org/chromium/net/NativeTestServer.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +3 lines, -2 lines 0 comments Download
M components/cronet/android/test/src/org/chromium/net/QuicTestServer.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +4 lines, -2 lines 0 comments Download
M net/test/android/javatests/src/org/chromium/net/test/EmbeddedTestServer.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -8 lines 0 comments Download
M net/test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerImpl.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -2 lines 0 comments Download
M net/test/android/javatests/src/org/chromium/net/test/util/CertTestUtil.java View 2 chunks +2 lines, -2 lines 0 comments Download
M net/test/embedded_test_server/android/embedded_test_server_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -1 line 0 comments Download
M testing/android/native_test.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M testing/android/native_test/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M testing/android/native_test/java/src/org/chromium/native_test/NativeTestActivity.java View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -2 lines 0 comments Download
M testing/android/native_test/native_test_launcher.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 65 (27 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1926793002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1926793002/20001
4 years, 7 months ago (2016-04-27 16:46:35 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_rel/builds/57709)
4 years, 7 months ago (2016-04-27 17:10:42 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1926793002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1926793002/40001
4 years, 7 months ago (2016-04-27 17:16:49 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/57412) linux_android_rel_ng on ...
4 years, 7 months ago (2016-04-27 17:35:06 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1926793002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1926793002/60001
4 years, 7 months ago (2016-04-27 17:40:40 UTC) #10
agrieve
Daily dose of scary cl...
4 years, 7 months ago (2016-04-27 19:30:21 UTC) #12
jbudorick
On 2016/04/27 19:30:21, agrieve wrote: > Daily dose of scary cl... uh, yeah. Do you ...
4 years, 7 months ago (2016-04-27 19:32:32 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-27 19:41:29 UTC) #15
agrieve
On 2016/04/27 19:32:32, jbudorick wrote: > On 2016/04/27 19:30:21, agrieve wrote: > > Daily dose ...
4 years, 7 months ago (2016-04-27 19:46:23 UTC) #16
jbudorick
On 2016/04/27 19:46:23, agrieve wrote: > On 2016/04/27 19:32:32, jbudorick wrote: > > On 2016/04/27 ...
4 years, 7 months ago (2016-04-27 19:49:01 UTC) #17
jbudorick
This scares me more after review than it did before. https://codereview.chromium.org/1926793002/diff/60001/base/base_paths_android.cc File base/base_paths_android.cc (right): https://codereview.chromium.org/1926793002/diff/60001/base/base_paths_android.cc#newcode45 ...
4 years, 7 months ago (2016-04-27 19:59:01 UTC) #18
jbudorick
https://codereview.chromium.org/1926793002/diff/60001/base/base_paths_android.cc File base/base_paths_android.cc (right): https://codereview.chromium.org/1926793002/diff/60001/base/base_paths_android.cc#newcode45 base/base_paths_android.cc:45: *result = result->Append(FILE_PATH_LITERAL("gtestdata")); On 2016/04/27 19:59:01, jbudorick wrote: > ...
4 years, 7 months ago (2016-04-27 20:00:31 UTC) #19
agrieve
Another reason we should not be using the sdcard root: etiquette. The sdcard is a ...
4 years, 7 months ago (2016-04-27 20:26:32 UTC) #20
jbudorick
https://codereview.chromium.org/1926793002/diff/60001/base/base_paths_android.cc File base/base_paths_android.cc (right): https://codereview.chromium.org/1926793002/diff/60001/base/base_paths_android.cc#newcode45 base/base_paths_android.cc:45: *result = result->Append(FILE_PATH_LITERAL("gtestdata")); On 2016/04/27 20:26:31, agrieve wrote: > ...
4 years, 7 months ago (2016-04-27 20:41:36 UTC) #21
agrieve
https://codereview.chromium.org/1926793002/diff/60001/base/test/android/javatests/src/org/chromium/base/test/util/UrlUtils.java File base/test/android/javatests/src/org/chromium/base/test/util/UrlUtils.java (right): https://codereview.chromium.org/1926793002/diff/60001/base/test/android/javatests/src/org/chromium/base/test/util/UrlUtils.java#newcode40 base/test/android/javatests/src/org/chromium/base/test/util/UrlUtils.java:40: return PathUtils.getExternalStorageDirectory() + "/gtestdata"; On 2016/04/27 20:41:36, jbudorick wrote: ...
4 years, 7 months ago (2016-04-29 15:56:35 UTC) #22
agrieve
On 2016/04/29 15:56:35, agrieve wrote: > https://codereview.chromium.org/1926793002/diff/60001/base/test/android/javatests/src/org/chromium/base/test/util/UrlUtils.java > File base/test/android/javatests/src/org/chromium/base/test/util/UrlUtils.java > (right): > > https://codereview.chromium.org/1926793002/diff/60001/base/test/android/javatests/src/org/chromium/base/test/util/UrlUtils.java#newcode40 ...
4 years, 7 months ago (2016-05-05 00:41:10 UTC) #23
agrieve
On 2016/05/05 00:41:10, agrieve wrote: > On 2016/04/29 15:56:35, agrieve wrote: > > > https://codereview.chromium.org/1926793002/diff/60001/base/test/android/javatests/src/org/chromium/base/test/util/UrlUtils.java ...
4 years, 7 months ago (2016-05-12 01:43:21 UTC) #24
jbudorick
While this still scares me, I'm increasingly convinced that this is a good idea overall. ...
4 years, 7 months ago (2016-05-18 14:23:38 UTC) #25
agrieve
https://codereview.chromium.org/1926793002/diff/200001/base/test/test_support_android.cc File base/test/test_support_android.cc (right): https://codereview.chromium.org/1926793002/diff/200001/base/test/test_support_android.cc#newcode21 base/test/test_support_android.cc:21: base::FilePath* g_test_data_dir = nullptr; On 2016/05/18 14:23:38, jbudorick wrote: ...
4 years, 7 months ago (2016-05-19 02:11:53 UTC) #26
jbudorick
https://codereview.chromium.org/1926793002/diff/200001/testing/android/native_test/java/src/org/chromium/native_test/NativeTestActivity.java File testing/android/native_test/java/src/org/chromium/native_test/NativeTestActivity.java (right): https://codereview.chromium.org/1926793002/diff/200001/testing/android/native_test/java/src/org/chromium/native_test/NativeTestActivity.java#newcode141 testing/android/native_test/java/src/org/chromium/native_test/NativeTestActivity.java:141: mStdoutFifo, getApplicationContext(), UrlUtils.getIsolatedTestRoot()); On 2016/05/18 14:23:38, jbudorick wrote: > ...
4 years, 7 months ago (2016-05-23 17:27:31 UTC) #27
agrieve
On 2016/05/23 17:27:31, jbudorick wrote: > https://codereview.chromium.org/1926793002/diff/200001/testing/android/native_test/java/src/org/chromium/native_test/NativeTestActivity.java > File > testing/android/native_test/java/src/org/chromium/native_test/NativeTestActivity.java > (right): > > ...
4 years, 7 months ago (2016-05-24 14:05:19 UTC) #28
jbudorick
This still scares me, but lgtm. Please watch this + warn sheriffs when you land ...
4 years, 7 months ago (2016-05-24 19:13:52 UTC) #29
agrieve
thakis@chromium.org: Please review changes in base/, chrome/ mef@chromium.org: Please review changes in net/
4 years, 7 months ago (2016-05-25 13:28:51 UTC) #31
Nico
lgtm good luck!
4 years, 7 months ago (2016-05-25 13:35:26 UTC) #32
mef
+xunjieli net/ lgtm Do we need to do any similar changes for cronet tests?
4 years, 7 months ago (2016-05-25 14:36:27 UTC) #33
agrieve
On 2016/05/25 14:36:27, mef wrote: > +xunjieli > > net/ lgtm > > Do we ...
4 years, 7 months ago (2016-05-25 14:41:39 UTC) #34
xunjieli
On 2016/05/25 14:36:27, mef wrote: > +xunjieli > > net/ lgtm > > Do we ...
4 years, 7 months ago (2016-05-25 14:43:31 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1926793002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1926793002/240001
4 years, 7 months ago (2016-05-25 14:43:44 UTC) #39
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/76421)
4 years, 7 months ago (2016-05-25 16:42:02 UTC) #42
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1926793002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1926793002/260001
4 years, 7 months ago (2016-05-25 18:11:28 UTC) #50
commit-bot: I haz the power
Dry run: None
4 years, 7 months ago (2016-05-25 18:12:45 UTC) #52
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1926793002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1926793002/320001
4 years, 7 months ago (2016-05-26 02:55:43 UTC) #54
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-26 04:33:02 UTC) #56
commit-bot: I haz the power
Dry run: None
4 years, 7 months ago (2016-05-26 04:33:09 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1926793002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1926793002/320001
4 years, 7 months ago (2016-05-26 13:46:29 UTC) #60
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years, 7 months ago (2016-05-26 13:50:30 UTC) #62
commit-bot: I haz the power
Patchset 17 (id:??) landed as https://crrev.com/0fe567512193cc8fbfcfd006ff1d504bd6346290 Cr-Commit-Position: refs/heads/master@{#396169}
4 years, 7 months ago (2016-05-26 13:51:41 UTC) #64
agrieve
4 years, 7 months ago (2016-05-26 14:52:13 UTC) #65
Message was sent while issue was closed.
A revert of this CL (patchset #17 id:320001) has been created in
https://codereview.chromium.org/2011763007/ by agrieve@chromium.org.

The reason for reverting is: Broke webview tests:
https://build.chromium.org/p/chromium.android/builders/Android%20Webview%20M%....

Powered by Google App Engine
This is Rietveld 408576698