quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.64k stars 2.64k forks source link

[CI] - OptaPlanner + Quarkus main #11563

Open rsynek opened 4 years ago

rsynek commented 4 years ago

This issue will be open and closed dependent on the state of https://github.com/kiegroup/optaplanner building against Quarkus master snapshot.

If you have interest in being notified of this subscribe to the issue.

rsynek commented 4 years ago

Build fixed:

rsynek commented 4 years ago

Unfortunately, the build failed:

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

ge0ffrey commented 4 years ago

Radovan is investigating the cause of this, which is probably related to the Drools unfork.

gsmet commented 4 years ago

I think you should discuss with @mariofusco and @evacchi because I remember we have the very same issue with Kogito.

evacchi commented 4 years ago

fixed on master https://github.com/kiegroup/kogito-runtimes/commit/0ecc75dd59c086260b69d2c4d646c30d0f86138c

evacchi commented 4 years ago

FYI it's actually related to GraalVM 20.2 -- no issue with GraalVM 20.1 we worked it around by using substitutions https://github.com/kiegroup/kogito-runtimes/commit/0ecc75dd59c086260b69d2c4d646c30d0f86138c#diff-96151edecfecab2498645ec9a01b0550

the issue should be "properly" fixed, once @mariofusco is able to merge MVEL descoping, which should make the dependency optional, thus unreachable to native-image -- it will be possible to bring it in explicitly (and of course it'll work in JVM mode)

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

gsmet commented 4 years ago

@ge0ffrey @mariofusco @evacchi the build is still failing in the native image build. It looks related to Drools and Kogito.

Could you all have a look at it and fix it? It has been failing for more than 10 days now.

Thanks!

2020-09-18T05:27:15.2176534Z com.oracle.svm.core.util.UserError$UserException: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported method java.lang.ClassLoader.defineClass1(ClassLoader, String, byte[], int, int, ProtectionDomain, String) is reachable
2020-09-18T05:27:15.2180362Z To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
2020-09-18T05:27:15.2181442Z Detailed message:
2020-09-18T05:27:15.2181738Z Trace: 
2020-09-18T05:27:15.2182416Z    at parsing java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
2020-09-18T05:27:15.2186179Z Call path from entry point to java.lang.ClassLoader.defineClass(String, byte[], int, int, ProtectionDomain): 
2020-09-18T05:27:15.2187413Z    at java.lang.ClassLoader.defineClass(ClassLoader.java:1015)
2020-09-18T05:27:15.2188456Z    at java.lang.ClassLoader.defineClass(ClassLoader.java:878)
2020-09-18T05:27:15.2190204Z    at org.mvel2.optimizers.impl.asm.ASMAccessorOptimizer$ContextClassLoader.defineClass(ASMAccessorOptimizer.java:2318)
2020-09-18T05:27:15.2192617Z    at org.mvel2.optimizers.impl.asm.ASMAccessorOptimizer.loadClass(ASMAccessorOptimizer.java:2329)
2020-09-18T05:27:15.2195303Z    at org.mvel2.optimizers.impl.asm.ASMAccessorOptimizer._initializeAccessor(ASMAccessorOptimizer.java:814)
2020-09-18T05:27:15.2197769Z    at org.mvel2.optimizers.impl.asm.ASMAccessorOptimizer.compileAccessor(ASMAccessorOptimizer.java:957)
2020-09-18T05:27:15.2200520Z    at org.mvel2.optimizers.impl.asm.ASMAccessorOptimizer.optimizeAccessor(ASMAccessorOptimizer.java:345)
2020-09-18T05:27:15.2202845Z    at org.mvel2.compiler.CompiledAccExpression.getValue(CompiledAccExpression.java:68)
2020-09-18T05:27:15.2204195Z    at org.mvel2.MVEL.executeExpression(MVEL.java:945)
2020-09-18T05:27:15.2206528Z    at org.drools.core.base.accumulators.MVELAccumulatorFunctionExecutor.accumulate(MVELAccumulatorFunctionExecutor.java:122)
2020-09-18T05:27:15.2209382Z    at org.drools.core.spi.Accumulator$SafeAccumulator$4.run(Accumulator.java:185)
2020-09-18T05:27:15.2210849Z    at com.oracle.svm.core.jdk.Target_java_security_AccessController.doPrivileged(SecuritySubstitutions.java:119)
2020-09-18T05:27:15.2212361Z    at java.net.Socket.getOutputStream(Socket.java:969)
2020-09-18T05:27:15.2213721Z    at org.jboss.logmanager.handlers.TcpOutputStream.flush(TcpOutputStream.java:214)
2020-09-18T05:27:15.2215025Z    at java.io.PrintStream.flush(PrintStream.java:417)
2020-09-18T05:27:15.2224115Z    at com.oracle.svm.jni.functions.JNIFunctions.ExceptionDescribe(JNIFunctions.java:772)
2020-09-18T05:27:15.2226631Z    at com.oracle.svm.core.code.IsolateEnterStub.JNIFunctions_ExceptionDescribe_b5412f7570bccae90b000bc37855f00408b2ad73(generated:0)
2020-09-18T05:27:15.2228157Z 
ge0ffrey commented 4 years ago

@gsmet We will, thanks for the notification. I believe the fix is Mario's drools-mvel changes, which are waiting for the 7.44 release cut-off (28 Sept) before they can be merged to master? @mariofusco Is my presumption correct?

rsynek commented 4 years ago

The build is still failing:

ge0ffrey commented 4 years ago

@gsmet We're tracking this issue here: https://issues.redhat.com/browse/PLANNER-2173

It affects optaplanner 7.x and will therefore affect OptaPlanner 7.44 too, which will be released next week. Immediately after that release, Mario's mvel refactor will fix the issue, so the first 7.x release with a fix will be 7.45 (4 weeks from now). That work will also fix optaplanner master and resolve this issue url.

Future wise, now that we have this CI set up properly, and once we start pushing optaplanner 8 releases, we should not let such issues escape into the wild again.

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

rsynek commented 4 years ago

The build is still failing:

ge0ffrey commented 4 years ago

This should be green now for optaplanner master (not 7.x yet), but it's failing with a transfer problem: Error: Failed to execute goal on project optaplanner-examples: Could not resolve dependencies for project org.optaplanner:optaplanner-examples:jar:8.0.0-SNAPSHOT: Failed to collect dependencies at org.kie.kogito:drools-decisiontables:jar:1.0.0-SNAPSHOT -> org.drools:drools-decisiontables:jar:7.43.1.Final -> org.apache.poi:poi-ooxml:jar:4.1.2: Failed to read artifact descriptor for org.apache.poi:poi-ooxml:jar:4.1.2: Could not transfer artifact org.apache.poi:poi-ooxml:pom:4.1.2 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/apache/poi/poi-ooxml/4.1.2/poi-ooxml-4.1.2.pom: Connection timed out (Read failed) -> [Help 1]

rsynek commented 4 years ago

The build is still failing:

rsynek commented 3 years ago

Build fixed:

ge0ffrey commented 3 years ago

Note that 7.x is still broken, blocked by this: https://quarkusio.zulipchat.com/#narrow/stream/187038-dev/topic/ClassLoading.20error.20in.20hot.20deploy

rsynek commented 3 years ago

Unfortunately, the build failed:

triceo commented 3 years ago

This is a regression on our end. We're working on a fix: https://github.com/kiegroup/optaplanner/pull/975

rsynek commented 3 years ago

The build is still failing:

triceo commented 3 years ago

The native image generation will be failing for a few more days still. We are working on a fix in one of our upstream projects.

rsynek commented 3 years ago

The build is still failing:

rsynek commented 3 years ago

Build fixed:

rsynek commented 3 years ago

Unfortunately, the build failed:

rsynek commented 3 years ago

Reproduced locally, should be fixed by https://github.com/kiegroup/optaplanner/pull/1094.

rsynek commented 3 years ago

The build is still failing:

rsynek commented 3 years ago

Build fixed:

rsynek commented 3 years ago

Unfortunately, the build failed: