Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent UI test failure - AddonsTest.removeAddonTest #1710

Open
sv-ohorvath opened this issue Nov 4, 2021 · 10 comments
Open

Intermittent UI test failure - AddonsTest.removeAddonTest #1710

sv-ohorvath opened this issue Nov 4, 2021 · 10 comments
Labels
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

Firebase Test Run:

Flaky 1/2 tries.
https://console.firebase.google.com/project/moz-reference-browser-230023/testlab/histories/bh.b4e77beaed81bc1c/matrices/7623436030602708407/executions/bs.e0c7fc91709e535c

Stacktrace:

java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at org.junit.Assert.assertTrue(Assert.java:42) at org.junit.Assert.assertNotNull(Assert.java:713) at org.junit.Assert.assertNotNull(Assert.java:723) at org.mozilla.reference.browser.ext.UiDeviceKt.waitAndInteract(UiDevice.kt:20) at org.mozilla.reference.browser.ui.robots.AddonsManagerRobot.dismissAddonDownloadCompletedPrompt(AddonsManagerRobot.kt:60) at org.mozilla.reference.browser.ui.AddonsTest$removeAddonTest$3.invoke(AddonsTest.kt:98) at org.mozilla.reference.browser.ui.AddonsTest$removeAddonTest$3.invoke(AddonsTest.kt:93) at org.mozilla.reference.browser.ui.robots.ThreeDotMenuRobot$Transition.openAddonsManager(ThreeDotMenuRobot.kt:136) at org.mozilla.reference.browser.ui.AddonsTest.removeAddonTest(AddonsTest.kt:93)

Build:

debug 11/4. Started with #1704

@sv-ohorvath sv-ohorvath added eng:ui-test UI Tests eng:intermittent-test Evil test failures that only happen now-and-then and are a productivity killer labels Nov 4, 2021
@sv-ohorvath sv-ohorvath changed the title Intermittent UI test failure - removeAddonTest Intermittent UI test failure - AddonsTest.removeAddonTest Nov 4, 2021
@AndiAJ
Copy link
Contributor

AndiAJ commented Nov 19, 2021

Flaky 1x on 11/18 Main Firebase link

@sv-ohorvath
Copy link
Author

sv-ohorvath commented Dec 6, 2021

Now it hit a crash, 1/2 tries: https://console.firebase.google.com/project/moz-reference-browser-230023/testlab/histories/bh.b4e77beaed81bc1c/matrices/6687367008273650919/executions/bs.885ef2dbeea6fd82/issues

java.lang.IllegalStateException: Couldn't find the primary search account among the accounts. FATAL EXCEPTION: BG Thread #3 Process: com.google.android.googlequicksearchbox:search, PID: 16220 java.lang.IllegalStateException: Couldn't find the primary search account among the accounts. at com.google.android.libraries.search.a.c.b.m.apply(PG:2) at com.google.apps.tiktok.tracing.dw.apply(PG:2) at com.google.common.w.a.g.d(PG:2) at com.google.common.w.a.h.run(PG:9) at com.google.android.libraries.i.ah.run(PG:1) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at com.google.android.libraries.i.e.run(PG:2) at com.google.android.libraries.i.s.run(PG:4) at java.lang.Thread.run(Thread.java:919)

Posted a question on Firebase slack channel if this might be a device-related crash: https://firebase-community.slack.com/archives/C1MTSQ5QT/p1638800721298500
LE: in response to my question on Firebase slack:
"com.google.android.googlequicksearchbox is a package built into our virtual devices, and we can't remove/disable it easily. It's also integrated into the OS, so it may not be possible at all. I can't tell what the root cause of this error is, but it can be possible that a recent change in the googlequicksearchbox is causing these issues. "

@AndiAJ
Copy link
Contributor

AndiAJ commented Feb 18, 2022

Flaky on 2/17 Main Firebase link

@Archaeopteryx
Copy link

Today: 2/2 failures, rerun with a new task succeeded:

androidx.test.espresso.NoMatchingViewException: No views in hierarchy found matching: (with id: org.mozilla.reference.browser.debug:id/allow_button and with string from resource id: <2131820794>) 

@sv-ohorvath
Copy link
Author

From the logs, it seems that it timed out waiting for a confirmation dialog to install an add-on. Similar failure on mozilla-mobile/fenix#24815

@AndiAJ
Copy link
Contributor

AndiAJ commented Nov 9, 2022

Closing, as it didn't fail recently.

@AndiAJ AndiAJ closed this as completed Nov 9, 2022
@AndiAJ
Copy link
Contributor

AndiAJ commented Sep 15, 2023

► Failed 1x on 9/14
Firebase link
Firebase link

The problem seems to be happening after clicking the "Ok got it" button, the icon of uBlock Origin disappears, and another confirmation dialog is displayed.

@AndiAJ AndiAJ reopened this Sep 15, 2023
Amejia481 added a commit to Amejia481/reference-browser that referenced this issue Sep 15, 2023
…ost-Installation dialog from AddonsFragment
mergify bot pushed a commit that referenced this issue Sep 18, 2023
@AndiAJ
Copy link
Contributor

AndiAJ commented Oct 12, 2023

@AndiAJ
Copy link
Contributor

AndiAJ commented Jun 6, 2024

► 6/5 Firebase link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

3 participants