Skip to content

Instantly share code, notes, and snippets.

View hellowdan's full-sized avatar

Daniel Rosa hellowdan

  • Red Hat, Inc.
  • Brno, Czech Republic
View GitHub Profile
22:08:46 [INFO] Running org.drools.modelcompiler.util.lambdareplace.ExecModelLambdaPostProcessorTest
22:08:46 [ERROR] Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.062 s <<< FAILURE! - in org.drools.modelcompiler.util.lambdareplace.ExecModelLambdaPostProcessorTest
22:08:46 [ERROR] convertFlowLambdaDoNotConvertConsequenceWhenDrools(org.drools.modelcompiler.util.lambdareplace.ExecModelLambdaPostProcessorTest) Time elapsed: 0.058 s <<< FAILURE!
22:08:46 java.lang.AssertionError:
22:08:46
22:08:46 Expected: equalToIgnoringWhiteSpace("public void testMethod() {\r\n Variable<Person> markV = declarationOf(Person.class);\r\n Variable<Integer> markAge = declarationOf(Integer.class);\r\n Variable<Person> olderV = declarationOf(Person.class);\r\n Rule rule = FlowDSL.rule(\"beta\").build(expr(\"exprA\", markV, mypackage.LambdaPredicate3BC479A1F3E07E22E6B04B826FEF3203.INSTANCE).indexedBy(String.class, Index.ConstraintType.EQUAL, 1, mypackage.LambdaExtractor78CC335A6E209E33128956DF6E4B90
@hellowdan
hellowdan / perf-drools-dmn-benchmarks
Created February 17, 2020 10:43
stack trace to perf-drools-dmn-benchmarks upstream failure
00:48:13 [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ optaplanner-perf-framework ---
00:48:13 [INFO] Installing /home/hudson/workspace/BxMS/upstream/performance/bre-perf/blessed-upstream-perf-drools-dmn-benchmarks/optaplanner-benchmarks/optaplanner-perf-framework/target/optaplanner-perf-framework-7.34.0-SNAPSHOT.jar to /home/hudson/workspace/BxMS/upstream/performance/bre-perf/blessed-upstream-perf-drools-dmn-benchmarks/bootstrap-maven-repo/org/kie/optaplanner-perf-framework/7.34.0-SNAPSHOT/optaplanner-perf-framework-7.34.0-SNAPSHOT.jar
00:48:13 [INFO] Installing /home/hudson/workspace/BxMS/upstream/performance/bre-perf/blessed-upstream-perf-drools-dmn-benchmarks/optaplanner-benchmarks/optaplanner-perf-framework/pom.xml to /home/hudson/workspace/BxMS/upstream/performance/bre-perf/blessed-upstream-perf-drools-dmn-benchmarks/bootstrap-maven-repo/org/kie/optaplanner-perf-framework/7.34.0-SNAPSHOT/optaplanner-perf-framework-7.34.0-SNAPSHOT.pom
00:48:13 [INFO] Installing /home/hudson/workspace/
Regression
org.drools.compiler.integrationtests.KieContainerTest.testIncrementalCompilationSynchronization
Failing for the past 1 build (Since Unstable#858 )
Took 20 sec.
Error Message
test timed out after 20000 milliseconds
Stacktrace
@hellowdan
hellowdan / OOME buildtime benchmark
Created February 21, 2020 14:09
OOME buildtime benchmark jenkins failure
15:26:59 [blessed-perf-turtle-buildtime-benchmarks] $ /bin/sh -xe /tmp/jenkins7563721960339872650.sh
15:26:59 + echo 'java -jar ./drools-benchmarks/target/drools-benchmarks.jar -jvm /qa/tools/opt/x86_64/jdk1.8.0_202/bin/java -jvmArgs "-Xms6144m -Xmx6144m" -v SILENT -foe true -rf csv -rff results.csv org.drools.benchmarks.turtle.buildtime.*'
15:26:59 + sh jmh-run.sh
20:39:58
20:39:58
20:39:58 The system is out of resources.
20:39:58 Consult the following stack trace for details.
20:39:58 java.lang.OutOfMemoryError: GC overhead limit exceeded
20:39:58 at com.sun.tools.javac.code.Scope$CompoundScope$2.iterator(Scope.java:676)
20:39:58 at com.sun.tools.javac.code.Scope$CompoundScope$2$1.nextIterator(Scope.java:678)
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1967)
at org.drools.core.rule.constraint.MvelConstraint.getLeftInExpression(MvelConstraint.java:608)
at org.drools.core.rule.constraint.MvelConstraint.hashCode(MvelConstraint.java:602)
at org.drools.core.reteoo.AlphaNode.calculateHashCode(AlphaNode.java:189)
at org.drools.core.reteoo.AlphaNode.<init>(AlphaNode.java:89)
at org.drools.core.reteoo.builder.PhreakNodeFactory.buildAlphaNode(PhreakNodeFactory.java:88)
at org.drools.core.reteoo.builder.PatternBuilder.buildAlphaNodeChain(PatternBuilder.java:360)
at org.drools.core.reteoo.builder.PatternBuilder.attachAlphaNodes(PatternBuilder.java:346)
at org.drools.core.reteoo.builder.PatternBuilder.attachPattern(PatternBuilder.java:136)
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
16:32:59 16:32:59.878
[org.drools.benchmarks.turtle.runtime.InsertLogicalFactsIntoWmExpertBenchmark.timeFactsInsertionAndRulesFiring-jmh-worker-1] ERROR org.drools.compiler.kie.builder.impl.KieProject - Unable to build KieBaseModel:defaultKieBase
16:32:59 Unable to build expression for 'consequence': [Error: unexpected end of statement]
16:32:59 [Near : {... .Transaction.class); ....}]
16:32:59 ^
16:32:59 [Line: 7535, Column: 0] '$trans.accountTo = new Account();
16:32:59 update($trans); // this invalidates previous rule and thus all the LogicalFacts should be retracted
16:32:59 ' : [Rule name='Set receiving account for each Transaction_18']
16:32:59
16:32:59 Unable to build expression for 'consequence': [Error: unexpected end of statement]
@hellowdan
hellowdan / gist:d3d3a6423a5bf8726b15de80e8b7518b
Created March 26, 2020 08:36
Unable to build expression for consequence
Unable to build expression for 'consequence': [Error: unexpected end of statement]
[Near : {... ....}]
^
[Line: 5988, Column: 0] '$trans.accountTo = new Account();
update($trans); // this invalidates previous rule and thus all the LogicalFacts should be retracted
' : [Rule name='Set receiving account for each Transaction_35']
<failure>
10:44:25.367 [org.drools.benchmarks.turtle.runtime.InsertLogicalFactsIntoWmExpertBenchmark.timeFactsInsertionAndRulesFiring-jmh-worker-1] ERROR org.drools.compiler.kie.builder.impl.KieProject - Unable to build KieBaseModel:defaultKieBase
Unable to build expression for 'consequence': [Error: unexpected end of statement]
[Near : {... odel.Address.class); ....}]
^
[Line: 583, Column: 0] '$addr.city = "BrnoCity";
update($addr); // this invalidates previous rule and thus all the LogicalFacts should be retracted
' : [Rule name='Set city for each Address_94']
<failure>
@hellowdan
hellowdan / org.kie.dmn.validation.fails.master.ibm
Created June 16, 2020 12:49
org.kie.dmn.validation fails on master with ibm jdk
This file has been truncated, but you can view the full file.
08:24:47 [INFO] -------------------------------------------------------
08:24:47 [INFO] T E S T S
08:24:47 [INFO] -------------------------------------------------------
08:24:48 [INFO] Running org.drools.dynamic.ClassLoaderTest
08:24:48 [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.116 s - in org.drools.dynamic.ClassLoaderTest
08:24:48 [INFO]
08:24:48 [INFO] Results:
08:24:48 [INFO]
08:24:48 [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
08:24:48 [INFO]