Investigate StrictMode violation causing flaky tests |
|||
Issue descriptionissue 767423 and issue 767153 are causing flaky tests. First - whitelist affected codepaths Second - investigate reason behind flakiness Third - remove whitelisting if it makes sense Please link other StrictMode bugs that affect tests here.
,
Oct 3 2017
The cause of the StrictMode violation seems to be a Slog.wtf call in ActivityManagerService (https://android.googlesource.com/platform/frameworks/base/+/android-4.4.4_r2.0.1/services/java/com/android/server/am/ActiveServices.java#2081): // Sanity check: if the service listed for the app is not one // we actually are maintaining, just let it drop. if (smap.mServicesByName.get(sr.name) != sr) { ServiceRecord cur = smap.mServicesByName.get(sr.name); Slog.wtf(TAG, "Service " + sr + " in process " + app + " not same as in map: " + cur); continue; }
,
Oct 17 2017
,
Nov 16 2017
Slog.wtf would have caused a crash anyways, so I think this is a flake in Android that we can't really fix (even if we turn off StrictMode completely which I think loses much benefit). Hopefully we will migrate off Android 4 for testing in the coming years. See Log.wtf in android code. |
|||
►
Sign in to add a comment |
|||
Comment 1 by bugdroid1@chromium.org
, Sep 21 2017