fenix
fenix copied to clipboard
Intermittent Unit Test failure - StartupTypeTelemetryTest.GIVEN all possible path and state combinations WHEN record telemetry THEN the labels are incremented the appropriate number of times
Test Run:
Test failed in https://github.com/mozilla-mobile/fenix/pull/26379 - https://firefoxci.taskcluster-artifacts.net/LQafwb_IT0OnOQnz8stOLw/0/public/reports/test/testDebugUnitTest/index.html
Stacktrace:
java.lang.AssertionError: label: hot_unknown expected:<2> but was:<1> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:834) at org.junit.Assert.assertEquals(Assert.java:118) at org.mozilla.fenix.perf.StartupTypeTelemetryTest.GIVEN all possible path and state combinations WHEN record telemetry THEN the labels are incremented the appropriate number of times(StartupTypeTelemetryTest.kt:82) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at org.robolectric.RobolectricTestRunner$HelperTestRunner$1.evaluate(RobolectricTestRunner.java:591) at org.robolectric.internal.SandboxTestRunner$2.lambda$evaluate$0(SandboxTestRunner.java:274) at org.robolectric.internal.bytecode.Sandbox.lambda$runOnMainThread$0(Sandbox.java:88) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Suppressed: org.robolectric.android.internal.AndroidTestEnvironment$UnExecutedRunnablesException: Main looper has queued unexecuted runnables. This might be the cause of the test failure. You might need a shadowOf(Looper.getMainLooper()).idle() call.
Build: 105
┆Issue is synchronized with this Jira Task
Seen again in https://github.com/mozilla-mobile/fenix/pull/26431
java.lang.AssertionError: label: cold_unknown expected:<2> but was:<1> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:834) at org.junit.Assert.assertEquals(Assert.java:118) at org.mozilla.fenix.perf.StartupTypeTelemetryTest.GIVEN all possible path and state combinations WHEN record telemetry THEN the labels are incremented the appropriate number of times(StartupTypeTelemetryTest.kt:82)
Moved to bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1813825
Change performed by the Move to Bugzilla add-on.