Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Intermittent UI test failure - SmokeTest.editCustomSearchEngineTest #21540

Closed
sv-ohorvath opened this issue Sep 28, 2021 · 9 comments
Closed
Assignees
Labels
eng:disabled-test For any test that has been disabled eng:intermittent-test Evil test failures that only happen now-and-then and are a productivity killer eng:ui-test UI Tests

Comments

@sv-ohorvath
Copy link
Contributor

sv-ohorvath commented Sep 28, 2021

Firebase Test Run:

https://console.firebase.google.com/project/moz-fenix/testlab/histories/bh.66b7091e15d53d45/matrices/8266266295243895427/executions/bs.3645e7ee27e73c92/testcases/1/test-cases

Stacktrace:

java.lang.IllegalArgumentException: Can't scroll to index 5, it is out of bounds [0, 0) at androidx.compose.foundation.lazy.LazySemanticsKt$lazyListSemantics$1$3.invoke(LazySemantics.kt:78) at androidx.compose.foundation.lazy.LazySemanticsKt$lazyListSemantics$1$3.invoke(LazySemantics.kt:77) at androidx.compose.ui.test.ActionsKt$performScrollToIndex$2.invoke(Actions.kt:145) at androidx.compose.ui.test.ActionsKt$performScrollToIndex$2.invoke(Actions.kt:144) at androidx.compose.ui.test.junit4.AndroidSynchronization_androidKt$sam$java_util_concurrent_Callable$0.call(Unknown Source:2) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at android.app.Instrumentation$SyncRunnable.run(Instrumentation.java:2163) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Build:

Main 9/28

┆Issue is synchronized with this Jira Task

@sv-ohorvath sv-ohorvath added eng:intermittent-test Evil test failures that only happen now-and-then and are a productivity killer eng:ui-test UI Tests labels Sep 28, 2021
@github-actions github-actions bot added the needs:triage Issue needs triage label Sep 28, 2021
@sv-ohorvath sv-ohorvath removed the needs:triage Issue needs triage label Sep 30, 2021
@AndiAJ
Copy link
Collaborator

AndiAJ commented Sep 30, 2021

Flaky 1x on 9/29 Main Firebase link

@AndiAJ
Copy link
Collaborator

AndiAJ commented Sep 30, 2021

Fixed with #21591

@AndiAJ AndiAJ closed this as completed Sep 30, 2021
@Archaeopteryx Archaeopteryx reopened this Oct 1, 2021
@Archaeopteryx
Copy link

Still observed for 0d9e2b3 (log).

pkirakosyan pushed a commit to gexsi/user-agent-android that referenced this issue Oct 1, 2021
@sv-ohorvath
Copy link
Contributor Author

sv-ohorvath commented Oct 1, 2021

Failed 2/2 runs on 10/1: logs

new stacktrace:
java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at org.junit.Assert.assertTrue(Assert.java:42) at org.junit.Assert.assertTrue(Assert.java:53) at org.mozilla.fenix.ui.robots.SettingsSubMenuSearchRobot.saveNewSearchEngine(SettingsSubMenuSearchRobot.kt:61) at org.mozilla.fenix.ui.SmokeTest$editCustomSearchEngineTest$4.invoke(SmokeTest.kt:565) at org.mozilla.fenix.ui.SmokeTest$editCustomSearchEngineTest$4.invoke(SmokeTest.kt:561) at org.mozilla.fenix.ui.robots.SettingsRobot$Transition.openSearchSubMenu(SettingsRobot.kt:128) at org.mozilla.fenix.ui.SmokeTest.editCustomSearchEngineTest(SmokeTest.kt:561)

@sv-ohorvath sv-ohorvath added the eng:disabled-test For any test that has been disabled label Oct 1, 2021
mergify bot pushed a commit that referenced this issue Oct 1, 2021
AndiAJ added a commit to AndiAJ/fenix that referenced this issue Oct 8, 2021
@AndiAJ
Copy link
Collaborator

AndiAJ commented Oct 12, 2021

Fixed with #21803

@AndiAJ AndiAJ closed this as completed Oct 12, 2021
@Archaeopteryx Archaeopteryx reopened this Oct 12, 2021
@Archaeopteryx
Copy link

Still an issue.

@AaronMT
Copy link
Contributor

AaronMT commented Oct 13, 2021

@AndiAJ Can you take a look at this one tomorrow?

java.lang.AssertionError
at org.junit.Assert.fail(Assert.java:87)
at org.junit.Assert.assertTrue(Assert.java:42)
at org.junit.Assert.assertTrue(Assert.java:53)
at org.mozilla.fenix.ui.robots.SettingsSubMenuSearchRobot.saveNewSearchEngine(SettingsSubMenuSearchRobot.kt:60)
at org.mozilla.fenix.ui.SmokeTest$editCustomSearchEngineTest$4.invoke(SmokeTest.kt:563)
at org.mozilla.fenix.ui.SmokeTest$editCustomSearchEngineTest$4.invoke(SmokeTest.kt:559)
at org.mozilla.fenix.ui.robots.SettingsRobot$Transition.openSearchSubMenu(SettingsRobot.kt:128)
at org.mozilla.fenix.ui.SmokeTest.editCustomSearchEngineTest(SmokeTest.kt:559)

@AndiAJ
Copy link
Collaborator

AndiAJ commented Oct 13, 2021

Disabled it in #21881
It looks like the search string to use is set only partially leading to an error when trying to save the custom search engine (saveNewSearchEngine())

@AndiAJ
Copy link
Collaborator

AndiAJ commented Oct 14, 2021

The fix from #21884 is live for almost a day and seems to working properly.
I'll go ahead and close this issue.

@AndiAJ AndiAJ closed this as completed Oct 14, 2021
pkirakosyan pushed a commit to gexsi/user-agent-android that referenced this issue Mar 7, 2022
pkirakosyan pushed a commit to gexsi/user-agent-android that referenced this issue Mar 7, 2022
pkirakosyan pushed a commit to gexsi/user-agent-android that referenced this issue Mar 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
eng:disabled-test For any test that has been disabled eng:intermittent-test Evil test failures that only happen now-and-then and are a productivity killer eng:ui-test UI Tests
Projects
None yet
Development

No branches or pull requests

4 participants