Lots of failing tests on downstream bots (nakasi, occam-svelte, volantis, android-one) |
||
Issue descriptionSee https://uberchromegw.corp.google.com/i/internal.client.clank/builders/android-one/builds/3075 Suspected CL in range: https://codereview.chromium.org/1770883004 twellington: Can you take a look? I don't really see why this CL is related, but it's the only android-related one in the range.
,
Mar 9 2016
this also may be responsible for some of the failures on chromium.android, e.g. https://build.chromium.org/p/chromium.android/builders/Lollipop%20Phone%20Tester
,
Mar 9 2016
It seems likely since the last Lollipop Phone Tester build with the revert was successful.
Not at all sure what's going on yet, but I'm investigating
I can repro locally (passes w/out patch, fails w/ patch).
The only thing in the logs is:
03-09 08:55:36.320 28819 3420 W ActivityManager: Spurious death for ProcessRecord{584ec99 0:com.google.android.apps.chrome/u0a112},
,
Mar 9 2016
Found the root cause - context.getApplicationContext() is returning null, which in retrospect makes sense since Instrumetnation's getContext() is the context of the instrumentation's package rather than the application ( http://developer.android.com/reference/android/app/Instrumentation.html#getContext() ) I'm going to close this out and land another patch using my original bug. I'll keep a close eye on the bots today to make sure I don't break everything again.
,
Mar 9 2016
,
Mar 9 2016
To close the loop on this, the fix is to change incorrect uses of Instrumentation.getContext() to getTargetContext(). I found some instances in our base istrum classes, running all of the small tests locally to look for other incorrect uses. |
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Mar 9 2016