New issue
Advanced search Search tips

Issue 622586 link

Starred by 2 users

Issue metadata

Status: Archived
Owner: ----
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

org.chromium.chrome.browser.translate.TranslateInfoBarTest#testTranslateNeverPanel is skipped but expected to pass?

Project Member Reported by martiniss@chromium.org, Jun 23 2016

Issue description

The test is showing up on SOM because it was supposed to PASS, but instead was SKIP, according to test-results. I don't know how to read the log well enough. Should it show up in sheriff-o-matic?

Example log: https://uberchromegw.corp.google.com/i/chromium.android/builders/Lollipop%20Low-end%20Tester/builds/3535/steps/chrome_public_test_apk/logs/stdio
 
Something strange is going on with that run beyond SoM. It's failing:

I 1034.428s run_tests_on_device(AG86044208C42GC)  detected failure in org.chromium.chrome.browser.translate.TranslateInfoBarTest#testTranslateNeverPanel. raw output:
I 1034.428s run_tests_on_device(AG86044208C42GC)    INSTRUMENTATION_RESULT: stream=
I 1034.429s run_tests_on_device(AG86044208C42GC)    Test results for ChromeInstrumentationTestRunner=Test run aborted due to unexpected exception: null
I 1034.429s run_tests_on_device(AG86044208C42GC)    java.lang.ExceptionInInitializerError
I 1034.429s run_tests_on_device(AG86044208C42GC)    	at org.chromium.base.ContextUtils.getAppSharedPreferences(ContextUtils.java:89)
I 1034.429s run_tests_on_device(AG86044208C42GC)    	at org.chromium.chrome.browser.tabmodel.DocumentModeAssassin.isOptedOutOfDocumentMode(DocumentModeAssassin.java:553)
I 1034.429s run_tests_on_device(AG86044208C42GC)    	at org.chromium.chrome.browser.util.FeatureUtilities.isDocumentMode(FeatureUtilities.java:118)
I 1034.429s run_tests_on_device(AG86044208C42GC)    	at org.chromium.chrome.test.ChromeInstrumentationTestRunner$DisableInTabbedModeSkipCheck.shouldSkip(ChromeInstrumentationTestRunner.java:104)
I 1034.429s run_tests_on_device(AG86044208C42GC)    	at org.chromium.base.test.BaseTestResult.shouldSkip(BaseTestResult.java:89)
I 1034.429s run_tests_on_device(AG86044208C42GC)    	at org.chromium.base.test.BaseTestResult.run(BaseTestResult.java:111)
I 1034.429s run_tests_on_device(AG86044208C42GC)    	at junit.framework.TestCase.run(TestCase.java:124)
I 1034.429s run_tests_on_device(AG86044208C42GC)    	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
I 1034.429s run_tests_on_device(AG86044208C42GC)    	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
I 1034.429s run_tests_on_device(AG86044208C42GC)    	at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)
I 1034.429s run_tests_on_device(AG86044208C42GC)    	at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1853)
I 1034.429s run_tests_on_device(AG86044208C42GC)    Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
I 1034.429s run_tests_on_device(AG86044208C42GC)    	at android.preference.PreferenceManager.getDefaultSharedPreferencesName(PreferenceManager.java:374)
I 1034.430s run_tests_on_device(AG86044208C42GC)    	at android.preference.PreferenceManager.getDefaultSharedPreferences(PreferenceManager.java:369)
I 1034.430s run_tests_on_device(AG86044208C42GC)    	at org.chromium.base.ContextUtils.fetchAppSharedPreferences(ContextUtils.java:78)
I 1034.430s run_tests_on_device(AG86044208C42GC)    	at org.chromium.base.ContextUtils.access$000(ContextUtils.java:17)
I 1034.430s run_tests_on_device(AG86044208C42GC)    	at org.chromium.base.ContextUtils$Holder.<clinit>(ContextUtils.java:26)
I 1034.430s run_tests_on_device(AG86044208C42GC)    	... 11 more
I 1034.430s run_tests_on_device(AG86044208C42GC)    
I 1034.430s run_tests_on_device(AG86044208C42GC)    INSTRUMENTATION_CODE: -1

but it's being reported as skipped.
... not to mention that we're still doing the document mode check?
Grey boxes mean SKIP (click legend in the upper right)
Suppose I should've guessed that.
Components: Infra>Sheriffing>SheriffOMatic
Components: -Infra>Sheriffing
This still a problem?
Status: Archived (was: Available)
Not seeing that error any more in the log or SoM, so I don't think so.

Sign in to add a comment