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

[Bug] Intermittent failure io.mockk.MockKException: Missing calls inside every { ... } block. #11723

Closed
Archaeopteryx opened this issue Jun 18, 2020 · 1 comment
Labels
🐞 bug Crashes, Something isn't working, .. eng:intermittent-test Evil test failures that only happen now-and-then and are a productivity killer wontfix

Comments

@Archaeopteryx
Copy link

Archaeopteryx commented Jun 18, 2020

Log: https://treeherder.mozilla.org/logviewer.html#?job_id=306736233&repo=fenix

Start:

[task 2020-06-18T07:31:40.502Z] SUITE: org.mozilla.fenix.IntentReceiverActivityTest
[task 2020-06-18T07:31:40.502Z] TEST: process custom tab intent
[task 2020-06-18T07:31:40.502Z] [Robolectric] org.mozilla.fenix.IntentReceiverActivityTest.process custom tab intent: sdk=28; resources=LEGACY
[task 2020-06-18T07:31:40.503Z] [Robolectric] NOTICE: legacy resources mode is deprecated; see http://robolectric.org/migrating/#migrating-to-40
[task 2020-06-18T07:31:40.503Z] I/AssetManager: no overlays.list file found
[task 2020-06-18T07:31:40.503Z] I/MonitoringInstr: Instrumentation started!
[task 2020-06-18T07:31:40.503Z] D [FenixApplication] Initializing Glean (uploadEnabled=true, isFennec=false)
[task 2020-06-18T07:31:40.503Z] E/glean/Glean: Glean should not be initialized multiple times
[task 2020-06-18T07:31:40.802Z] SUCCESS
[task 2020-06-18T07:31:40.804Z]
[task 2020-06-18T07:31:40.804Z] TEST: process intent with action OPEN_TAB
[task 2020-06-18T07:31:40.804Z] [Robolectric] org.mozilla.fenix.IntentReceiverActivityTest.process intent with action OPEN_TAB: sdk=28; resources=LEGACY
[task 2020-06-18T07:31:40.804Z] [Robolectric] NOTICE: legacy resources mode is deprecated; see http://robolectric.org/migrating/#migrating-to-40
[task 2020-06-18T07:31:40.804Z] I/AssetManager: no overlays.list file found
[task 2020-06-18T07:31:40.804Z] I/MonitoringInstr: Instrumentation started!
[task 2020-06-18T07:31:40.804Z] D [FenixApplication] Initializing Glean (uploadEnabled=true, isFennec=false)
[task 2020-06-18T07:31:40.804Z] E/glean/Glean: Glean should not be initialized multiple times
[task 2020-06-18T07:31:40.905Z] FAILURE
[task 2020-06-18T07:31:40.906Z]
[task 2020-06-18T07:31:40.906Z] io.mockk.MockKException: Missing calls inside every { ... } block.
[task 2020-06-18T07:31:40.907Z] at io.mockk.impl.recording.states.StubbingState.checkMissingCalls(StubbingState.kt:14)
[task 2020-06-18T07:31:40.907Z] at io.mockk.impl.recording.states.StubbingState.recordingDone(StubbingState.kt:8)
[task 2020-06-18T07:31:40.907Z] at io.mockk.impl.recording.CommonCallRecorder.done(CommonCallRecorder.kt:47)
[task 2020-06-18T07:31:40.907Z] at io.mockk.impl.eval.RecordedBlockEvaluator.record(RecordedBlockEvaluator.kt:60)
[task 2020-06-18T07:31:40.908Z] at io.mockk.impl.eval.EveryBlockEvaluator.every(EveryBlockEvaluator.kt:30)
[task 2020-06-18T07:31:40.908Z] at io.mockk.MockKDsl.internalEvery(API.kt:92)
[task 2020-06-18T07:31:40.908Z] at io.mockk.MockKKt.every(MockK.kt:98)
[task 2020-06-18T07:31:40.908Z] at org.mozilla.fenix.IntentReceiverActivityTest.attachMocks(IntentReceiverActivityTest.kt:189)
[task 2020-06-18T07:31:40.908Z] at org.mozilla.fenix.IntentReceiverActivityTest.access$attachMocks(IntentReceiverActivityTest.kt:35)
[task 2020-06-18T07:31:40.908Z] at org.mozilla.fenix.IntentReceiverActivityTest$process intent with action OPEN_TAB$1.invokeSuspend(IntentReceiverActivityTest.kt:98)
[task 2020-06-18T07:31:40.908Z] at org.mozilla.fenix.IntentReceiverActivityTest$process intent with action OPEN_TAB$1.invoke(IntentReceiverActivityTest.kt)
[task 2020-06-18T07:31:40.908Z] at kotlinx.coroutines.test.TestBuildersKt$runBlockingTest$deferred$1.invokeSuspend(TestBuilders.kt:50)
[task 2020-06-18T07:31:40.909Z] at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
[task 2020-06-18T07:31:40.909Z] at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
[task 2020-06-18T07:31:40.909Z] at kotlinx.coroutines.test.TestCoroutineDispatcher.dispatch(TestCoroutineDispatcher.kt:50)
[task 2020-06-18T07:31:40.909Z] at kotlinx.coroutines.DispatchedContinuationKt.resumeCancellableWith(DispatchedContinuation.kt:288)
[task 2020-06-18T07:31:40.909Z] at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:26)
[task 2020-06-18T07:31:40.909Z] at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:109)
[task 2020-06-18T07:31:40.909Z] at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:158)
[task 2020-06-18T07:31:40.909Z] at kotlinx.coroutines.BuildersKt__Builders_commonKt.async(Builders.common.kt:89)
[task 2020-06-18T07:31:40.909Z] at kotlinx.coroutines.BuildersKt.async(Unknown Source)
[task 2020-06-18T07:31:40.909Z] at kotlinx.coroutines.BuildersKt__Builders_commonKt.async$default(Builders.common.kt:82)
[task 2020-06-18T07:31:40.910Z] at kotlinx.coroutines.BuildersKt.async$default(Unknown Source)
[task 2020-06-18T07:31:40.910Z] at kotlinx.coroutines.test.TestBuildersKt.runBlockingTest(TestBuilders.kt:49)
[task 2020-06-18T07:31:40.910Z] at kotlinx.coroutines.test.TestBuildersKt.runBlockingTest$default(TestBuilders.kt:45)
[task 2020-06-18T07:31:40.910Z] at org.mozilla.fenix.IntentReceiverActivityTest.process intent with action OPEN_TAB(IntentReceiverActivityTest.kt:93)
[task 2020-06-18T07:31:40.910Z] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[task 2020-06-18T07:31:40.910Z] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[task 2020-06-18T07:31:40.910Z] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[task 2020-06-18T07:31:40.911Z] at java.lang.reflect.Method.invoke(Method.java:498)
[task 2020-06-18T07:31:40.911Z] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
[task 2020-06-18T07:31:40.911Z] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
[task 2020-06-18T07:31:40.911Z] at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
[task 2020-06-18T07:31:40.911Z] at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
[task 2020-06-18T07:31:40.912Z] at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
[task 2020-06-18T07:31:40.912Z] at org.robolectric.RobolectricTestRunner$HelperTestRunner$1.evaluate(RobolectricTestRunner.java:546)
[task 2020-06-18T07:31:40.912Z] at org.robolectric.internal.SandboxTestRunner$2.lambda$evaluate$0(SandboxTestRunner.java:252)
[task 2020-06-18T07:31:40.912Z] at org.robolectric.internal.bytecode.Sandbox.lambda$runOnMainThread$0(Sandbox.java:89)
[task 2020-06-18T07:31:40.912Z] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[task 2020-06-18T07:31:40.912Z] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[task 2020-06-18T07:31:40.913Z] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[task 2020-06-18T07:31:40.913Z] at java.lang.Thread.run(Thread.java:748)

Then several similar failures. Then:

[task 2020-06-18T07:31:42.102Z] TEST: testSocialMediaTrackerClick
[task 2020-06-18T07:31:42.102Z] [Robolectric] org.mozilla.fenix.trackingprotection.TrackingProtectionPanelViewTest.testSocialMediaTrackerClick: sdk=28; resources=LEGACY
[task 2020-06-18T07:31:42.102Z] [Robolectric] NOTICE: legacy resources mode is deprecated; see http://robolectric.org/migrating/#migrating-to-40
[task 2020-06-18T07:31:42.102Z] I/AssetManager: no overlays.list file found
[task 2020-06-18T07:31:42.102Z] I/MonitoringInstr: Instrumentation started!
[task 2020-06-18T07:31:42.102Z] D [FenixApplication] Initializing Glean (uploadEnabled=true, isFennec=false)
[task 2020-06-18T07:31:42.102Z] E/glean/Glean: Glean should not be initialized multiple times
[task 2020-06-18T07:31:42.203Z] E/ThemeUtils: View class androidx.appcompat.widget.SwitchCompat is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).
[task 2020-06-18T07:31:42.402Z] D DebugMetricController: track event: org.mozilla.fenix.components.metrics.Event$TrackingProtectionTrackerList@6c3d99b4
[task 2020-06-18T07:31:42.402Z] FAILURE
[task 2020-06-18T07:31:42.402Z]
[task 2020-06-18T07:31:42.402Z] java.lang.AssertionError: Verification failed: call 1 of 1: TrackingProtectionPanelInteractor(#1697).openDetails(eq(SOCIAL_MEDIA_TRACKERS), eq(true))) was not called
[task 2020-06-18T07:31:42.402Z] at io.mockk.impl.recording.states.VerifyingState.failIfNotPassed(VerifyingState.kt:66)
[task 2020-06-18T07:31:42.402Z] at io.mockk.impl.recording.states.VerifyingState.recordingDone(VerifyingState.kt:42)
[task 2020-06-18T07:31:42.402Z] at io.mockk.impl.recording.CommonCallRecorder.done(CommonCallRecorder.kt:47)
[task 2020-06-18T07:31:42.402Z] at io.mockk.impl.eval.RecordedBlockEvaluator.record(RecordedBlockEvaluator.kt:60)
[task 2020-06-18T07:31:42.402Z] at io.mockk.impl.eval.VerifyBlockEvaluator.verify(VerifyBlockEvaluator.kt:30)
[task 2020-06-18T07:31:42.402Z] at io.mockk.MockKDsl.internalVerify(API.kt:118)
[task 2020-06-18T07:31:42.402Z] at io.mockk.MockKKt.verify(MockK.kt:146)
[task 2020-06-18T07:31:42.402Z] at io.mockk.MockKKt.verify$default(MockK.kt:143)
[task 2020-06-18T07:31:42.402Z] at org.mozilla.fenix.trackingprotection.TrackingProtectionPanelViewTest.testSocialMediaTrackerClick(TrackingProtectionPanelViewTest.kt:95)
[task 2020-06-18T07:31:42.402Z] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[task 2020-06-18T07:31:42.403Z] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[task 2020-06-18T07:31:42.403Z] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[task 2020-06-18T07:31:42.403Z] at java.lang.reflect.Method.invoke(Method.java:498)
[task 2020-06-18T07:31:42.403Z] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
[task 2020-06-18T07:31:42.404Z] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
[task 2020-06-18T07:31:42.404Z] at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
[task 2020-06-18T07:31:42.404Z] at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
[task 2020-06-18T07:31:42.404Z] at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
[task 2020-06-18T07:31:42.404Z] at org.robolectric.RobolectricTestRunner$HelperTestRunner$1.evaluate(RobolectricTestRunner.java:546)
[task 2020-06-18T07:31:42.404Z] at org.robolectric.internal.SandboxTestRunner$2.lambda$evaluate$0(SandboxTestRunner.java:252)
[task 2020-06-18T07:31:42.404Z] at org.robolectric.internal.bytecode.Sandbox.lambda$runOnMainThread$0(Sandbox.java:89)
[task 2020-06-18T07:31:42.404Z] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[task 2020-06-18T07:31:42.404Z] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[task 2020-06-18T07:31:42.405Z] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[task 2020-06-18T07:31:42.405Z] at java.lang.Thread.run(Thread.java:748)

┆Issue is synchronized with this Jira Task

@Archaeopteryx Archaeopteryx added the 🐞 bug Crashes, Something isn't working, .. label Jun 18, 2020
@github-actions github-actions bot added the needs:triage Issue needs triage label Jun 18, 2020
@data-sync-user data-sync-user changed the title [Bug] Intermittent failure io.mockk.MockKException: Missing calls inside every { ... } block. FNX3-14859 ⁃ [Bug] Intermittent failure io.mockk.MockKException: Missing calls inside every { ... } block. Aug 11, 2020
@data-sync-user data-sync-user changed the title FNX3-14859 ⁃ [Bug] Intermittent failure io.mockk.MockKException: Missing calls inside every { ... } block. FNX-12702 ⁃ [Bug] Intermittent failure io.mockk.MockKException: Missing calls inside every { ... } block. Aug 11, 2020
@data-sync-user data-sync-user changed the title FNX-12702 ⁃ [Bug] Intermittent failure io.mockk.MockKException: Missing calls inside every { ... } block. FNX2-13590 ⁃ [Bug] Intermittent failure io.mockk.MockKException: Missing calls inside every { ... } block. Aug 11, 2020
@kbrosnan kbrosnan changed the title FNX2-13590 ⁃ [Bug] Intermittent failure io.mockk.MockKException: Missing calls inside every { ... } block. [Bug] Intermittent failure io.mockk.MockKException: Missing calls inside every { ... } block. Aug 29, 2020
@ekager ekager added eng:intermittent-test Evil test failures that only happen now-and-then and are a productivity killer and removed needs:triage Issue needs triage labels Dec 17, 2020
@stale
Copy link

stale bot commented Jun 15, 2021

See: #17373 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jun 15, 2021
@stale stale bot closed this as completed Jun 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Crashes, Something isn't working, .. eng:intermittent-test Evil test failures that only happen now-and-then and are a productivity killer wontfix
Projects
None yet
Development

No branches or pull requests

2 participants