New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 707529 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

"org.chromium.chrome.browser.contextualsearch.ContextualSearchManagerTest#testHidesWhenOmniboxFocused" is flaky

Project Member Reported by chromium...@appspot.gserviceaccount.com, Apr 1 2017

Issue description

"org.chromium.chrome.browser.contextualsearch.ContextualSearchManagerTest#testHidesWhenOmniboxFocused" is flaky.

This issue was created automatically by the chromium-try-flakes app. Please find the right owner to fix the respective test/step and assign this issue to them. If the step/test is infrastructure-related, please add Infra-Troopers label and change issue status to Untriaged. When done, please remove the issue from Sheriff Bug Queue by removing the Sheriff-Chromium label.

We have detected 5 recent flakes. List of all flakes can be found at https://chromium-try-flakes.appspot.com/all_flake_occurrences?key=ahVzfmNocm9taXVtLXRyeS1mbGFrZXNybwsSBUZsYWtlImRvcmcuY2hyb21pdW0uY2hyb21lLmJyb3dzZXIuY29udGV4dHVhbHNlYXJjaC5Db250ZXh0dWFsU2VhcmNoTWFuYWdlclRlc3QjdGVzdEhpZGVzV2hlbk9tbmlib3hGb2N1c2VkDA.

Flaky tests should be disabled within 30 minutes unless culprit CL is found and reverted. Please see more details here: https://sites.google.com/a/chromium.org/dev/developers/tree-sheriffs/sheriffing-bug-queues#triaging-auto-filed-flakiness-bugs
 
Cc: maxmorin@chromium.org
Components: UI>Browser>Search>ContextualSearch UI>Browser>Contextual>Search
Owner: ti...@chromium.org
Status: Assigned (was: Untriaged)
Timav: Could you help find an owner for this issue? Could https://codereview.chromium.org/2740103006 be related?
Project Member

Comment 2 by bugdroid1@chromium.org, Apr 4 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/e272b699ad6aeb171ed6d4433d8caf1212fb424d

commit e272b699ad6aeb171ed6d4433d8caf1212fb424d
Author: maxmorin <maxmorin@chromium.org>
Date: Tue Apr 04 09:11:29 2017

Disable flaky ContextualSearchManagerTest#testHidesWhenOmniboxFocused.

TBR=donnd@chromium.org
BUG=707529

Review-Url: https://codereview.chromium.org/2794253002
Cr-Commit-Position: refs/heads/master@{#461666}

[modify] https://crrev.com/e272b699ad6aeb171ed6d4433d8caf1212fb424d/chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManagerTest.java

Labels: -Sheriff-Chromium
Cc: twelling...@chromium.org ti...@chromium.org
Components: -UI>Browser>Contextual>Search -UI>Browser>Search>ContextualSearch UI>Browser>Mobile>TouchToSearch
Owner: donnd@chromium.org
It looks like this has been flaking for a while and just hit the threshold for tryflakes to report.

It's possible that this is related to the errors we were seeing after wnwen@'s changes to make tests startup faster, because the timeout is happening due to the omnibox not being focusable. OmniboxTestUtils#toggleUrlBarFocus has this comment:

// During early startup (before completion of its first onDraw), the UrlBar
// is not focusable. Tests have to wait for that to happen before trying to focus it.


org.chromium.chrome.browser.contextualsearch.ContextualSearchManagerTest#testHidesWhenOmniboxFocused (run #1):
junit.framework.AssertionFailedError: UrlBar was not focusable
	at org.chromium.content.browser.test.util.CriteriaHelper.pollInstrumentationThread(CriteriaHelper.java:79)
	at org.chromium.content.browser.test.util.CriteriaHelper.pollUiThread(CriteriaHelper.java:117)
	at org.chromium.content.browser.test.util.CriteriaHelper.pollUiThread(CriteriaHelper.java:138)
	at org.chromium.chrome.test.util.OmniboxTestUtils.toggleUrlBarFocus(OmniboxTestUtils.java:291)
	at org.chromium.chrome.browser.contextualsearch.ContextualSearchManagerTest.testHidesWhenOmniboxFocused(ContextualSearchManagerTest.java:1106)
	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:758)
	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)
Screen Shot 2017-04-04 at 8.54.52 AM.png
86.6 KB View Download
It does look like this got a lot more flaky on the 30th, which correlates with when Tima's change landed, so it's possible they are related.

It appears that the Contextual Search test is the only one failing when calling the OmniboxTestUtils method.

Comment 6 by ti...@chromium.org, Apr 4 2017

setUp() now takes longer. Can it be the reason?
It would be interesting to run the test w/ and w/out the setup change to see if that's to blame.

Comment 8 by ti...@chromium.org, Apr 4 2017

c#6: Sorry, I was referring to the wrong test.

Comment 9 by ti...@chromium.org, Apr 4 2017

I cannot think of anything obvious without actually debugging.

From reading your comments, is there a way to reliably wait for until the omnibox becomes focusable before

https://cs.corp.google.com/clankium/src/chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManagerTest.java?rcl=0&l=1106
It would be more reliable to wait for a callback rather than relying on polling. It's odd that all of sudden the omnibox isn't focusable in the default timeout duration, though.

Sign in to add a comment