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

seeing spurious test failures from atlas-cloudwatch #462

Open
brharrington opened this issue Jun 1, 2023 · 4 comments
Open

seeing spurious test failures from atlas-cloudwatch #462

brharrington opened this issue Jun 1, 2023 · 4 comments

Comments

@brharrington
Copy link
Contributor

com.netflix.atlas.cloudwatch.AwsConfigAccountSupplierSuite:
==> X com.netflix.atlas.cloudwatch.AwsConfigAccountSupplierSuite.success  1.155s scala.reflect.internal.Symbols$CyclicReference: illegal cyclic reference involving class SelectAggregateResourceConfigResponse
==> X com.netflix.atlas.cloudwatch.AwsConfigAccountSupplierSuite.empty response  0.018s java.lang.AssertionError: assertion failed: no symbol could be loaded from interface software.amazon.awssdk.services.config.model.SelectAggregateResourceConfigResponse$Builder in class SelectAggregateResourceConfigResponse with name Builder and classloader sbt.internal.LayeredClassLoader@749f5836
    at scala.reflect.internal.SymbolTable.throwAssertionError(SymbolTable.scala:171)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.classToScala1(JavaMirrors.scala:1083)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$classToScala$1(JavaMirrors.scala:1041)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$toScala$1(JavaMirrors.scala:152)
    at scala.reflect.runtime.TwoWayCaches$TwoWayCache.toScala(TwoWayCaches.scala:50)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.toScala(JavaMirrors.scala:150)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.classToScala(JavaMirrors.scala:1041)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1149)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.targToScala$1(JavaMirrors.scala:1136)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$targsToScala$3(JavaMirrors.scala:1138)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.targsToScala(JavaMirrors.scala:1138)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1162)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.$anonfun$completeRest$2(JavaMirrors.scala:817)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.$anonfun$completeRest$1(JavaMirrors.scala:817)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.completeRest(JavaMirrors.scala:811)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter$LazyPolyType.complete(JavaMirrors.scala:858)
    at scala.reflect.internal.Symbols$Symbol.completeInfo(Symbols.scala:1572)
    at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:[1535](https://github.com/Netflix-Skunkworks/iep-apps/actions/runs/5149817833/jobs/9273277368#step:5:1536))
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol$$anon$7.scala$reflect$runtime$SynchronizedSymbols$SynchronizedSymbol$$super$info(SynchronizedSymbols.scala:203)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol.info(SynchronizedSymbols.scala:158)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol.info$(SynchronizedSymbols.scala:158)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol$$anon$7.info(SynchronizedSymbols.scala:203)
    at scala.reflect.internal.Symbols$Symbol.isDerivedValueClass(Symbols.scala:825)
    at org.mockito.ReflectionUtils$InvocationOnMockOps$.$anonfun$returnsValueClass$1(ReflectionUtils.scala:43)
    at org.mockito.ReflectionUtils$InvocationOnMockOps$.$anonfun$returnsValueClass$1$adapted(ReflectionUtils.scala:43)
    at scala.Option.exists(Option.scala:406)
    at org.mockito.ReflectionUtils$InvocationOnMockOps$.returnsValueClass$extension(ReflectionUtils.scala:43)
    at org.mockito.internal.handler.ScalaNullResultGuardian.handle(ScalaNullResultGuardian.scala:16)
    at org.mockito.internal.handler.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:34)
    at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:82)
    at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:56)
    at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor$DispatcherDefaultingToRealMethod.interceptSuperCallable(MockMethodInterceptor.java:145)
    at software.amazon.awssdk.services.config.ConfigClient$MockitoMock$1920567710.selectAggregateResourceConfig(Unknown Source)
    at com.netflix.atlas.cloudwatch.AwsConfigAccountSupplierSuite.mockResp(AwsConfigAccountSupplierSuite.scala:210)
    at com.netflix.atlas.cloudwatch.AwsConfigAccountSupplierSuite.$anonfun$new$11(AwsConfigAccountSupplierSuite.scala:90)
==> X com.netflix.atlas.cloudwatch.AwsConfigAccountSupplierSuite.exception on startup  0.017s java.lang.AssertionError: assertion failed: no symbol could be loaded from interface software.amazon.awssdk.services.config.model.SelectAggregateResourceConfigResponse$Builder in class SelectAggregateResourceConfigResponse with name Builder and classloader sbt.internal.LayeredClassLoader@749f5836
    at scala.reflect.internal.SymbolTable.throwAssertionError(SymbolTable.scala:171)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.classToScala1(JavaMirrors.scala:1083)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$classToScala$1(JavaMirrors.scala:1041)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$toScala$1(JavaMirrors.scala:152)
    at scala.reflect.runtime.TwoWayCaches$TwoWayCache.toScala(TwoWayCaches.scala:50)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.toScala(JavaMirrors.scala:150)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.classToScala(JavaMirrors.scala:1041)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1149)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.targToScala$1(JavaMirrors.scala:1136)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$targsToScala$3(JavaMirrors.scala:1138)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.targsToScala(JavaMirrors.scala:1138)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1162)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.$anonfun$completeRest$2(JavaMirrors.scala:817)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.$anonfun$completeRest$1(JavaMirrors.scala:817)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.completeRest(JavaMirrors.scala:811)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter$LazyPolyType.complete(JavaMirrors.scala:858)
    at scala.reflect.internal.Symbols$Symbol.completeInfo(Symbols.scala:1572)
    at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1535)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol$$anon$7.scala$reflect$runtime$SynchronizedSymbols$SynchronizedSymbol$$super$info(SynchronizedSymbols.scala:203)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol.info(SynchronizedSymbols.scala:158)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol.info$(SynchronizedSymbols.scala:158)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol$$anon$7.info(SynchronizedSymbols.scala:203)
    at scala.reflect.internal.Symbols$Symbol.isDerivedValueClass(Symbols.scala:825)
    at org.mockito.ReflectionUtils$InvocationOnMockOps$.$anonfun$returnsValueClass$1(ReflectionUtils.scala:43)
    at org.mockito.ReflectionUtils$InvocationOnMockOps$.$anonfun$returnsValueClass$1$adapted(ReflectionUtils.scala:43)
    at scala.Option.exists(Option.scala:406)
    at org.mockito.ReflectionUtils$InvocationOnMockOps$.returnsValueClass$extension(ReflectionUtils.scala:43)
    at org.mockito.internal.handler.ScalaNullResultGuardian.handle(ScalaNullResultGuardian.scala:16)
    at org.mockito.internal.handler.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:34)
    at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:82)
    at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:56)
    at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor$DispatcherDefaultingToRealMethod.interceptSuperCallable(MockMethodInterceptor.java:145)
    at software.amazon.awssdk.services.config.ConfigClient$MockitoMock$1920567710.selectAggregateResourceConfig(Unknown Source)
    at com.netflix.atlas.cloudwatch.AwsConfigAccountSupplierSuite.mockResp(AwsConfigAccountSupplierSuite.scala:207)
    at com.netflix.atlas.cloudwatch.AwsConfigAccountSupplierSuite.$anonfun$new$13(AwsConfigAccountSupplierSuite.scala:97)
==> X com.netflix.atlas.cloudwatch.AwsConfigAccountSupplierSuite.malformed  0.016s java.lang.AssertionError: assertion failed: no symbol could be loaded from interface software.amazon.awssdk.services.config.model.SelectAggregateResourceConfigResponse$Builder in class SelectAggregateResourceConfigResponse with name Builder and classloader sbt.internal.LayeredClassLoader@749f5836
    at scala.reflect.internal.SymbolTable.throwAssertionError(SymbolTable.scala:171)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.classToScala1(JavaMirrors.scala:1083)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$classToScala$1(JavaMirrors.scala:1041)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$toScala$1(JavaMirrors.scala:152)
    at scala.reflect.runtime.TwoWayCaches$TwoWayCache.toScala(TwoWayCaches.scala:50)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.toScala(JavaMirrors.scala:150)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.classToScala(JavaMirrors.scala:1041)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1149)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.targToScala$1(JavaMirrors.scala:1136)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$targsToScala$3(JavaMirrors.scala:1138)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.targsToScala(JavaMirrors.scala:1138)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1162)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.$anonfun$completeRest$2(JavaMirrors.scala:817)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.$anonfun$completeRest$1(JavaMirrors.scala:817)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.completeRest(JavaMirrors.scala:811)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter$LazyPolyType.complete(JavaMirrors.scala:858)
    at scala.reflect.internal.Symbols$Symbol.completeInfo(Symbols.scala:[1572](https://github.com/Netflix-Skunkworks/iep-apps/actions/runs/5149817833/jobs/9273277368#step:5:1573))
    at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1535)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol$$anon$7.scala$reflect$runtime$SynchronizedSymbols$SynchronizedSymbol$$super$info(SynchronizedSymbols.scala:203)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol.info(SynchronizedSymbols.scala:158)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol.info$(SynchronizedSymbols.scala:158)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol$$anon$7.info(SynchronizedSymbols.scala:203)
    at scala.reflect.internal.Symbols$Symbol.isDerivedValueClass(Symbols.scala:825)
    at org.mockito.ReflectionUtils$InvocationOnMockOps$.$anonfun$returnsValueClass$1(ReflectionUtils.scala:43)
    at org.mockito.ReflectionUtils$InvocationOnMockOps$.$anonfun$returnsValueClass$1$adapted(ReflectionUtils.scala:43)
    at scala.Option.exists(Option.scala:406)
    at org.mockito.ReflectionUtils$InvocationOnMockOps$.returnsValueClass$extension(ReflectionUtils.scala:43)
    at org.mockito.internal.handler.ScalaNullResultGuardian.handle(ScalaNullResultGuardian.scala:16)
    at org.mockito.internal.handler.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:34)
    at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:82)
    at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:56)
    at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor$DispatcherDefaultingToRealMethod.interceptSuperCallable(MockMethodInterceptor.java:145)
    at software.amazon.awssdk.services.config.ConfigClient$MockitoMock$1920567710.selectAggregateResourceConfig(Unknown Source)
    at com.netflix.atlas.cloudwatch.AwsConfigAccountSupplierSuite.mockResp(AwsConfigAccountSupplierSuite.scala:213)
    at com.netflix.atlas.cloudwatch.AwsConfigAccountSupplierSuite.$anonfun$new$15(AwsConfigAccountSupplierSuite.scala:105)
==> X com.netflix.atlas.cloudwatch.AwsConfigAccountSupplierSuite.allow list  0.014s java.lang.AssertionError: assertion failed: no symbol could be loaded from interface software.amazon.awssdk.services.config.model.SelectAggregateResourceConfigResponse$Builder in class SelectAggregateResourceConfigResponse with name Builder and classloader sbt.internal.LayeredClassLoader@749f5836
    at scala.reflect.internal.SymbolTable.throwAssertionError(SymbolTable.scala:171)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.classToScala1(JavaMirrors.scala:1083)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$classToScala$1(JavaMirrors.scala:1041)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$toScala$1(JavaMirrors.scala:152)
    at scala.reflect.runtime.TwoWayCaches$TwoWayCache.toScala(TwoWayCaches.scala:50)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.toScala(JavaMirrors.scala:150)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.classToScala(JavaMirrors.scala:1041)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1149)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.targToScala$1(JavaMirrors.scala:1136)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$targsToScala$3(JavaMirrors.scala:1138)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.targsToScala(JavaMirrors.scala:1138)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1162)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.$anonfun$completeRest$2(JavaMirrors.scala:817)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.$anonfun$completeRest$1(JavaMirrors.scala:817)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.completeRest(JavaMirrors.scala:811)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter$LazyPolyType.complete(JavaMirrors.scala:858)
    at scala.reflect.internal.Symbols$Symbol.completeInfo(Symbols.scala:1572)
    at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1535)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol$$anon$7.scala$reflect$runtime$SynchronizedSymbols$SynchronizedSymbol$$super$info(SynchronizedSymbols.scala:203)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol.info(SynchronizedSymbols.scala:158)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol.info$(SynchronizedSymbols.scala:158)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol$$anon$7.info(SynchronizedSymbols.scala:203)
    at scala.reflect.internal.Symbols$Symbol.isDerivedValueClass(Symbols.scala:825)
    at org.mockito.ReflectionUtils$InvocationOnMockOps$.$anonfun$returnsValueClass$1(ReflectionUtils.scala:43)
    at org.mockito.ReflectionUtils$InvocationOnMockOps$.$anonfun$returnsValueClass$1$adapted(ReflectionUtils.scala:43)
    at scala.Option.exists(Option.scala:406)
    at org.mockito.ReflectionUtils$InvocationOnMockOps$.returnsValueClass$extension(ReflectionUtils.scala:43)
    at org.mockito.internal.handler.ScalaNullResultGuardian.handle(ScalaNullResultGuardian.scala:16)
    at org.mockito.internal.handler.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:34)
    at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:82)
    at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:56)
    at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor$DispatcherDefaultingToRealMethod.interceptSuperCallable(MockMethodInterceptor.java:145)
    at software.amazon.awssdk.services.config.ConfigClient$MockitoMock$1920567710.selectAggregateResourceConfig(Unknown Source)
    at com.netflix.atlas.cloudwatch.AwsConfigAccountSupplierSuite.mockResp(AwsConfigAccountSupplierSuite.scala:213)
    at com.netflix.atlas.cloudwatch.AwsConfigAccountSupplierSuite.$anonfun$new$25(AwsConfigAccountSupplierSuite.scala:133)
==> X com.netflix.atlas.cloudwatch.AwsConfigAccountSupplierSuite.deny list  0.016s java.lang.AssertionError: assertion failed: no symbol could be loaded from interface software.amazon.awssdk.services.config.model.SelectAggregateResourceConfigResponse$Builder in class SelectAggregateResourceConfigResponse with name Builder and classloader sbt.internal.LayeredClassLoader@749f5836
    at scala.reflect.internal.SymbolTable.throwAssertionError(SymbolTable.scala:171)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.classToScala1(JavaMirrors.scala:1083)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$classToScala$1(JavaMirrors.scala:1041)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$toScala$1(JavaMirrors.scala:152)
    at scala.reflect.runtime.TwoWayCaches$TwoWayCache.toScala(TwoWayCaches.scala:50)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.toScala(JavaMirrors.scala:150)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.classToScala(JavaMirrors.scala:1041)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1149)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.targToScala$1(JavaMirrors.scala:1136)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$targsToScala$3(JavaMirrors.scala:1138)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.targsToScala(JavaMirrors.scala:1138)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1162)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.$anonfun$completeRest$2(JavaMirrors.scala:817)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.$anonfun$completeRest$1(JavaMirrors.scala:817)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.completeRest(JavaMirrors.scala:811)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter$LazyPolyType.complete(JavaMirrors.scala:858)
    at scala.reflect.internal.Symbols$Symbol.completeInfo(Symbols.scala:1572)
    at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1535)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol$$anon$7.scala$reflect$runtime$SynchronizedSymbols$SynchronizedSymbol$$super$info(SynchronizedSymbols.scala:203)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol.info(SynchronizedSymbols.scala:158)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol.info$(SynchronizedSymbols.scala:158)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol$$anon$7.info(SynchronizedSymbols.scala:203)
    at scala.reflect.internal.Symbols$Symbol.isDerivedValueClass(Symbols.scala:825)
    at org.mockito.ReflectionUtils$InvocationOnMockOps$.$anonfun$returnsValueClass$1(ReflectionUtils.scala:43)
    at org.mockito.ReflectionUtils$InvocationOnMockOps$.$anonfun$returnsValueClass$1$adapted(ReflectionUtils.scala:43)
    at scala.Option.exists(Option.scala:406)
    at org.mockito.ReflectionUtils$InvocationOnMockOps$.returnsValueClass$extension(ReflectionUtils.scala:43)
    at org.mockito.internal.handler.ScalaNullResultGuardian.handle(ScalaNullResultGuardian.scala:16)
    at org.mockito.internal.handler.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:34)
    at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:82)
    at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:56)
    at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor$DispatcherDefaultingToRealMethod.interceptSuperCallable(MockMethodInterceptor.java:145)
    at software.amazon.awssdk.services.config.ConfigClient$MockitoMock$1920567710.selectAggregateResourceConfig(Unknown Source)
    at com.netflix.atlas.cloudwatch.AwsConfigAccountSupplierSuite.mockResp(AwsConfigAccountSupplierSuite.scala:213)
    at com.netflix.atlas.cloudwatch.AwsConfigAccountSupplierSuite.$anonfun$new$30(AwsConfigAccountSupplierSuite.scala:153)
==> X com.netflix.atlas.cloudwatch.AwsConfigAccountSupplierSuite.filter global  0.015s java.lang.AssertionError: assertion failed: no symbol could be loaded from interface software.amazon.awssdk.services.config.model.SelectAggregateResourceConfigResponse$Builder in class SelectAggregateResourceConfigResponse with name Builder and classloader sbt.internal.LayeredClassLoader@749f5836
    at scala.reflect.internal.SymbolTable.throwAssertionError(SymbolTable.scala:171)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.classToScala1(JavaMirrors.scala:1083)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$classToScala$1(JavaMirrors.scala:1041)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$toScala$1(JavaMirrors.scala:152)
    at scala.reflect.runtime.TwoWayCaches$TwoWayCache.toScala(TwoWayCaches.scala:50)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.toScala(JavaMirrors.scala:150)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.classToScala(JavaMirrors.scala:1041)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1149)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.targToScala$1(JavaMirrors.scala:1136)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$targsToScala$3(JavaMirrors.scala:1138)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.targsToScala(JavaMirrors.scala:1138)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1162)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.$anonfun$completeRest$2(JavaMirrors.scala:817)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.$anonfun$completeRest$1(JavaMirrors.scala:817)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.completeRest(JavaMirrors.scala:811)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter$LazyPolyType.complete(JavaMirrors.scala:858)
    at scala.reflect.internal.Symbols$Symbol.completeInfo(Symbols.scala:1572)
    at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1535)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol$$anon$7.scala$reflect$runtime$SynchronizedSymbols$SynchronizedSymbol$$super$info(SynchronizedSymbols.scala:203)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol.info(SynchronizedSymbols.scala:158)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol.info$(SynchronizedSymbols.scala:158)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol$$anon$7.info(SynchronizedSymbols.scala:203)
    at scala.reflect.internal.Symbols$Symbol.isDerivedValueClass(Symbols.scala:825)
    at org.mockito.ReflectionUtils$InvocationOnMockOps$.$anonfun$returnsValueClass$1(ReflectionUtils.scala:43)
    at org.mockito.ReflectionUtils$InvocationOnMockOps$.$anonfun$returnsValueClass$1$adapted(ReflectionUtils.scala:43)
    at scala.Option.exists(Option.scala:406)
    at org.mockito.ReflectionUtils$InvocationOnMockOps$.returnsValueClass$extension(ReflectionUtils.scala:43)
    at org.mockito.internal.handler.ScalaNullResultGuardian.handle(ScalaNullResultGuardian.scala:16)
    at org.mockito.internal.handler.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:34)
    at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:82)
    at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:56)
    at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor$DispatcherDefaultingToRealMethod.interceptSuperCallable(MockMethodInterceptor.java:145)
    at software.amazon.awssdk.services.config.ConfigClient$MockitoMock$1920567710.selectAggregateResourceConfig(Unknown Source)
    at com.netflix.atlas.cloudwatch.AwsConfigAccountSupplierSuite.mockResp(AwsConfigAccountSupplierSuite.scala:213)
    at com.netflix.atlas.cloudwatch.AwsConfigAccountSupplierSuite.$anonfun$new$37(AwsConfigAccountSupplierSuite.scala:177)
manolama added a commit to manolama/iep-apps that referenced this issue Jun 9, 2023
Mockito-scala docs excplicity ask to not declare a dependency on mockito-core,
instead let mockito-scala bring it in. I was likely including a much older version
than needed and could have caused load ordering issues.
manolama added a commit to manolama/iep-apps that referenced this issue Jun 9, 2023
Mockito-scala docs excplicity ask to not declare a dependency on mockito-core,
instead let mockito-scala bring it in. I was likely including a much older version
than needed and could have caused load ordering issues.
manolama added a commit to manolama/iep-apps that referenced this issue Jun 9, 2023
Mockito-scala docs excplicity ask to not declare a dependency on mockito-core,
instead let mockito-scala bring it in. I was likely including a much older version
than needed and could have caused load ordering issues.
@brharrington
Copy link
Contributor Author

Saw another one, this time a timeout for a test:

==> X com.netflix.atlas.cloudwatch.CloudWatchPollerSuite.poll success  60.299s java.util.concurrent.TimeoutException: Future timed out after [60 seconds]
    at scala.concurrent.impl.Promise$DefaultPromise.tryAwait0(Promise.scala:248)
    at scala.concurrent.impl.Promise$DefaultPromise.result(Promise.scala:261)
    at scala.concurrent.Await$.$anonfun$result$1(package.scala:201)
    at scala.concurrent.BlockContext$DefaultBlockContext$.blockOn(BlockContext.scala:62)
    at scala.concurrent.Await$.result(package.scala:124)
    at com.netflix.atlas.cloudwatch.CloudWatchPollerSuite.$anonfun$new$7(CloudWatchPollerSuite.scala:147)

@manolama
Copy link
Contributor

ack, looking.

@brharrington
Copy link
Contributor Author

Seeing more, e.g.:

com.netflix.atlas.cloudwatch.CloudWatchPollerSuite:
  + init 5.526s
  + init multiple offsets 0.294s
  + poll not leader 0.124s
  + poll already ran 0.61s
  + poll already running 0.133s
==> X com.netflix.atlas.cloudwatch.CloudWatchPollerSuite.poll success  0.285s scala.reflect.internal.Symbols$CyclicReference: illegal cyclic reference involving class GetMetricStatisticsResponse
  + poll on list failure 0.169s
  + poll on client exception 0.176s
  + poll accounts exception 0.111s
  + poll empty accounts 0.103s
==> X com.netflix.atlas.cloudwatch.CloudWatchPollerSuite.Poller#execute all success  0.093s java.lang.AssertionError: assertion failed: no symbol could be loaded from interface software.amazon.awssdk.services.cloudwatch.model.GetMetricStatisticsResponse$Builder in class GetMetricStatisticsResponse with name Builder and classloader sbt.internal.LayeredClassLoader@71a604a3
    at scala.reflect.internal.SymbolTable.throwAssertionError(SymbolTable.scala:171)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.classToScala1(JavaMirrors.scala:1082)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$classToScala$1(JavaMirrors.scala:1040)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$toScala$1(JavaMirrors.scala:150)
    at scala.reflect.runtime.TwoWayCaches$TwoWayCache.toScala(TwoWayCaches.scala:50)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.toScala(JavaMirrors.scala:148)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.classToScala(JavaMirrors.scala:1040)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1148)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.targToScala$1(JavaMirrors.scala:1135)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.$anonfun$targsToScala$3(JavaMirrors.scala:1137)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.targsToScala(JavaMirrors.scala:1137)
    at scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1161)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.$anonfun$completeRest$2(JavaMirrors.scala:816)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.$anonfun$completeRest$1(JavaMirrors.scala:816)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.completeRest(JavaMirrors.scala:810)
    at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter$LazyPolyType.complete(JavaMirrors.scala:857)
    at scala.reflect.internal.Symbols$Symbol.completeInfo(Symbols.scala:1574)
    at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1537)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol$$anon$7.scala$reflect$runtime$SynchronizedSymbols$SynchronizedSymbol$$super$info(SynchronizedSymbols.scala:203)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol.info(SynchronizedSymbols.scala:158)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol.info$(SynchronizedSymbols.scala:158)
    at scala.reflect.runtime.SynchronizedSymbols$SynchronizedSymbol$$anon$7.info(SynchronizedSymbols.scala:203)
    at scala.reflect.internal.Symbols$Symbol.isDerivedValueClass(Symbols.scala:825)
    at org.mockito.ReflectionUtils$InvocationOnMockOps$.$anonfun$returnsValueClass$1(ReflectionUtils.scala:52)
    at org.mockito.ReflectionUtils$InvocationOnMockOps$.$anonfun$returnsValueClass$1$adapted(ReflectionUtils.scala:52)
    at scala.Option.exists(Option.scala:406)
    at org.mockito.ReflectionUtils$InvocationOnMockOps$.returnsValueClass$extension(ReflectionUtils.scala:52)
    at org.mockito.internal.handler.ScalaNullResultGuardian.handle(ScalaNullResultGuardian.scala:16)
    at org.mockito.internal.handler.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:34)
    at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:82)
    at org.mockito.internal.creation.bytebuddy.MockMethodAdvice.handle(MockMethodAdvice.java:134)
    at software.amazon.awssdk.services.cloudwatch.CloudWatchClient.getMetricStatistics(CloudWatchClient.java:2760)
    at com.netflix.atlas.cloudwatch.CloudWatchPollerSuite.mockSuccess(CloudWatchPollerSuite.scala:605)
    at com.netflix.atlas.cloudwatch.CloudWatchPollerSuite.$anonfun$new$23(CloudWatchPollerSuite.scala:281)

@manolama
Copy link
Contributor

manolama commented Feb 7, 2024

Ack, will look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants