-
Notifications
You must be signed in to change notification settings - Fork 206
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
[KOGITO-9555] Adding generic endpoint #3116
Conversation
(tests) - kogito-apps job Reproducerexport BUILD_MVN_OPTS_CURRENT= NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution Test results:
Those are the test failures: Build projects / org.kie.kogito.it.jobs.MultipleTimerInstancesIT.boundaryTimerEventjava.lang.IllegalStateException: Unable to determine the status of the running process. See the above logs for details |
jenkins run kogito-apps tests |
(tests) - kogito-runtimes job Reproducerexport BUILD_MVN_OPTS_CURRENT=-T 1C -Dvalidate-formatting -Prun-code-coverage NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution Test results:
Those are the test failures: none See console log: Console Logs[2023-07-12T07:58:03.402Z] [INFO] Kogito :: Add-Ons :: Persistence MongoDB :: Springboot SUCCESS [ 2.696 s][2023-07-12T07:58:03.402Z] [INFO] Kogito :: Add-Ons :: Persistence PostgreSQL :: Springboot SUCCESS [ 5.480 s] [2023-07-12T07:58:03.402Z] [INFO] Kogito :: Spring Boot :: Maven Archetype ........... SUCCESS [02:40 min] [2023-07-12T07:58:03.402Z] [INFO] Kogito :: Test Utilities :: Spring Boot ............ SUCCESS [ 34.897 s] [2023-07-12T07:58:03.402Z] [INFO] Kogito :: Integration Tests :: Spring Boot ......... SUCCESS [04:18 min] [2023-07-12T07:58:03.402Z] [INFO] ------------------------------------------------------------------------ [2023-07-12T07:58:03.402Z] [INFO] BUILD FAILURE [2023-07-12T07:58:03.402Z] [INFO] ------------------------------------------------------------------------ [2023-07-12T07:58:03.402Z] [INFO] Total time: 17:00 min (Wall Clock) [2023-07-12T07:58:03.402Z] [INFO] Finished at: 2023-07-12T03:58:01-04:00 [2023-07-12T07:58:03.402Z] [INFO] ------------------------------------------------------------------------ [2023-07-12T07:58:03.402Z] [ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:2.16.7.Final:build (default) on project integration-tests-quarkus-processes: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors [2023-07-12T07:58:03.402Z] [ERROR] [error]: Build step org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor#generateSources threw an exception: java.util.NoSuchElementException: No value present [2023-07-12T07:58:03.402Z] [ERROR] at java.base/java.util.Optional.get(Optional.java:148) [2023-07-12T07:58:03.402Z] [ERROR] at org.kie.kogito.codegen.api.context.KogitoBuildContext.lambda$getPropertiesMap$2(KogitoBuildContext.java:173) [2023-07-12T07:58:03.402Z] [ERROR] at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:178) [2023-07-12T07:58:03.402Z] [ERROR] at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) [2023-07-12T07:58:03.402Z] [ERROR] at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) [2023-07-12T07:58:03.402Z] [ERROR] at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1621) [2023-07-12T07:58:03.402Z] [ERROR] at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) [2023-07-12T07:58:03.402Z] [ERROR] at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) [2023-07-12T07:58:03.402Z] [ERROR] at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) [2023-07-12T07:58:03.402Z] [ERROR] at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [2023-07-12T07:58:03.402Z] [ERROR] at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) [2023-07-12T07:58:03.402Z] [ERROR] at org.kie.kogito.codegen.api.context.KogitoBuildContext.getPropertiesMap(KogitoBuildContext.java:172) [2023-07-12T07:58:03.402Z] [ERROR] at org.kie.kogito.codegen.process.ProcessCodegen.internalGenerate(ProcessCodegen.java:494) [2023-07-12T07:58:03.402Z] [ERROR] at org.kie.kogito.codegen.core.AbstractGenerator.generate(AbstractGenerator.java:69) [2023-07-12T07:58:03.402Z] [ERROR] at org.kie.kogito.codegen.core.ApplicationGenerator.lambda$generateComponents$0(ApplicationGenerator.java:95) [2023-07-12T07:58:03.402Z] [ERROR] at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271) [2023-07-12T07:58:03.402Z] [ERROR] at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) [2023-07-12T07:58:03.402Z] [ERROR] at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) [2023-07-12T07:58:03.402Z] [ERROR] at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) [2023-07-12T07:58:03.402Z] [ERROR] at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) [2023-07-12T07:58:03.402Z] [ERROR] at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [2023-07-12T07:58:03.402Z] [ERROR] at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) [2023-07-12T07:58:03.402Z] [ERROR] at org.kie.kogito.codegen.core.ApplicationGenerator.generateComponents(ApplicationGenerator.java:97) [2023-07-12T07:58:03.402Z] [ERROR] at org.kie.kogito.codegen.core.ApplicationGenerator.generate(ApplicationGenerator.java:74) [2023-07-12T07:58:03.402Z] [ERROR] at org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor.generateFiles(KogitoAssetsProcessor.java:260) [2023-07-12T07:58:03.402Z] [ERROR] at org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor.generateSources(KogitoAssetsProcessor.java:137) [2023-07-12T07:58:03.402Z] [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [2023-07-12T07:58:03.402Z] [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [2023-07-12T07:58:03.402Z] [ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [2023-07-12T07:58:03.402Z] [ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:566) [2023-07-12T07:58:03.402Z] [ERROR] at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:909) [2023-07-12T07:58:03.402Z] [ERROR] at io.quarkus.builder.BuildContext.run(BuildContext.java:281) [2023-07-12T07:58:03.402Z] [ERROR] at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18) [2023-07-12T07:58:03.402Z] [ERROR] at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449) [2023-07-12T07:58:03.402Z] [ERROR] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478) [2023-07-12T07:58:03.402Z] [ERROR] at java.base/java.lang.Thread.run(Thread.java:829) [2023-07-12T07:58:03.402Z] [ERROR] at org.jboss.threads.JBossThread.run(JBossThread.java:501) [2023-07-12T07:58:03.402Z] [ERROR] -> [Help 1] [2023-07-12T07:58:03.402Z] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.quarkus:quarkus-maven-plugin:2.16.7.Final:build (default) on project integration-tests-quarkus-processes: Failed to build quarkus application [2023-07-12T07:58:03.402Z] at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:375) [2023-07-12T07:58:03.402Z] at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351) [2023-07-12T07:58:03.402Z] at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) [2023-07-12T07:58:03.402Z] at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171) [2023-07-12T07:58:03.402Z] at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163) [2023-07-12T07:58:03.402Z] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) [2023-07-12T07:58:03.402Z] at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:210) [2023-07-12T07:58:03.402Z] at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:195) [2023-07-12T07:58:03.402Z] at java.util.concurrent.FutureTask.run (FutureTask.java:264) [2023-07-12T07:58:03.402Z] at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:515) [2023-07-12T07:58:03.402Z] at java.util.concurrent.FutureTask.run (FutureTask.java:264) [2023-07-12T07:58:03.402Z] at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128) [2023-07-12T07:58:03.402Z] at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628) [2023-07-12T07:58:03.402Z] at java.lang.Thread.run (Thread.java:829) [2023-07-12T07:58:03.402Z] Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to build quarkus application [2023-07-12T07:58:03.402Z] at io.quarkus.maven.BuildMojo.doExecute (BuildMojo.java:170) [2023-07-12T07:58:03.402Z] at io.quarkus.maven.QuarkusBootstrapMojo.execute (QuarkusBootstrapMojo.java:154) [2023-07-12T07:58:03.402Z] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) [2023-07-12T07:58:03.402Z] at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370) [2023-07-12T07:58:03.402Z] at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351) [2023-07-12T07:58:03.402Z] at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) [2023-07-12T07:58:03.403Z] at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171) [2023-07-12T07:58:03.403Z] at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163) [2023-07-12T07:58:03.403Z] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) [2023-07-12T07:58:03.403Z] at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:210) [2023-07-12T07:58:03.403Z] at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:195) [2023-07-12T07:58:03.403Z] at java.util.concurrent.FutureTask.run (FutureTask.java:264) [2023-07-12T07:58:03.403Z] at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:515) [2023-07-12T07:58:03.403Z] at java.util.concurrent.FutureTask.run (FutureTask.java:264) [2023-07-12T07:58:03.403Z] at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128) [2023-07-12T07:58:03.403Z] at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628) [2023-07-12T07:58:03.403Z] at java.lang.Thread.run (Thread.java:829) [2023-07-12T07:58:03.403Z] Caused by: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors [2023-07-12T07:58:03.403Z] [error]: Build step org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor#generateSources threw an exception: java.util.NoSuchElementException: No value present [2023-07-12T07:58:03.403Z] at java.base/java.util.Optional.get(Optional.java:148) [2023-07-12T07:58:03.403Z] at org.kie.kogito.codegen.api.context.KogitoBuildContext.lambda$getPropertiesMap$2(KogitoBuildContext.java:173) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:178) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) [2023-07-12T07:58:03.403Z] at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1621) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) [2023-07-12T07:58:03.403Z] at org.kie.kogito.codegen.api.context.KogitoBuildContext.getPropertiesMap(KogitoBuildContext.java:172) [2023-07-12T07:58:03.403Z] at org.kie.kogito.codegen.process.ProcessCodegen.internalGenerate(ProcessCodegen.java:494) [2023-07-12T07:58:03.403Z] at org.kie.kogito.codegen.core.AbstractGenerator.generate(AbstractGenerator.java:69) [2023-07-12T07:58:03.403Z] at org.kie.kogito.codegen.core.ApplicationGenerator.lambda$generateComponents$0(ApplicationGenerator.java:95) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271) [2023-07-12T07:58:03.403Z] at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) [2023-07-12T07:58:03.403Z] at org.kie.kogito.codegen.core.ApplicationGenerator.generateComponents(ApplicationGenerator.java:97) [2023-07-12T07:58:03.403Z] at org.kie.kogito.codegen.core.ApplicationGenerator.generate(ApplicationGenerator.java:74) [2023-07-12T07:58:03.403Z] at org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor.generateFiles(KogitoAssetsProcessor.java:260) [2023-07-12T07:58:03.403Z] at org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor.generateSources(KogitoAssetsProcessor.java:137) [2023-07-12T07:58:03.403Z] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [2023-07-12T07:58:03.403Z] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [2023-07-12T07:58:03.403Z] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [2023-07-12T07:58:03.403Z] at java.base/java.lang.reflect.Method.invoke(Method.java:566) [2023-07-12T07:58:03.403Z] at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:909) [2023-07-12T07:58:03.403Z] at io.quarkus.builder.BuildContext.run(BuildContext.java:281) [2023-07-12T07:58:03.403Z] at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18) [2023-07-12T07:58:03.403Z] at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449) [2023-07-12T07:58:03.403Z] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478) [2023-07-12T07:58:03.403Z] at java.base/java.lang.Thread.run(Thread.java:829) [2023-07-12T07:58:03.403Z] at org.jboss.threads.JBossThread.run(JBossThread.java:501) [2023-07-12T07:58:03.403Z] [2023-07-12T07:58:03.403Z] at io.quarkus.runner.bootstrap.AugmentActionImpl.runAugment (AugmentActionImpl.java:335) [2023-07-12T07:58:03.403Z] at io.quarkus.runner.bootstrap.AugmentActionImpl.createProductionApplication (AugmentActionImpl.java:175) [2023-07-12T07:58:03.403Z] at io.quarkus.maven.BuildMojo.doExecute (BuildMojo.java:133) [2023-07-12T07:58:03.403Z] at io.quarkus.maven.QuarkusBootstrapMojo.execute (QuarkusBootstrapMojo.java:154) [2023-07-12T07:58:03.403Z] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) [2023-07-12T07:58:03.403Z] at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370) [2023-07-12T07:58:03.403Z] at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351) [2023-07-12T07:58:03.403Z] at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) [2023-07-12T07:58:03.403Z] at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171) [2023-07-12T07:58:03.403Z] at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163) [2023-07-12T07:58:03.403Z] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) [2023-07-12T07:58:03.403Z] at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:210) [2023-07-12T07:58:03.403Z] at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:195) [2023-07-12T07:58:03.403Z] at java.util.concurrent.FutureTask.run (FutureTask.java:264) [2023-07-12T07:58:03.403Z] at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:515) [2023-07-12T07:58:03.403Z] at java.util.concurrent.FutureTask.run (FutureTask.java:264) [2023-07-12T07:58:03.403Z] at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128) [2023-07-12T07:58:03.403Z] at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628) [2023-07-12T07:58:03.403Z] at java.lang.Thread.run (Thread.java:829) [2023-07-12T07:58:03.403Z] Caused by: io.quarkus.builder.BuildException: Build failure: Build failed due to errors [2023-07-12T07:58:03.403Z] [error]: Build step org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor#generateSources threw an exception: java.util.NoSuchElementException: No value present [2023-07-12T07:58:03.403Z] at java.base/java.util.Optional.get(Optional.java:148) [2023-07-12T07:58:03.403Z] at org.kie.kogito.codegen.api.context.KogitoBuildContext.lambda$getPropertiesMap$2(KogitoBuildContext.java:173) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:178) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) [2023-07-12T07:58:03.403Z] at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1621) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) [2023-07-12T07:58:03.403Z] at org.kie.kogito.codegen.api.context.KogitoBuildContext.getPropertiesMap(KogitoBuildContext.java:172) [2023-07-12T07:58:03.403Z] at org.kie.kogito.codegen.process.ProcessCodegen.internalGenerate(ProcessCodegen.java:494) [2023-07-12T07:58:03.403Z] at org.kie.kogito.codegen.core.AbstractGenerator.generate(AbstractGenerator.java:69) [2023-07-12T07:58:03.403Z] at org.kie.kogito.codegen.core.ApplicationGenerator.lambda$generateComponents$0(ApplicationGenerator.java:95) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271) [2023-07-12T07:58:03.403Z] at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [2023-07-12T07:58:03.403Z] at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) [2023-07-12T07:58:03.403Z] at org.kie.kogito.codegen.core.ApplicationGenerator.generateComponents(ApplicationGenerator.java:97) [2023-07-12T07:58:03.403Z] at org.kie.kogito.codegen.core.ApplicationGenerator.generate(ApplicationGenerator.java:74) [2023-07-12T07:58:03.403Z] at org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor.generateFiles(KogitoAssetsProcessor.java:260) [2023-07-12T07:58:03.403Z] at org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor.generateSources(KogitoAssetsProcessor.java:137) [2023-07-12T07:58:03.403Z] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [2023-07-12T07:58:03.403Z] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [2023-07-12T07:58:03.403Z] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [2023-07-12T07:58:03.403Z] at java.base/java.lang.reflect.Method.invoke(Method.java:566) [2023-07-12T07:58:03.403Z] at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:909) [2023-07-12T07:58:03.403Z] at io.quarkus.builder.BuildContext.run(BuildContext.java:281) [2023-07-12T07:58:03.403Z] at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18) [2023-07-12T07:58:03.403Z] at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449) [2023-07-12T07:58:03.403Z] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478) [2023-07-12T07:58:03.403Z] at java.base/java.lang.Thread.run(Thread.java:829) [2023-07-12T07:58:03.403Z] at org.jboss.threads.JBossThread.run(JBossThread.java:501) [2023-07-12T07:58:03.403Z] [2023-07-12T07:58:03.403Z] at io.quarkus.builder.Execution.run (Execution.java:123) [2023-07-12T07:58:03.403Z] at io.quarkus.builder.BuildExecutionBuilder.execute (BuildExecutionBuilder.java:79) [2023-07-12T07:58:03.403Z] at io.quarkus.deployment.QuarkusAugmentor.run (QuarkusAugmentor.java:160) [2023-07-12T07:58:03.403Z] at io.quarkus.runner.bootstrap.AugmentActionImpl.runAugment (AugmentActionImpl.java:331) [2023-07-12T07:58:03.403Z] at io.quarkus.runner.bootstrap.AugmentActionImpl.createProductionApplication (AugmentActionImpl.java:175) [2023-07-12T07:58:03.403Z] at io.quarkus.maven.BuildMojo.doExecute (BuildMojo.java:133) [2023-07-12T07:58:03.403Z] at io.quarkus.maven.QuarkusBootstrapMojo.execute (QuarkusBootstrapMojo.java:154) [2023-07-12T07:58:03.403Z] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) [2023-07-12T07:58:03.404Z] at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370) [2023-07-12T07:58:03.404Z] at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351) [2023-07-12T07:58:03.404Z] at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) [2023-07-12T07:58:03.404Z] at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171) [2023-07-12T07:58:03.404Z] at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163) [2023-07-12T07:58:03.404Z] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) [2023-07-12T07:58:03.404Z] at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:210) [2023-07-12T07:58:03.404Z] at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:195) [2023-07-12T07:58:03.404Z] at java.util.concurrent.FutureTask.run (FutureTask.java:264) [2023-07-12T07:58:03.404Z] at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:515) [2023-07-12T07:58:03.404Z] at java.util.concurrent.FutureTask.run (FutureTask.java:264) [2023-07-12T07:58:03.404Z] at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128) [2023-07-12T07:58:03.404Z] at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628) [2023-07-12T07:58:03.404Z] at java.lang.Thread.run (Thread.java:829) [2023-07-12T07:58:03.404Z] Caused by: java.util.NoSuchElementException: No value present [2023-07-12T07:58:03.404Z] at java.util.Optional.get (Optional.java:148) [2023-07-12T07:58:03.404Z] at org.kie.kogito.codegen.api.context.KogitoBuildContext.lambda$getPropertiesMap$2 (KogitoBuildContext.java:173) [2023-07-12T07:58:03.404Z] at java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1 (Collectors.java:178) [2023-07-12T07:58:03.404Z] at java.util.stream.ReduceOps$3ReducingSink.accept (ReduceOps.java:169) [2023-07-12T07:58:03.404Z] at java.util.stream.ReferencePipeline$2$1.accept (ReferencePipeline.java:177) [2023-07-12T07:58:03.404Z] at java.util.HashMap$KeySpliterator.forEachRemaining (HashMap.java:1621) [2023-07-12T07:58:03.404Z] at java.util.stream.AbstractPipeline.copyInto (AbstractPipeline.java:484) [2023-07-12T07:58:03.404Z] at java.util.stream.AbstractPipeline.wrapAndCopyInto (AbstractPipeline.java:474) [2023-07-12T07:58:03.404Z] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential (ReduceOps.java:913) [2023-07-12T07:58:03.404Z] at java.util.stream.AbstractPipeline.evaluate (AbstractPipeline.java:234) [2023-07-12T07:58:03.404Z] at java.util.stream.ReferencePipeline.collect (ReferencePipeline.java:578) [2023-07-12T07:58:03.404Z] at org.kie.kogito.codegen.api.context.KogitoBuildContext.getPropertiesMap (KogitoBuildContext.java:172) [2023-07-12T07:58:03.404Z] at org.kie.kogito.codegen.process.ProcessCodegen.internalGenerate (ProcessCodegen.java:494) [2023-07-12T07:58:03.404Z] at org.kie.kogito.codegen.core.AbstractGenerator.generate (AbstractGenerator.java:69) [2023-07-12T07:58:03.404Z] at org.kie.kogito.codegen.core.ApplicationGenerator.lambda$generateComponents$0 (ApplicationGenerator.java:95) [2023-07-12T07:58:03.404Z] at java.util.stream.ReferencePipeline$7$1.accept (ReferencePipeline.java:271) [2023-07-12T07:58:03.404Z] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining (ArrayList.java:1655) [2023-07-12T07:58:03.404Z] at java.util.stream.AbstractPipeline.copyInto (AbstractPipeline.java:484) [2023-07-12T07:58:03.404Z] at java.util.stream.AbstractPipeline.wrapAndCopyInto (AbstractPipeline.java:474) [2023-07-12T07:58:03.404Z] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential (ReduceOps.java:913) [2023-07-12T07:58:03.404Z] at java.util.stream.AbstractPipeline.evaluate (AbstractPipeline.java:234) [2023-07-12T07:58:03.404Z] at java.util.stream.ReferencePipeline.collect (ReferencePipeline.java:578) [2023-07-12T07:58:03.404Z] at org.kie.kogito.codegen.core.ApplicationGenerator.generateComponents (ApplicationGenerator.java:97) [2023-07-12T07:58:03.404Z] at org.kie.kogito.codegen.core.ApplicationGenerator.generate (ApplicationGenerator.java:74) [2023-07-12T07:58:03.404Z] at org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor.generateFiles (KogitoAssetsProcessor.java:260) [2023-07-12T07:58:03.404Z] at org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor.generateSources (KogitoAssetsProcessor.java:137) [2023-07-12T07:58:03.404Z] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) [2023-07-12T07:58:03.404Z] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) [2023-07-12T07:58:03.404Z] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) [2023-07-12T07:58:03.404Z] at java.lang.reflect.Method.invoke (Method.java:566) [2023-07-12T07:58:03.404Z] at io.quarkus.deployment.ExtensionLoader$3.execute (ExtensionLoader.java:909) [2023-07-12T07:58:03.404Z] at io.quarkus.builder.BuildContext.run (BuildContext.java:281) [2023-07-12T07:58:03.404Z] at org.jboss.threads.ContextHandler$1.runWith (ContextHandler.java:18) [2023-07-12T07:58:03.404Z] at org.jboss.threads.EnhancedQueueExecutor$Task.run (EnhancedQueueExecutor.java:2449) [2023-07-12T07:58:03.404Z] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run (EnhancedQueueExecutor.java:1478) [2023-07-12T07:58:03.404Z] at java.lang.Thread.run (Thread.java:829) [2023-07-12T07:58:03.404Z] at org.jboss.threads.JBossThread.run (JBossThread.java:501) [2023-07-12T07:58:03.404Z] [ERROR] [2023-07-12T07:58:03.404Z] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [2023-07-12T07:58:03.404Z] [ERROR] [2023-07-12T07:58:03.404Z] [ERROR] For more information about the errors and possible solutions, please read the following articles: [2023-07-12T07:58:03.404Z] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [2023-07-12T07:58:03.404Z] [ERROR] [2023-07-12T07:58:03.404Z] [ERROR] After correcting the problems, you can resume the build with the command [2023-07-12T07:58:03.404Z] [ERROR] mvn -rf :integration-tests-quarkus-processes [2023-07-12T07:58:05.284Z] [INFO] kiegroup/kogito-runtimes failed. Won't execute remaining commands and projects [2023-07-12T07:58:05.284Z] [INFO] Execution summary for kiegroup/kogito-runtimes [2023-07-12T07:58:05.284Z] # [BEFORE] [kiegroup/kogito-runtimes] export INTEGRATION_BRANCH= [2023-07-12T07:58:05.284Z] [INFO] OK [Executed in 0.152236 ms] [2023-07-12T07:58:05.284Z] [2023-07-12T07:58:05.284Z] # [BEFORE] [kiegroup/kogito-runtimes] bash -c "if [ ! -z '' ] && [ -f .ci/environments/update.sh ]; then .ci/environments/update.sh ; fi" [2023-07-12T07:58:05.284Z] [INFO] OK [Executed in 5.442108 ms] [2023-07-12T07:58:05.284Z] [2023-07-12T07:58:05.284Z] # [COMMANDS] [kiegroup/kogito-runtimes] export MVN_CMD=`bash -c "if [ '' = 'true' ]; then printf 'deploy '; else printf 'install'; fi"` [2023-07-12T07:58:05.284Z] [INFO] OK [Executed in 4.234483 ms] [2023-07-12T07:58:05.284Z] [2023-07-12T07:58:05.285Z] # [COMMANDS] [kiegroup/kogito-runtimes] mvn dependency:tree clean -Dfull install -s /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.kogito-runtimes@tmp/config13715302710072278111tmp -Dmaven.wagon.http.ssl.insecure=true -Dmaven.test.failure.ignore=true -nsu -ntp -fae -e -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dmaven.wagon.http.retryHandler.count=3 -T 1C -Dvalidate-formatting -Prun-code-coverage -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B [2023-07-12T07:58:05.285Z] [INFO] NOT OK [Executed in 1024206.019887 ms] [2023-07-12T07:58:05.285Z] [ERROR] The process '/opt/tools/apache-maven-3.8.7/bin/mvn' failed with exit code 1 [2023-07-12T07:58:05.285Z] [2023-07-12T07:58:05.285Z] [INFO] [AFTER] No commands were found for kiegroup/kogito-runtimes [2023-07-12T07:58:05.285Z] [2023-07-12T07:58:05.285Z] # Uploading artifacts [2023-07-12T07:58:05.285Z] [INFO] Will not upload any artifacts in CLI environment [2023-07-12T07:58:05.285Z] [2023-07-12T07:58:05.285Z] [ERROR] Failed to execute commands for kiegroup/kogito-runtimes [2023-07-12T07:58:05.285Z] [ERROR] Failed to execute mvn dependency:tree clean -Dfull install -s /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.kogito-runtimes@tmp/config13715302710072278111tmp -Dmaven.wagon.http.ssl.insecure=true -Dmaven.test.failure.ignore=true -nsu -ntp -fae -e -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dmaven.wagon.http.retryHandler.count=3 -T 1C -Dvalidate-formatting -Prun-code-coverage -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B : [2023-07-12T07:58:05.285Z] [ERROR] The process '/opt/tools/apache-maven-3.8.7/bin/mvn' failed with exit code 1 [Pipeline] } [Pipeline] // withCredentials [Pipeline] } [2023-07-12T07:58:05.382Z] Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // script Post stage [Pipeline] script [Pipeline] { [Pipeline] sh [2023-07-12T07:58:05.967Z] + find . -type d -name node_modules -exec rm -rf '{}' ';' [Pipeline] junit [2023-07-12T07:58:10.202Z] Recording test results [2023-07-12T07:58:14.893Z] [Checks API] No suitable checks publisher found. [Pipeline] archiveArtifacts [2023-07-12T07:58:14.925Z] Archiving artifacts [Pipeline] } [Pipeline] // script [Pipeline] script [Pipeline] { [Pipeline] sh [2023-07-12T07:58:16.102Z] + rm -rf console.log [Pipeline] sh [2023-07-12T07:58:16.398Z] + wget --no-check-certificate -qO - https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.kogito-runtimes/2860/consoleText [2023-07-12T07:58:16.398Z] + tail -n 300 |
(tests) - kogito-springboot-examples job Reproducerexport BUILD_MVN_OPTS_CURRENT= NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution Test results:
Those are the test failures: org.kie.kogito.springboot.outbox.OutboxIT.(?)org.testcontainers.containers.ContainerLaunchException: Timed out waiting for container port to open (localhost ports: [8080, 32789] should be listening) |
jenkins run kogito-runtimes tests |
(tests) - kogito-runtimes job Reproducerexport BUILD_MVN_OPTS_CURRENT=-T 1C -Dvalidate-formatting -Prun-code-coverage NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution Test results:
Those are the test failures: org.kie.kogito.persistence.kafka.KafkaProcessInstancesIT.testFindByIdReadModeexpected: 5 but was: 0 |
jenkins run kogito-runtimes tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just minor suggestions.
} | ||
|
||
private Process<JsonNodeModel> findOrCreate(Workflow workflow) { | ||
return findProcessById(workflow.getId()).orElseGet(() -> process(workflow)); | ||
} | ||
|
||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the JavaDoc of this method to point to the newly-created findOrCreate
method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is private method, does not require javadoc, isnt it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fjtirado there is a JavaDoc on the method on the line 178, which is now incorrect.
...ons/runtime/src/main/java/org/kie/kogito/process/definitions/ProcessDefinitionsResource.java
Show resolved
Hide resolved
quarkus/addons/process-definitions/runtime/src/test/resources/logback-test.xml
Outdated
Show resolved
Hide resolved
@fjtirado code looks fine, but I'm a little confused by the extension name. Process definition is a term from jbpm/bpmn that we somehow reuse for sw to describe the model. So looking at the name, I was wondering the exact goal. My suggestion would be to maybe review the naming to something more descriptive to its function which is to store definitions. Perhaps storage ? |
@cristianonicolai I think definition is the right term. This addon is handling addition and modification of process definitions (and might be even valid for bpmn definitions in future, so I do not think appropiated to single out that it only currently supports SWF definitions in the name). Storage is too narrow in my opinion, since this endpoint also allow execution of the added process definition and eventually will support limited variables query of non straight throug process (as Mariam has requested and it is done for predefined defintions) |
(tests) - kogito-runtimes job Reproducerexport BUILD_MVN_OPTS_CURRENT=-T 1C -Dvalidate-formatting -Prun-code-coverage NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution Test results:
Those are the test failures: org.kie.kogito.quarkus.workflows.AsyncAPIIT.testConsumerCondition with alias 'dead' didn't complete within 10 seconds because assertion condition defined as a lambda expression in org.kie.kogito.quarkus.workflows.AssuredTestUtils that uses java.lang.String, java.lang.Stringjava.lang.String 1 expectation failed.Expected status code <404> but was <200>. . |
jenkins run kogito-runtimes tests |
Kudos, SonarCloud Quality Gate passed! |
This defines a new addon that allows dynamic uploading of workflow files and its execution.
Process definitions are currently stored in memory. process persistence will be provided by a a different JIRA.