Splitting from https://bugs.chromium.org/p/chromium/issues/detail?id=715972#c8 It seems likely that this is related to my change yesterday that enabled multidex builds of chrome_public_test_apk: https://chromium.googlesource.com/chromium/src/+/78730f18fc734d034e44d0dc63091562be82edae
Confirmed that this is multidex locally.
For some reason, the test-multidex keeps getting nuked during execution, so we have to extract the secondary dexes in *each* test. :(
This is https://codesearch.chromium.org/chromium/src/chrome/test/android/javatests/src/org/chromium/chrome/test/util/ApplicationData.java?rcl=3531cd6ab4ee74146c2a0fd834a54c71c9c4178f&l=40, which currently deletes both the directory into which we extract secondary dexes and the SharedPreferences that MultiDex uses to save the hashes of dex files it has extracted. This issue isn't new -- it likely has been affecting debug builds of chrome_public_test_apk, where the app is multidex, for a while -- but it is newly affecting the trybots. https://codereview.chromium.org/2854503002/ contains a fix.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/039ec1ad2eaec6f13bfdda8cb3ac5e5d8cdc32b3 commit 039ec1ad2eaec6f13bfdda8cb3ac5e5d8cdc32b3 Author: jbudorick <jbudorick@chromium.org> Date: Mon May 01 18:13:03 2017 [Android] Keep extracted secondary dex files when clearing data in tests. BUG= 716029 Review-Url: https://codereview.chromium.org/2854503002 Cr-Commit-Position: refs/heads/master@{#468356} [modify] https://crrev.com/039ec1ad2eaec6f13bfdda8cb3ac5e5d8cdc32b3/base/BUILD.gn [modify] https://crrev.com/039ec1ad2eaec6f13bfdda8cb3ac5e5d8cdc32b3/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumRunnerCommon.java [modify] https://crrev.com/039ec1ad2eaec6f13bfdda8cb3ac5e5d8cdc32b3/chrome/test/android/BUILD.gn [modify] https://crrev.com/039ec1ad2eaec6f13bfdda8cb3ac5e5d8cdc32b3/chrome/test/android/javatests/src/org/chromium/chrome/test/util/ApplicationData.java
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/36e4d367d46aa8da9c8e29e66388f6368d68fca7 commit 36e4d367d46aa8da9c8e29e66388f6368d68fca7 Author: jbudorick <jbudorick@chromium.org> Date: Mon May 01 22:35:55 2017 Revert of [Android] Keep extracted secondary dex files when clearing data in tests. (patchset #2 id:20001 of https://codereview.chromium.org/2854503002/ ) Reason for revert: primary suspect for crbug.com/717267 Original issue's description: > [Android] Keep extracted secondary dex files when clearing data in tests. > > BUG= 716029 > > Review-Url: https://codereview.chromium.org/2854503002 > Cr-Commit-Position: refs/heads/master@{#468356} > Committed: https://chromium.googlesource.com/chromium/src/+/039ec1ad2eaec6f13bfdda8cb3ac5e5d8cdc32b3 TBR=agrieve@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG= 716029 Review-Url: https://codereview.chromium.org/2849323002 Cr-Commit-Position: refs/heads/master@{#468460} [modify] https://crrev.com/36e4d367d46aa8da9c8e29e66388f6368d68fca7/base/BUILD.gn [modify] https://crrev.com/36e4d367d46aa8da9c8e29e66388f6368d68fca7/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumRunnerCommon.java [modify] https://crrev.com/36e4d367d46aa8da9c8e29e66388f6368d68fca7/chrome/test/android/BUILD.gn [modify] https://crrev.com/36e4d367d46aa8da9c8e29e66388f6368d68fca7/chrome/test/android/javatests/src/org/chromium/chrome/test/util/ApplicationData.java
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/73357e2349014d7638b891070dc5d557e78f87fa commit 73357e2349014d7638b891070dc5d557e78f87fa Author: jbudorick <jbudorick@chromium.org> Date: Tue May 02 18:59:06 2017 [Android] Keep extracted secondary dex files when clearing data in tests. (RELAND) BUG= 716029 Review-Url: https://codereview.chromium.org/2853003003 Cr-Commit-Position: refs/heads/master@{#468728} [modify] https://crrev.com/73357e2349014d7638b891070dc5d557e78f87fa/base/BUILD.gn [modify] https://crrev.com/73357e2349014d7638b891070dc5d557e78f87fa/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumRunnerCommon.java [modify] https://crrev.com/73357e2349014d7638b891070dc5d557e78f87fa/build/android/main_dex_classes.flags [modify] https://crrev.com/73357e2349014d7638b891070dc5d557e78f87fa/chrome/test/android/BUILD.gn [modify] https://crrev.com/73357e2349014d7638b891070dc5d557e78f87fa/chrome/test/android/javatests/src/org/chromium/chrome/test/util/ApplicationData.java
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/76829422650ba99655e67f7f3c2b8589bdc5438b commit 76829422650ba99655e67f7f3c2b8589bdc5438b Author: John Budorick <jbudorick@chromium.org> Date: Fri May 05 22:42:55 2017 [Android] Keep extracted secondary dex files when clearing data in tests. (RELAND) cherry pick to M59 BUG= 716029 (cherry picked from commit 73357e2349014d7638b891070dc5d557e78f87fa) Review-Url: https://codereview.chromium.org/2861273002 . Cr-Commit-Position: refs/branch-heads/3071@{#427} Cr-Branched-From: a106f0abbf69dad349d4aaf4bcc4f5d376dd2377-refs/heads/master@{#464641} [modify] https://crrev.com/76829422650ba99655e67f7f3c2b8589bdc5438b/base/BUILD.gn [modify] https://crrev.com/76829422650ba99655e67f7f3c2b8589bdc5438b/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumRunnerCommon.java [modify] https://crrev.com/76829422650ba99655e67f7f3c2b8589bdc5438b/build/android/main_dex_classes.flags [modify] https://crrev.com/76829422650ba99655e67f7f3c2b8589bdc5438b/chrome/test/android/BUILD.gn [modify] https://crrev.com/76829422650ba99655e67f7f3c2b8589bdc5438b/chrome/test/android/javatests/src/org/chromium/chrome/test/util/ApplicationData.java
Comment 1 by jbudorick@chromium.org
, Apr 28 2017