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

QuarkusTopicDiscoveryTest failure in quarkus3 migration branch #3288

Closed
tkobayas opened this issue Nov 23, 2023 · 2 comments
Closed

QuarkusTopicDiscoveryTest failure in quarkus3 migration branch #3288

tkobayas opened this issue Nov 23, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@tkobayas
Copy link
Contributor

tkobayas commented Nov 23, 2023

Describe the bug

Currently I'm working on quarkus3 migration branch and QuarkusTopicDiscoveryTest fails probably because of @SetSystemProperty

[INFO] Running org.kie.kogito.addon.quarkus.messaging.common.QuarkusTopicDiscoveryTest
[ERROR] Tests run: 4, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.103 s <<< FAILURE! -- in org.kie.kogito.addon.quarkus.messaging.common.QuarkusTopicDiscoveryTest
[ERROR] org.kie.kogito.addon.quarkus.messaging.common.QuarkusTopicDiscoveryTest.verifyTopicsWithPropertiesSameTopic -- Time elapsed: 0.018 s <<< FAILURE!
java.lang.AssertionError: 

Expected size: 2 but was: 0 in:
[]
	at org.kie.kogito.addon.quarkus.messaging.common.QuarkusTopicDiscoveryTest.verifyTopicsWithPropertiesSameTopic(QuarkusTopicDiscoveryTest.java:68)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

[ERROR] org.kie.kogito.addon.quarkus.messaging.common.QuarkusTopicDiscoveryTest.verifyTopicsWithPropertiesSet -- Time elapsed: 0.004 s <<< FAILURE!
java.lang.AssertionError: 

Expected size: 2 but was: 0 in:
[]
	at org.kie.kogito.addon.quarkus.messaging.common.QuarkusTopicDiscoveryTest.verifyTopicsWithPropertiesSet(QuarkusTopicDiscoveryTest.java:51)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   QuarkusTopicDiscoveryTest.verifyTopicsWithPropertiesSameTopic:68 
Expected size: 2 but was: 0 in:
[]
[ERROR]   QuarkusTopicDiscoveryTest.verifyTopicsWithPropertiesSet:51 
Expected size: 2 but was: 0 in:
[]
[INFO] 
[ERROR] Tests run: 14, Failures: 2, Errors: 0, Skipped: 0

Note that if you run the whole test class, the 2 test methods fail, but if you run the specific test method, it succeeds.

https://kie.zulipchat.com/#narrow/stream/381961-drools-dev/topic/Quarkus.203.20migration/near/403630691

Expected behavior

All tests in QuarkusTopicDiscoveryTest pass.

Actual behavior

2 test methods in QuarkusTopicDiscoveryTest fail.

How to Reproduce?

Build mario's drools quakus3 branch

Build mario's kogito-runtimes quakus3 branch

Output of uname -a or ver

Linux tkobayas.nrt.csb 4.18.0-477.27.1.el8_8.x86_64 #1 SMP Thu Aug 31 10:29:22 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

openjdk version "17.0.1" 2021-10-19

GraalVM version (if different from Java)

No response

Kogito version or git rev (or at least Quarkus version if you are using Kogito via Quarkus platform BOM)

3.0.0-SNAPSHOT (as updated by quakus3 migration)

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546)

Additional information

The PR for the migration branch :
apache/incubator-kie-drools#5589
#3291

@ricardozanini
Copy link
Member

Thank you for the detailed description, @tkobayas 🙏

@tkobayas
Copy link
Contributor Author

Updated the reproduce steps to meet mario's branches.

@github-project-automation github-project-automation bot moved this from 📋 Backlog to 🎯 Done in 🦉 KIE Podling Board Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

3 participants