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

Issue 650691 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 628964
Owner: ----
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 1
Type: Bug



Sign in to add a comment

"org.chromium.content.browser.input.ImeTest#testInputTextEvents_SetComposingText with {--enable-features=ImeThread}" is flaky

Project Member Reported by chromium...@appspot.gserviceaccount.com, Sep 27 2016

Issue description

"org.chromium.content.browser.input.ImeTest#testInputTextEvents_SetComposingText with {--enable-features=ImeThread}" 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 4 recent flakes. List of all flakes can be found at https://chromium-try-flakes.appspot.com/all_flake_occurrences?key=ahVzfmNocm9taXVtLXRyeS1mbGFrZXNyfQsSBUZsYWtlInJvcmcuY2hyb21pdW0uY29udGVudC5icm93c2VyLmlucHV0LkltZVRlc3QjdGVzdElucHV0VGV4dEV2ZW50c19TZXRDb21wb3NpbmdUZXh0IHdpdGggey0tZW5hYmxlLWZlYXR1cmVzPUltZVRocmVhZH0M.

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

This flaky test/step was previously tracked in  issue 649474 .
 

Comment 1 by boliu@chromium.org, Sep 27 2016

Cc: aelias@chromium.org changwan@chromium.org yabinh@chromium.org
Components: UI>Input>Text>IME
Labels: -Sheriff-Chromium OS-Android
Status: Available (was: Untriaged)
this one already has Retry, so disable then?
Project Member

Comment 2 by chromium...@appspot.gserviceaccount.com, Oct 3 2016

Labels: Sheriff-Chromium
Detected 3 new flakes for test/step "org.chromium.content.browser.input.ImeTest#testInputTextEvents_SetComposingText with {--enable-features=ImeThread}". To see the actual flakes, please visit https://chromium-try-flakes.appspot.com/all_flake_occurrences?key=ahVzfmNocm9taXVtLXRyeS1mbGFrZXNyfQsSBUZsYWtlInJvcmcuY2hyb21pdW0uY29udGVudC5icm93c2VyLmlucHV0LkltZVRlc3QjdGVzdElucHV0VGV4dEV2ZW50c19TZXRDb21wb3NpbmdUZXh0IHdpdGggey0tZW5hYmxlLWZlYXR1cmVzPUltZVRocmVhZH0M. This message was posted automatically by the chromium-try-flakes app. Since flakiness is ongoing, the issue was moved back into Sheriff Bug Queue (unless already there).
Project Member

Comment 4 by bugdroid1@chromium.org, Oct 3 2016

Comment 5 by boliu@chromium.org, Oct 3 2016

Labels: -Sheriff-Chromium
Mergedinto: 628964
Status: Duplicate (was: Available)
Cc: yosin@chromium.org
6 Ime tests have similar problem.

In ImeAdapter#sendCompositionToNative(), we call nativeCommitText or nativeSetComposingText (fire selectionchange event), then we call nativeSendKeyEvent (fire keyup event). So selectionchange event should come before keyup event. But in fact, the former usually comes after the latter. 

In FrameSelection::moveCaretSelection, we put the selectionchange event in a queue (See the below link). As a result, selectionchange event gets delayed. Do we have a good reason for putting it in a queue? 

@yosin, what do you think?

https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/editing/FrameSelection.cpp?q=enqueueDocumentEvent&sq=package:chromium&l=280&dr=C
 

Regardless of whether there is a good reason, we generally shouldn't make a change to production behavior purely to make things easier to test.  Can you change the ImeTests to be pass regardless of whether they receive keyup or selectionchange first?
OK. I'll change it to listen to selectionchange event and other events separately  to make the test pass.
Project Member

Comment 10 by bugdroid1@chromium.org, Nov 4 2016

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

commit 4d1708cdd327cc4f038addd36153e0b86082bf2d
Author: yabinh <yabinh@chromium.org>
Date: Fri Nov 04 06:30:15 2016

Fix some flaky event tests in ImeTest

Some Ime tests are flaky because the event order is incorrect. Since
selectionchange event is queued, it's delayed and often comes after other
event, e.g. keyup event. As a workaround, we can ignore the order of
selectionchange event.

BUG= 650691 , 628964 

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

[modify] https://crrev.com/4d1708cdd327cc4f038addd36153e0b86082bf2d/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java
[modify] https://crrev.com/4d1708cdd327cc4f038addd36153e0b86082bf2d/content/test/data/android/input/input_forms.html

Sign in to add a comment