New issue
Advanced search Search tips

Issue 673681 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Oct 18
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug

Blocking:
issue 698335



Sign in to add a comment

ContextualSearchManagerTest#testQuickActionCaptionAndImage flaky on Android

Project Member Reported by yutak@chromium.org, Dec 13 2016

Issue description

https://build.chromium.org/p/chromium.linux/builders/Android%20Tests?numbuilds=100

Contexual Search related tests started failing randomly since around
master@{#437965}.

I first suspected and reverted master@{#437959} but that did not work.

CCing random people I found from git-blame.

***** Instance #1 *****

org.chromium.chrome.browser.contextualsearch.ContextualSearchManagerTest#testQuickActionCaptionAndImage (run #1):
junit.framework.AssertionFailedError: Values did not match. Expected: Search, actual: null
	at org.chromium.content.browser.test.util.CriteriaHelper.pollInstrumentationThread(CriteriaHelper.java:74)
	at org.chromium.chrome.browser.contextualsearch.ContextualSearchManagerTest.waitForSelectionToBe(ContextualSearchManagerTest.java:214)
	at org.chromium.chrome.browser.contextualsearch.ContextualSearchFakeServer$FakeTapSearch.simulate(ContextualSearchFakeServer.java:206)
	at org.chromium.chrome.browser.contextualsearch.ContextualSearchManagerTest.simulateTapSearch(ContextualSearchManagerTest.java:296)
	at org.chromium.chrome.browser.contextualsearch.ContextualSearchManagerTest.testQuickActionCaptionAndImage(ContextualSearchManagerTest.java:2743)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)
	at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)
	at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)
	at org.chromium.chrome.test.ChromeActivityTestCaseBase.runTest(ChromeActivityTestCaseBase.java:726)
	at org.chromium.base.test.BaseTestResult.runParameterized(BaseTestResult.java:161)
	at org.chromium.base.test.BaseTestResult.run(BaseTestResult.java:124)
	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
	at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)
	at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1701)

***** Instance #2 *****

org.chromium.chrome.browser.contextualsearch.ContextualSearchManagerTest#testPreventHandlingCurrentSelectionModification (run #1):
junit.framework.AssertionFailedError: Panel did not enter PEEKED state. Instead, the current state is CLOSED.
	at org.chromium.content.browser.test.util.CriteriaHelper.pollInstrumentationThread(CriteriaHelper.java:74)
	at org.chromium.chrome.browser.contextualsearch.ContextualSearchManagerTest.waitForPanelToEnterState(ContextualSearchManagerTest.java:691)
	at org.chromium.chrome.browser.contextualsearch.ContextualSearchManagerTest.waitForPanelToPeek(ContextualSearchManagerTest.java:657)
	at org.chromium.chrome.browser.contextualsearch.ContextualSearchManagerTest.longPressNode(ContextualSearchManagerTest.java:197)
	at org.chromium.chrome.browser.contextualsearch.ContextualSearchManagerTest.testPreventHandlingCurrentSelectionModification(ContextualSearchManagerTest.java:2026)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)
	at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)
	at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)
	at org.chromium.chrome.test.ChromeActivityTestCaseBase.runTest(ChromeActivityTestCaseBase.java:726)
	at org.chromium.base.test.BaseTestResult.runParameterized(BaseTestResult.java:161)
	at org.chromium.base.test.BaseTestResult.run(BaseTestResult.java:124)
	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
	at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)
	at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1701)
 
Summary: ContextualSearchManagerTest#testQuickActionCaptionAndImage flaky on Android (was: Contexual Search tests became flaky on Android)
The patch is going to collide with  issue 673684 , which is handling testPreventHandlingCurrentSelectionModification

#testQuickActionCaptionControl() should get the @RetryOnFailure annotation instead of @Disabled if it is flaky.

Based on the upstream flakiness dashboard, it flakes very, very infrequently: https://test-results.appspot.com/dashboards/flakiness_dashboard.html#testType=chrome_public_test_apk&tests=ContextualSearchManagerTest%23testQuickActionCaptionAndImage

nednguyen@ -- can you please include links to the suspected first failed build and the CL you tried to revert?
Labels: Tests-Disabled
Cc: -boliu@chromium.org
Components: -UI>Browser>Search>ContextualSearch Tests>Flaky UI>Browser>Mobile>TouchToSearch
Labels: -Pri-1 -Tests-Disabled Pri-2
Owner: twelling...@chromium.org
Status: Assigned (was: Untriaged)
Labels: Tests-Disabled
The test wasn't actually disabled (it was marked @RetryOnFailure), so why is the Tests-Disabled annotation needed?
Labels: -Tests-Disabled -Sheriff-Chromium
It should not have Tests-Disabled, removed. Also removed sheriff label.
All of our contextual search tests are now marked as @RetryOnFailure. Donn -- do we have a master bug this can be marked as blocking?
Blocking: 698335
Components: Tests>Disabled
Labels: Test-Disabled
Status: Fixed (was: Assigned)
This hasn't reported any flakes recently that I'm aware of.

Sign in to add a comment