-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[Incubator kie issues#1743]Return a list of dates instead of a range #6223
Conversation
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.
Thanks @AthiraHari77 LGTM! 👍
ForIteration actualResult = getForIteration(range, "rangeTest", ctx); | ||
assertThat(actualResult).isNotNull(); | ||
assertEquals(actualResult.toString(), expectedResult.toString()); |
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 do not use assertEquals. Assertj assertions are standard inside drools code.
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.
Fixed, updated the testcases.
PR job Reproducerbuild-chain build full_downstream -f 'https://raw.githubusercontent.com/${AUTHOR:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/buildchain-config-pr-cdb.yaml' -o 'bc' -p apache/incubator-kie-drools -u #6223 --skipParallelCheckout NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution Please look here: https://ci-builds.apache.org/job/KIE/job/drools/job/main/job/pullrequest_jobs/job/drools-pr/job/PR-6223/3/display/redirect Test results:
Those are the test failures: org.kie.dmn.feel.lang.ast.forexpressioniterators.ForIterationUtilsTest.getForIterationNotValidTestExpecting actual throwable to be an instance of: org.kie.dmn.feel.exceptions.EndpointOfRangeNotValidTypeException but was: org.kie.dmn.feel.exceptions.EndpointOfForIterationNotValidTypeException at org.kie.dmn.feel.lang.ast.forexpressioniterators.ForIterationUtils.valueMustBeValid(ForIterationUtils.java:62) at org.kie.dmn.feel.lang.ast.forexpressioniterators.ForIterationUtils.validateValues(ForIterationUtils.java:55) at org.kie.dmn.feel.lang.ast.forexpressioniterators.ForIterationUtils.getForIteration(ForIterationUtils.java:37) ...(74 remaining lines not displayed - this can be changed with Assertions.setMaxStackTraceElementsDisplayed) org.kie.dmn.feel.lang.ast.forexpressioniterators.ForIterationUtilsTest.validateValuesFalseTestExpecting actual throwable to be an instance of: org.kie.dmn.feel.exceptions.EndpointOfRangeNotValidTypeException but was: org.kie.dmn.feel.exceptions.EndpointOfForIterationNotValidTypeException at org.kie.dmn.feel.lang.ast.forexpressioniterators.ForIterationUtils.valueMustBeValid(ForIterationUtils.java:62) at org.kie.dmn.feel.lang.ast.forexpressioniterators.ForIterationUtils.validateValues(ForIterationUtils.java:55) at org.kie.dmn.feel.lang.ast.forexpressioniterators.ForIterationUtilsTest.validateValuesFalseTest(ForIterationUtilsTest.java:127) ...(73 remaining lines not displayed - this can be changed with Assertions.setMaxStackTraceElementsDisplayed) org.kie.dmn.feel.lang.ast.forexpressioniterators.ForIterationUtilsTest.valueMustBeValidFalseTestExpecting actual throwable to be an instance of: org.kie.dmn.feel.exceptions.EndpointOfRangeNotValidTypeException but was: org.kie.dmn.feel.exceptions.EndpointOfForIterationNotValidTypeException at org.kie.dmn.feel.lang.ast.forexpressioniterators.ForIterationUtils.valueMustBeValid(ForIterationUtils.java:62) at org.kie.dmn.feel.lang.ast.forexpressioniterators.ForIterationUtilsTest.valueMustBeValidFalseTest(ForIterationUtilsTest.java:108) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ...(72 remaining lines not displayed - this can be changed with Assertions.setMaxStackTraceElementsDisplayed) org.kie.dmn.feel.runtime.FEEL12ExtendedForLoopTest.instanceTest(String, Object, Severity, FEEL_TARGET, Boolean, FEELDialect)[9]org.kie.dmn.feel.exceptions.EndpointOfForIterationDifferentTypeExceptionat org.kie.dmn.feel.lang.ast.forexpressioniterators.ForIterationUtils.validateValues(ForIterationUtils.java:53) at org.kie.dmn.feel.lang.ast.forexpressioniterators.ForIterationUtils.getForIteration(ForIterationUtils.java:37) at org.kie.dmn.feel.lang.ast.ForExpressionNode.createForIteration(ForExpressionNode.java:146) at org.kie.dmn.feel.lang.ast.ForExpressionNode.populateToReturn(ForExpressionNode.java:103) at org.kie.dmn.feel.lang.ast.ForExpressionNode.evaluate(ForExpressionNode.java:85) at org.kie.dmn.feel.lang.impl.CompiledExpressionImpl.apply(CompiledExpressionImpl.java:49) at org.kie.dmn.feel.lang.impl.InterpretedExecutableExpression.apply(InterpretedExecutableExpression.java:40) at org.kie.dmn.feel.lang.impl.InterpretedExecutableExpression.apply(InterpretedExecutableExpression.java:26) at org.kie.dmn.feel.codegen.feel11.ProcessedExpression.apply(ProcessedExpression.java:96) at org.kie.dmn.feel.codegen.feel11.ProcessedExpression.apply(ProcessedExpression.java:39) at org.kie.dmn.feel.lang.impl.FEELImpl.evaluate(FEELImpl.java:156) at org.kie.dmn.feel.lang.impl.FEELImpl.evaluate(FEELImpl.java:148) at org.kie.dmn.feel.lang.impl.FEELImpl.evaluate(FEELImpl.java:124) at org.kie.dmn.feel.runtime.BaseFEELTest.assertResult(BaseFEELTest.java:89) at org.kie.dmn.feel.runtime.BaseFEELTest.expression(BaseFEELTest.java:74) at org.kie.dmn.feel.runtime.FEEL12ExtendedForLoopTest.instanceTest(FEEL12ExtendedForLoopTest.java:45) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762) at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) org.kie.dmn.feel.runtime.FEEL12ExtendedForLoopTest.instanceTest(String, Object, Severity, FEEL_TARGET, Boolean, FEELDialect)[10]org.kie.dmn.feel.exceptions.EndpointOfForIterationDifferentTypeExceptionat org.kie.dmn.feel.lang.ast.forexpressioniterators.ForIterationUtils.validateValues(ForIterationUtils.java:53) at org.kie.dmn.feel.lang.ast.forexpressioniterators.ForIterationUtils.getForIteration(ForIterationUtils.java:37) at org.kie.dmn.feel.lang.ast.ForExpressionNode.createForIteration(ForExpressionNode.java:146) at org.kie.dmn.feel.lang.ast.ForExpressionNode.populateToReturn(ForExpressionNode.java:103) at org.kie.dmn.feel.lang.ast.ForExpressionNode.evaluate(ForExpressionNode.java:85) at org.kie.dmn.feel.codegen.feel11.gen902e779e9b4f422495f4844979c88e4d.TemplateCompiledFEELExpression.apply(TemplateCompiledFEELExpression.java:36) at org.kie.dmn.feel.codegen.feel11.gen902e779e9b4f422495f4844979c88e4d.TemplateCompiledFEELExpression.apply(TemplateCompiledFEELExpression.java:26) at org.kie.dmn.feel.lang.impl.CompiledExecutableExpression.apply(CompiledExecutableExpression.java:34) at org.kie.dmn.feel.lang.impl.CompiledExecutableExpression.apply(CompiledExecutableExpression.java:24) at org.kie.dmn.feel.codegen.feel11.ProcessedExpression.apply(ProcessedExpression.java:96) at org.kie.dmn.feel.codegen.feel11.ProcessedExpression.apply(ProcessedExpression.java:39) at org.kie.dmn.feel.lang.impl.FEELImpl.evaluate(FEELImpl.java:156) at org.kie.dmn.feel.lang.impl.FEELImpl.evaluate(FEELImpl.java:148) at org.kie.dmn.feel.lang.impl.FEELImpl.evaluate(FEELImpl.java:124) at org.kie.dmn.feel.runtime.BaseFEELTest.assertResult(BaseFEELTest.java:89) at org.kie.dmn.feel.runtime.BaseFEELTest.expression(BaseFEELTest.java:74) at org.kie.dmn.feel.runtime.FEEL12ExtendedForLoopTest.instanceTest(FEEL12ExtendedForLoopTest.java:45) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762) at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) org.kie.dmn.feel.runtime.FEEL12ExtendedForLoopTest.instanceTest(String, Object, Severity, FEEL_TARGET, Boolean, FEELDialect)[21]org.kie.dmn.feel.exceptions.EndpointOfForIterationDifferentTypeExceptionat org.kie.dmn.feel.lang.ast.forexpressioniterators.ForIterationUtils.validateValues(ForIterationUtils.java:53) at org.kie.dmn.feel.lang.ast.forexpressioniterators.ForIterationUtils.getForIteration(ForIterationUtils.java:37) at org.kie.dmn.feel.lang.ast.ForExpressionNode.createForIteration(ForExpressionNode.java:146) at org.kie.dmn.feel.lang.ast.ForExpressionNode.populateToReturn(ForExpressionNode.java:103) at org.kie.dmn.feel.lang.ast.ForExpressionNode.evaluate(ForExpressionNode.java:85) at org.kie.dmn.feel.lang.ast.ContextEntryNode.evaluate(ContextEntryNode.java:70) at org.kie.dmn.feel.lang.ast.ContextNode.evaluate(ContextNode.java:79) at org.kie.dmn.feel.lang.impl.CompiledExpressionImpl.apply(CompiledExpressionImpl.java:49) at org.kie.dmn.feel.lang.impl.InterpretedExecutableExpression.apply(InterpretedExecutableExpression.java:40) at org.kie.dmn.feel.lang.impl.InterpretedExecutableExpression.apply(InterpretedExecutableExpression.java:26) at org.kie.dmn.feel.codegen.feel11.ProcessedExpression.apply(ProcessedExpression.java:96) at org.kie.dmn.feel.codegen.feel11.ProcessedExpression.apply(ProcessedExpression.java:39) at org.kie.dmn.feel.lang.impl.FEELImpl.evaluate(FEELImpl.java:156) at org.kie.dmn.feel.lang.impl.FEELImpl.evaluate(FEELImpl.java:148) at org.kie.dmn.feel.lang.impl.FEELImpl.evaluate(FEELImpl.java:124) at org.kie.dmn.feel.runtime.BaseFEELTest.assertResult(BaseFEELTest.java:89) at org.kie.dmn.feel.runtime.BaseFEELTest.expression(BaseFEELTest.java:74) at org.kie.dmn.feel.runtime.FEEL12ExtendedForLoopTest.instanceTest(FEEL12ExtendedForLoopTest.java:45) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762) at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) org.kie.dmn.feel.runtime.FEEL12ExtendedForLoopTest.instanceTest(String, Object, Severity, FEEL_TARGET, Boolean, FEELDialect)[22]org.kie.dmn.feel.exceptions.EndpointOfForIterationDifferentTypeExceptionat org.kie.dmn.feel.lang.ast.forexpressioniterators.ForIterationUtils.validateValues(ForIterationUtils.java:53) at org.kie.dmn.feel.lang.ast.forexpressioniterators.ForIterationUtils.getForIteration(ForIterationUtils.java:37) at org.kie.dmn.feel.lang.ast.ForExpressionNode.createForIteration(ForExpressionNode.java:146) at org.kie.dmn.feel.lang.ast.ForExpressionNode.populateToReturn(ForExpressionNode.java:103) at org.kie.dmn.feel.lang.ast.ForExpressionNode.evaluate(ForExpressionNode.java:85) at org.kie.dmn.feel.lang.ast.ContextEntryNode.evaluate(ContextEntryNode.java:70) at org.kie.dmn.feel.lang.ast.ContextNode.evaluate(ContextNode.java:79) at org.kie.dmn.feel.codegen.feel11.gen47b2b88379974214989da35eee190ab4.TemplateCompiledFEELExpression.apply(TemplateCompiledFEELExpression.java:36) at org.kie.dmn.feel.codegen.feel11.gen47b2b88379974214989da35eee190ab4.TemplateCompiledFEELExpression.apply(TemplateCompiledFEELExpression.java:26) at org.kie.dmn.feel.lang.impl.CompiledExecutableExpression.apply(CompiledExecutableExpression.java:34) at org.kie.dmn.feel.lang.impl.CompiledExecutableExpression.apply(CompiledExecutableExpression.java:24) at org.kie.dmn.feel.codegen.feel11.ProcessedExpression.apply(ProcessedExpression.java:96) at org.kie.dmn.feel.codegen.feel11.ProcessedExpression.apply(ProcessedExpression.java:39) at org.kie.dmn.feel.lang.impl.FEELImpl.evaluate(FEELImpl.java:156) at org.kie.dmn.feel.lang.impl.FEELImpl.evaluate(FEELImpl.java:148) at org.kie.dmn.feel.lang.impl.FEELImpl.evaluate(FEELImpl.java:124) at org.kie.dmn.feel.runtime.BaseFEELTest.assertResult(BaseFEELTest.java:89) at org.kie.dmn.feel.runtime.BaseFEELTest.expression(BaseFEELTest.java:74) at org.kie.dmn.feel.runtime.FEEL12ExtendedForLoopTest.instanceTest(FEEL12ExtendedForLoopTest.java:45) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762) at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) |
…1743 # Conflicts: # kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/Range.java # kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/impl/RangeImpl.java
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.
Thank you @AthiraHari77 !
@AthiraHari77 Unfortunately the CI reported 7 test failures, can you please check it? |
Fixes apache/incubator-kie-issues#1743
This PR resolves the issue in DMN TCK where ranges were not being evaluated correctly. With this fix, ranges are now evaluated properly, and a list of dates is returned instead of a range.
How to replicate CI configuration locally?
Build Chain tool does "simple" maven build(s), the builds are just Maven commands, but because the repositories relates and depends on each other and any change in API or class method could affect several of those repositories there is a need to use build-chain tool to handle cross repository builds and be sure that we always use latest version of the code for each repository.
build-chain tool is a build tool which can be used on command line locally or in Github Actions workflow(s), in case you need to change multiple repositories and send multiple dependent pull requests related with a change you can easily reproduce the same build by executing it on Github hosted environment or locally in your development environment. See local execution details to get more information about it.
How to retest this PR or trigger a specific build:
for pull request and downstream checks
for a full downstream build
run_fdb
for Jenkins PR check only
Build Now
button.