question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Quarkus 2.3.0] `GooglePubSubTest` failure

See original GitHub issue

Observed on quarkus-platform main + quarkus main build and also on our quarkus-main branch build:

This issue may end up being solved when quarkus-google-cloud-services 0.10.0 is released, but it’d be nice to verify ahead of time if possible.

2021-08-23T03:41:29.3854947Z %1$s%1$s%1$s%1$s
2021-08-23T03:41:29.3855484Z CDI: programmatic lookup problem detected
2021-08-23T03:41:29.3856254Z -----------------------------------------
2021-08-23T03:41:29.3857101Z At least one bean matched the required type and qualifiers but was marked as unused and removed during build
2021-08-23T03:41:29.3857896Z Removed beans:
2021-08-23T03:41:29.3858404Z    - %2$s
2021-08-23T03:41:29.3859915Z Required type: %3$s
2021-08-23T03:41:29.3860416Z Required qualifiers: %4$s
2021-08-23T03:41:29.3860893Z Solutions:
2021-08-23T03:41:29.3861911Z    - Application developers can eliminate false positives via the @Unremovable annotation
2021-08-23T03:41:29.3863727Z    - Extensions can eliminate false positives via build items, e.g. using the UnremovableBeanBuildItem
2021-08-23T03:41:29.3865561Z    - See also https://quarkus.io/guides/cdi-reference#remove_unused_beans
2021-08-23T03:41:29.3866882Z    - Enable the DEBUG log level to see the full stack trace to identify the method that performed the lookup
2021-08-23T03:41:29.3867620Z %1$s%1$s%1$s%1$s
2021-08-23T03:41:29.3867862Z
2021-08-23T03:41:29.5944202Z [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 1, Time elapsed: 70.694 s <<< FAILURE! - in org.apache.camel.quarkus.component.google.pubsub.it.GooglePubsubTest
2021-08-23T03:41:29.5946921Z [ERROR] jacksonSerializer  Time elapsed: 0.017 s  <<< ERROR!
2021-08-23T03:41:29.5948732Z java.lang.RuntimeException: java.lang.RuntimeException: Failed to start quarkus
2021-08-23T03:41:29.5951466Z    at io.quarkus.test.junit.QuarkusTestExtension.throwBootFailureException(QuarkusTestExtension.java:724)
2021-08-23T03:41:29.5955305Z    at io.quarkus.test.junit.QuarkusTestExtension.interceptTestClassConstructor(QuarkusTestExtension.java:797)
2021-08-23T03:41:29.5958793Z    at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
2021-08-23T03:41:29.5962329Z    at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
2021-08-23T03:41:29.5969251Z    at org.junit.jupiter.api.extension.InvocationInterceptor.interceptTestClassConstructor(InvocationInterceptor.java:72)
2021-08-23T03:41:29.5972733Z    at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
2021-08-23T03:41:29.5975805Z    at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
2021-08-23T03:41:29.5979319Z    at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
2021-08-23T03:41:29.5983294Z    at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
2021-08-23T03:41:29.5987298Z    at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
2021-08-23T03:41:29.5990496Z    at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
2021-08-23T03:41:29.5993249Z    at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:77)
2021-08-23T03:41:29.5997218Z    at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeTestClassConstructor(ClassBasedTestDescriptor.java:342)
2021-08-23T03:41:29.6002161Z    at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.instantiateTestClass(ClassBasedTestDescriptor.java:289)
2021-08-23T03:41:29.6006532Z    at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.instantiateTestClass(ClassTestDescriptor.java:79)
2021-08-23T03:41:29.6093919Z    at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.instantiateAndPostProcessTestInstance(ClassBasedTestDescriptor.java:267)
2021-08-23T03:41:29.6099080Z    at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$testInstancesProvider$2(ClassBasedTestDescriptor.java:259)
2021-08-23T03:41:29.6101604Z    at java.base/java.util.Optional.orElseGet(Optional.java:369)
2021-08-23T03:41:29.6104134Z    at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$testInstancesProvider$3(ClassBasedTestDescriptor.java:258)
2021-08-23T03:41:29.6108031Z    at org.junit.jupiter.engine.execution.TestInstancesProvider.getTestInstances(TestInstancesProvider.java:31)
2021-08-23T03:41:29.6111781Z    at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$prepare$0(TestMethodTestDescriptor.java:101)
2021-08-23T03:41:29.6115759Z    at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
2021-08-23T03:41:29.6119749Z    at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:100)
2021-08-23T03:41:29.6123904Z    at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:65)
2021-08-23T03:41:29.6127335Z    at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$prepare$1(NodeTestTask.java:111)
2021-08-23T03:41:29.6130899Z    at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
2021-08-23T03:41:29.6134337Z    at org.junit.platform.engine.support.hierarchical.NodeTestTask.prepare(NodeTestTask.java:111)
2021-08-23T03:41:29.6137430Z    at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:79)
2021-08-23T03:41:29.6139545Z    at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
2021-08-23T03:41:29.6143931Z    at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
2021-08-23T03:41:29.6149125Z    at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143)
2021-08-23T03:41:29.6152655Z    at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
2021-08-23T03:41:29.6156176Z    at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129)
2021-08-23T03:41:29.6159020Z    at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
2021-08-23T03:41:29.6161861Z    at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127)
2021-08-23T03:41:29.6165374Z    at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
2021-08-23T03:41:29.6169319Z    at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126)
2021-08-23T03:41:29.6172857Z    at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84)
2021-08-23T03:41:29.6174973Z    at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
loicmathieucommented, Aug 24, 2021

GcpConfigHolder didn’t exist before so it was a bug to let it be removable but using it blindly in a build step as I did. It didn’t show in my integration test because it uses the GcpCredential. It’s also a lack of tests at my side. And the quick fix is already done 😉

0reactions
jamesnethertoncommented, Aug 27, 2021

Latest nightly build with Quarkus main was successful, so this is confirmed as fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[GitHub] [camel-quarkus] jamesnetherton commented on issue ...
[GitHub] [camel-quarkus] jamesnetherton commented on issue #3027: [Quarkus 2.3.0] `GooglePubSubTest` failure.
Read more >
Apache camel-quarkus 2.3.0 Release
Apache camel-quarkus 2.3.0 Release ... [Quarkus 2.3.0] `GooglePubSubTest` failure; #3016: XchangeTest failure due to deprecated binance WAPI endpoints ...
Read more >
release - Quarkus
We released Quarkus 2.15.0.Final which introduces a lot of new features such as support for AWS Lambda SnapStart, a new Vert.x-based gRPC extension,...
Read more >
SmallRye Fault Tolerance - Quarkus
In this guide, we demonstrate usage of MicroProfile Fault Tolerance ... The solution is located in the microprofile-fault-tolerance-quickstart directory.
Read more >
Building applications with Maven - Quarkus
If the directory already exists, the generation fails. A pair of Dockerfiles for native and jvm mode are also generated in src/main/docker ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found