Building OFBiz with Jenkins

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
41 messages Options
123
Reply | Threaded
Open this post in threaded view
|

Building OFBiz with Jenkins

Pierre Smits
Hi all,

I am trying to build OFBiz through Jenkings, but get following message:

Started by user Pierre Smits
<http://sandbox.somonar.prd:8080/jenkins/user/Pierre%20Smits>
Updating http://svn.apache.org/repos/asf/ofbiz/trunk
U         framework/base/src/org/ofbiz/base/util/test/ObjectTypeTests.java
U         framework/base/src/org/ofbiz/base/util/ObjectType.java
At revision 1307764
[trunk] $ ant build
Buildfile: build.xml
BUILD FAILED/var/lib/tomcat6/webapps/jenkins/workspace/OFBIZ-Trunk/trunk/build.xml:25:
The following error occurred while executing this line:
/var/lib/tomcat6/webapps/jenkins/workspace/OFBIZ-Trunk/trunk/macros.xml:26:
No supported regular expression matcher found:
java.lang.ClassNotFoundException:
org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp

Total time: 0 seconds
Build step 'Invoke Ant' marked build as failure

Does the error sound familiar? And how can I resolve this?


Regards,


Pierre
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacques Le Roux
Administrator
Hi Pierre,

I don't think it's related but did you use
# Allows to run from Jenkins. See http://wiki.jenkins-ci.org/display/JENKINS/ProcessTreeKiller. Cons: the calling Jenkins job does
not terminate if the log is not enabled, pros: this allows to monitor the log in Jenkins
#BUILD_ID=dontKillMe
in startofbiz.sh?

Jacques

From: "Pierre Smits" <[hidden email]>

> Hi all,
>
> I am trying to build OFBiz through Jenkings, but get following message:
>
> Started by user Pierre Smits
> <http://sandbox.somonar.prd:8080/jenkins/user/Pierre%20Smits>
> Updating http://svn.apache.org/repos/asf/ofbiz/trunk
> U         framework/base/src/org/ofbiz/base/util/test/ObjectTypeTests.java
> U         framework/base/src/org/ofbiz/base/util/ObjectType.java
> At revision 1307764
> [trunk] $ ant build
> Buildfile: build.xml
> BUILD FAILED/var/lib/tomcat6/webapps/jenkins/workspace/OFBIZ-Trunk/trunk/build.xml:25:
> The following error occurred while executing this line:
> /var/lib/tomcat6/webapps/jenkins/workspace/OFBIZ-Trunk/trunk/macros.xml:26:
> No supported regular expression matcher found:
> java.lang.ClassNotFoundException:
> org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp
>
> Total time: 0 seconds
> Build step 'Invoke Ant' marked build as failure
>
> Does the error sound familiar? And how can I resolve this?
>
>
> Regards,
>
>
> Pierre
>
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Pierre Smits
Hi Jacques,

No, I didn't use that piece of code in the startofbiz.sh.

As you can see from the result I got back in jenkings I directly plulled
from Apache svn and I had my Jenkins job configured to run target 'build'
in the ant settings of the job.

Regards,

Pierre.

Op 1 april 2012 12:02 schreef Jacques Le Roux
<[hidden email]>het volgende:

> Hi Pierre,
>
> I don't think it's related but did you use
> # Allows to run from Jenkins. See http://wiki.jenkins-ci.org/**
> display/JENKINS/**ProcessTreeKiller<http://wiki.jenkins-ci.org/display/JENKINS/ProcessTreeKiller>.
> Cons: the calling Jenkins job does not terminate if the log is not enabled,
> pros: this allows to monitor the log in Jenkins
> #BUILD_ID=dontKillMe
> in startofbiz.sh?
>
> Jacques
>
> From: "Pierre Smits" <[hidden email]>
>
>> Hi all,
>>
>> I am trying to build OFBiz through Jenkings, but get following message:
>>
>> Started by user Pierre Smits
>> <<a href="http://sandbox.somonar.prd:**8080/jenkins/user/Pierre%**20Smits">http://sandbox.somonar.prd:**8080/jenkins/user/Pierre%**20Smits<http://sandbox.somonar.prd:8080/jenkins/user/Pierre%20Smits>
>> >
>>
>> Updating http://svn.apache.org/repos/**asf/ofbiz/trunk<http://svn.apache.org/repos/asf/ofbiz/trunk>
>> U         framework/base/src/org/ofbiz/**base/util/test/**
>> ObjectTypeTests.java
>> U         framework/base/src/org/ofbiz/**base/util/ObjectType.java
>> At revision 1307764
>> [trunk] $ ant build
>> Buildfile: build.xml
>> BUILD FAILED/var/lib/tomcat6/**webapps/jenkins/workspace/**
>> OFBIZ-Trunk/trunk/build.xml:**25:
>>
>> The following error occurred while executing this line:
>> /var/lib/tomcat6/webapps/**jenkins/workspace/OFBIZ-Trunk/**
>> trunk/macros.xml:26:
>> No supported regular expression matcher found:
>> java.lang.**ClassNotFoundException:
>> org.apache.tools.ant.util.**regexp.Jdk14RegexpRegexp
>>
>> Total time: 0 seconds
>> Build step 'Invoke Ant' marked build as failure
>>
>> Does the error sound familiar? And how can I resolve this?
>>
>>
>> Regards,
>>
>>
>> Pierre
>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Anne Jessel
In reply to this post by Pierre Smits
Are you sure Jenkins is running the right ant? That is, the one that comes
with OFBiz, and not one installed separately?

Cheers,
Anne.

On 31 March 2012 22:08, Pierre Smits <[hidden email]> wrote:

> Hi all,
>
> I am trying to build OFBiz through Jenkings, but get following message:
>
> Started by user Pierre Smits
> <http://sandbox.somonar.prd:8080/jenkins/user/Pierre%20Smits>
> Updating http://svn.apache.org/repos/asf/ofbiz/trunk
> U         framework/base/src/org/ofbiz/base/util/test/ObjectTypeTests.java
> U         framework/base/src/org/ofbiz/base/util/ObjectType.java
> At revision 1307764
> [trunk] $ ant build
> Buildfile: build.xml
> BUILD
> FAILED/var/lib/tomcat6/webapps/jenkins/workspace/OFBIZ-Trunk/trunk/build.xml:25:
> The following error occurred while executing this line:
> /var/lib/tomcat6/webapps/jenkins/workspace/OFBIZ-Trunk/trunk/macros.xml:26:
> No supported regular expression matcher found:
> java.lang.ClassNotFoundException:
> org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp
>
> Total time: 0 seconds
> Build step 'Invoke Ant' marked build as failure
>
> Does the error sound familiar? And how can I resolve this?
>
>
> Regards,
>
>
> Pierre
>



--
Coherent Software Australia Pty Ltd
PO Box 2773
Cheltenham Vic 3192
Phone: (03) 9585 6788
Fax: (03) 9585 1086
Web: http://www.cohsoft.com.au/
Email: [hidden email]

Bonsai ERP, the all-inclusive ERP system
http://www.bonsaierp.com.au/
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Pierre Smits
Thanks Anne,

For the heads up. Hadn't realized that the default ant wasn't the good one.
I reconfigured my Jenkins job to point to the ant with OFBiz in the project
directory of the Jenkins workspace, as shown below

var/lib/tomcat6/webapps/jenkins/workspace/OFBIZ-Trunk/trunk/ant
(pointing the ant script in OFBiz)



but when running it after the re-configuration I got the message that the
build file couldn't be found.

Regards,

Pierre

Op 2 april 2012 01:56 schreef Anne <[hidden email]> het volgende:

> Are you sure Jenkins is running the right ant? That is, the one that comes
> with OFBiz, and not one installed separately?
>
> Cheers,
> Anne.
>
> On 31 March 2012 22:08, Pierre Smits <[hidden email]> wrote:
>
> > Hi all,
> >
> > I am trying to build OFBiz through Jenkings, but get following message:
> >
> > Started by user Pierre Smits
> > <http://sandbox.somonar.prd:8080/jenkins/user/Pierre%20Smits>
> > Updating http://svn.apache.org/repos/asf/ofbiz/trunk
> > U
> framework/base/src/org/ofbiz/base/util/test/ObjectTypeTests.java
> > U         framework/base/src/org/ofbiz/base/util/ObjectType.java
> > At revision 1307764
> > [trunk] $ ant build
> > Buildfile: build.xml
> > BUILD
> >
> FAILED/var/lib/tomcat6/webapps/jenkins/workspace/OFBIZ-Trunk/trunk/build.xml:25:
> > The following error occurred while executing this line:
> >
> /var/lib/tomcat6/webapps/jenkins/workspace/OFBIZ-Trunk/trunk/macros.xml:26:
> > No supported regular expression matcher found:
> > java.lang.ClassNotFoundException:
> > org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp
> >
> > Total time: 0 seconds
> > Build step 'Invoke Ant' marked build as failure
> >
> > Does the error sound familiar? And how can I resolve this?
> >
> >
> > Regards,
> >
> >
> > Pierre
> >
>
>
>
> --
> Coherent Software Australia Pty Ltd
> PO Box 2773
> Cheltenham Vic 3192
> Phone: (03) 9585 6788
> Fax: (03) 9585 1086
> Web: http://www.cohsoft.com.au/
> Email: [hidden email]
>
> Bonsai ERP, the all-inclusive ERP system
> http://www.bonsaierp.com.au/
>
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Anne Jessel
Pierre

I think this sort of question should be on the users list, so I'm copying
it there. You might get more suggestions that way.

Maybe you don't have paths set properly somewhere. Perhaps looking at
OFBiz's ant script (ant.bat under windows) will give you some ideas.

As an example, our Jenkins uses "execute shell", with

bash -ex ./ant auto-run-tests

The auto-run-tests target is one I created. It applies our custom patches
and does a few other housekeeping tasks before running the unit tests with
cobertura.

HTH

Cheers,
Anne.

On 2 April 2012 21:42, Pierre Smits <[hidden email]> wrote:

> Thanks Anne,
>
> For the heads up. Hadn't realized that the default ant wasn't the good one.
> I reconfigured my Jenkins job to point to the ant with OFBiz in the project
> directory of the Jenkins workspace, as shown below
>
> var/lib/tomcat6/webapps/jenkins/workspace/OFBIZ-Trunk/trunk/ant
> (pointing the ant script in OFBiz)
>
>
>
> but when running it after the re-configuration I got the message that the
> build file couldn't be found.
>
> Regards,
>
> Pierre
>
> Op 2 april 2012 01:56 schreef Anne <[hidden email]> het volgende:
>
> > Are you sure Jenkins is running the right ant? That is, the one that
> comes
> > with OFBiz, and not one installed separately?
> >
> > Cheers,
> > Anne.
> >
> > On 31 March 2012 22:08, Pierre Smits <[hidden email]> wrote:
> >
> > > Hi all,
> > >
> > > I am trying to build OFBiz through Jenkings, but get following message:
> > >
> > > Started by user Pierre Smits
> > > <http://sandbox.somonar.prd:8080/jenkins/user/Pierre%20Smits>
> > > Updating http://svn.apache.org/repos/asf/ofbiz/trunk
> > > U
> > framework/base/src/org/ofbiz/base/util/test/ObjectTypeTests.java
> > > U         framework/base/src/org/ofbiz/base/util/ObjectType.java
> > > At revision 1307764
> > > [trunk] $ ant build
> > > Buildfile: build.xml
> > > BUILD
> > >
> >
> FAILED/var/lib/tomcat6/webapps/jenkins/workspace/OFBIZ-Trunk/trunk/build.xml:25:
> > > The following error occurred while executing this line:
> > >
> >
> /var/lib/tomcat6/webapps/jenkins/workspace/OFBIZ-Trunk/trunk/macros.xml:26:
> > > No supported regular expression matcher found:
> > > java.lang.ClassNotFoundException:
> > > org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp
> > >
> > > Total time: 0 seconds
> > > Build step 'Invoke Ant' marked build as failure
> > >
> > > Does the error sound familiar? And how can I resolve this?
> > >
> > >
> > > Regards,
> > >
> > >
> > > Pierre
> > >
> >
> >
> >
> > --
> > Coherent Software Australia Pty Ltd
> > PO Box 2773
> > Cheltenham Vic 3192
> > Phone: (03) 9585 6788
> > Fax: (03) 9585 1086
> > Web: http://www.cohsoft.com.au/
> > Email: [hidden email]
> >
> > Bonsai ERP, the all-inclusive ERP system
> > http://www.bonsaierp.com.au/
> >
>



--
Coherent Software Australia Pty Ltd
PO Box 2773
Cheltenham Vic 3192
Phone: (03) 9585 6788
Fax: (03) 9585 1086
Web: http://www.cohsoft.com.au/
Email: [hidden email]

Bonsai ERP, the all-inclusive ERP system
http://www.bonsaierp.com.au/
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Pierre Smits
In reply to this post by Pierre Smits
Hi all,

Thanks to Anne I was able to run the ant targets 'build' and 'load-demo' in
my Jenkins after having pulled directly from svn.

But when I ran ant target 'download-cobertura'  in the Jenkins build
process the build fails with following result:

Started by upstream project "OFBIZ - clean-all build load-demo
<http://sandbox.somonar.prd:8080/jenkins/job/OFBIZ%20-%20clean-all%20build%20load-demo/>"
build number 1 <http://sandbox.somonar.prd:8080/jenkins/job/OFBIZ%20-%20clean-all%20build%20load-demo/1>
[ofbiz] $ /bin/sh -xe /tmp/tomcat6-tmp/hudson5999175306235536466.sh
+ bash -ex ./ant download-cobertura download-sonar-ant-task
+ '[' -f /usr/lib/jvm/jdk6/bin/java ']'
+ JAVA=/usr/lib/jvm/jdk6/bin/java
+++ dirname ./ant
++ cd .
++ echo /ci/ofbiz
+ top=/ci/ofbiz
++ find_jar
++ set -- /ci/ofbiz/framework/base/lib/ant-launcher-1.8.2.jar
++ '[' 1 = 1 ']'
++ '[' -e /ci/ofbiz/framework/base/lib/ant-launcher-1.8.2.jar ']'
++ echo /ci/ofbiz/framework/base/lib/ant-launcher-1.8.2.jar
+ /usr/lib/jvm/jdk6/bin/java -jar
/ci/ofbiz/framework/base/lib/ant-launcher-1.8.2.jar -lib
/ci/ofbiz/framework/base/lib/ant download-cobertura
download-sonar-ant-task
Buildfile: /ci/ofbiz/build.xml

ivy-init:

download-cobertura:
[ivy:retrieve] :: Ivy 2.2.0 - 20100923230623 :: http://ant.apache.org/ivy/ ::
[ivy:retrieve] :: loading settings :: url =
jar:file:/ci/ofbiz/framework/base/lib/ivy-2.2.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: org.apache#ofbiz;working@sandbox
[ivy:retrieve] confs: [cobertura]

BUILD FAILED
/ci/ofbiz/build.xml:1084: impossible to resolve dependencies:
        java.io.FileNotFoundException:
/usr/share/tomcat6/.ivy2/cache/[hidden email]
(No such file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
        at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorUpdater.update(XmlModuleDescriptorUpdater.java:138)
        at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser.toIvyFile(XmlModuleDescriptorParser.java:153)
        at org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor.toIvyFile(DefaultModuleDescriptor.java:547)
        at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:248)
        at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:195)
        at org.apache.ivy.Ivy.resolve(Ivy.java:502)
        at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:244)
        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
        at org.apache.ivy.ant.IvyPostResolveTask.ensureResolved(IvyPostResolveTask.java:217)
        at org.apache.ivy.ant.IvyPostResolveTask.prepareAndCheck(IvyPostResolveTask.java:164)
        at org.apache.ivy.ant.IvyRetrieve.doExecute(IvyRetrieve.java:57)
        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Total time: 2 seconds
Build step 'Execute shell' marked build as failure
Sending e-mails to: [hidden email]
Finished: FAILURE



Does this sound recognizable? Can you help to resolve this?

Regards,

Pierre


Op 31 maart 2012 13:08 schreef Pierre Smits <[hidden email]> het
volgende:

> Hi all,
>
> I am trying to build OFBiz through Jenkings, but get following message:
>
> Started by user Pierre Smits <http://sandbox.somonar.prd:8080/jenkins/user/Pierre%20Smits>
> Updating http://svn.apache.org/repos/asf/ofbiz/trunk
> U         framework/base/src/org/ofbiz/base/util/test/ObjectTypeTests.java
> U         framework/base/src/org/ofbiz/base/util/ObjectType.java
> At revision 1307764
> [trunk] $ ant build
> Buildfile: build.xml
> BUILD FAILED/var/lib/tomcat6/webapps/jenkins/workspace/OFBIZ-Trunk/trunk/build.xml:25: The following error occurred while executing this line:
> /var/lib/tomcat6/webapps/jenkins/workspace/OFBIZ-Trunk/trunk/macros.xml:26: No supported regular expression matcher found: java.lang.ClassNotFoundException: org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp
>
> Total time: 0 seconds
> Build step 'Invoke Ant' marked build as failure
>
> Does the error sound familiar? And how can I resolve this?
>
>
> Regards,
>
>
> Pierre
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Pierre Smits
Hi Erwan, all,

I have currently setup a test environment for continuous integration with
Jenkins wereby I have following build/test setup configured:

   1. pull from svn trunk the latest code (works perfectly - triggers 2)
   2. Do ant targets "clean-all", "build" and "load-demo" (works perfectly
   - triggers 3)
   3. Do ant targets "download-cobertura" and "download-sonar-ant-task"
   (works perfectly - for later cobertura code analysis and reporting to the
   sonar instance - triggers 4)
   4. Do ant target "run-tests" (fails - see below - triggers 5 even when
   fails)
   5. Do ant target "cobertura-report-xml" (works perfectly triggers 6,
   when I have figured out howto)
   6. Do ant target "sonar" (not configured yet)

First of all what do you think of that approach?

Secondly,
Item # 4 fails on:

   1. not having ports for testing set right. See JIRA issue
4794<https://issues.apache.org/jira/browse/OFBIZ-4794>,
   which I have fixed locally
   2. not having a working build setting in framework/base/build.xml. See
   JIRA issue 4757 <https://issues.apache.org/jira/browse/OFBIZ-4757>
   3. on various test as it performs all unit tests available.

The output generated is extensive and overwhelming.

The question here is whether there is a list of all unit tests per
component and/or test suites per component so that I can do a more granular
testing per component and see what specific component test fails and what
goes well.

Regards,

Pierre


Op 6 april 2012 13:31 schreef Pierre Smits <[hidden email]> het
volgende:

> Hi all,
>
> Thanks to Anne I was able to run the ant targets 'build' and 'load-demo'
> in my Jenkins after having pulled directly from svn.
>
> ....
>
> Regards,
>
> Pierre
>
>
> Op 31 maart 2012 13:08 schreef Pierre Smits <[hidden email]> het
> volgende:
>
> Hi all,
>>
>> I am trying to build OFBiz through Jenkings, but get following message:
>>
>> Started by user Pierre Smits <http://sandbox.somonar.prd:8080/jenkins/user/Pierre%20Smits>
>> Updating http://svn.apache.org/repos/asf/ofbiz/trunk
>> U         framework/base/src/org/ofbiz/base/util/test/ObjectTypeTests.java
>> U         framework/base/src/org/ofbiz/base/util/ObjectType.java
>> At revision 1307764
>> [trunk] $ ant build
>> Buildfile: build.xml
>> BUILD FAILED/var/lib/tomcat6/webapps/jenkins/workspace/OFBIZ-Trunk/trunk/build.xml:25: The following error occurred while executing this line:
>> /var/lib/tomcat6/webapps/jenkins/workspace/OFBIZ-Trunk/trunk/macros.xml:26: No supported regular expression matcher found: java.lang.ClassNotFoundException: org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp
>>
>> Total time: 0 seconds
>> Build step 'Invoke Ant' marked build as failure
>>
>> Does the error sound familiar? And how can I resolve this?
>>
>>
>>
>>
>> Regards,
>>
>>
>> Pierre
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacopo Cappellato-4
On Apr 8, 2012, at 4:30 PM, Pierre Smits wrote:

> 4. Do ant target "run-tests" (fails - see below - triggers 5 even when
>   fails)

Pierre, I don't know if it is useful but run-tests completes successfully in my local box.

Jacopo

Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Pierre Smits
But is there a list of all the test-suites and tests per
application/component?

Op 8 april 2012 20:11 schreef Jacopo Cappellato <
[hidden email]> het volgende:

> On Apr 8, 2012, at 4:30 PM, Pierre Smits wrote:
>
> > 4. Do ant target "run-tests" (fails - see below - triggers 5 even when
> >   fails)
>
> Pierre, I don't know if it is useful but run-tests completes successfully
> in my local box.
>
> Jacopo
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacopo Cappellato-4
Look at <component name>/testdef/

Jacopo

On Apr 9, 2012, at 8:26 AM, Pierre Smits wrote:

> But is there a list of all the test-suites and tests per
> application/component?
>
> Op 8 april 2012 20:11 schreef Jacopo Cappellato <
> [hidden email]> het volgende:
>
>> On Apr 8, 2012, at 4:30 PM, Pierre Smits wrote:
>>
>>> 4. Do ant target "run-tests" (fails - see below - triggers 5 even when
>>>  fails)
>>
>> Pierre, I don't know if it is useful but run-tests completes successfully
>> in my local box.
>>
>> Jacopo
>>
>>

Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacopo Cappellato-4
Or search for "test-suite" elements in ofbiz-component.xml files

For example:

<test-suite loader="main" location="testdef/productionruntests.xml"/>

Jacopo

On Apr 9, 2012, at 8:56 AM, Jacopo Cappellato wrote:

> Look at <component name>/testdef/
>
> Jacopo
>
> On Apr 9, 2012, at 8:26 AM, Pierre Smits wrote:
>
>> But is there a list of all the test-suites and tests per
>> application/component?
>>
>> Op 8 april 2012 20:11 schreef Jacopo Cappellato <
>> [hidden email]> het volgende:
>>
>>> On Apr 8, 2012, at 4:30 PM, Pierre Smits wrote:
>>>
>>>> 4. Do ant target "run-tests" (fails - see below - triggers 5 even when
>>>> fails)
>>>
>>> Pierre, I don't know if it is useful but run-tests completes successfully
>>> in my local box.
>>>
>>> Jacopo
>>>
>>>
>

Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Erwan de FERRIERES
In reply to this post by Pierre Smits
Le 08/04/2012 16:30, Pierre Smits a écrit :

> Hi Erwan, all,
>
> I have currently setup a test environment for continuous integration with
> Jenkins wereby I have following build/test setup configured:
>
>     1. pull from svn trunk the latest code (works perfectly - triggers 2)
>     2. Do ant targets "clean-all", "build" and "load-demo" (works perfectly
>     - triggers 3)
>     3. Do ant targets "download-cobertura" and "download-sonar-ant-task"
>     (works perfectly - for later cobertura code analysis and reporting to the
>     sonar instance - triggers 4)
>     4. Do ant target "run-tests" (fails - see below - triggers 5 even when
>     fails)
>     5. Do ant target "cobertura-report-xml" (works perfectly triggers 6,
>     when I have figured out howto)
>     6. Do ant target "sonar" (not configured yet)
>
> First of all what do you think of that approach?

Hi Pierre,

you can reduce a lot the number of steps, and put all of them in only
one task. Is there a reason for having so much jobs ?

1 task: svn up + download-cobertura + download-sonar-ant-tasks + full-sonar

You should install some plugins in Jenkins, like cobertura, junit and
sonar, and configure them.
In runtime/tests, you have the xml result from the junit tests, same for
cobertura. This would display directly historical data.
The sonar plugin (if I remember well) will just put a link to the sonar
project.


>
> Secondly,
> Item # 4 fails on:
>
>     1. not having ports for testing set right. See JIRA issue
> 4794<https://issues.apache.org/jira/browse/OFBIZ-4794>,
>     which I have fixed locally
>     2. not having a working build setting in framework/base/build.xml. See
>     JIRA issue 4757<https://issues.apache.org/jira/browse/OFBIZ-4757>
>     3. on various test as it performs all unit tests available.
>
> The output generated is extensive and overwhelming.
>
> The question here is whether there is a list of all unit tests per
> component and/or test suites per component so that I can do a more granular
> testing per component and see what specific component test fails and what
> goes well.
look at the xml file I spoke about above. There is also an HTML report
generated.

  cheers,

--
Erwan de FERRIERES
www.nereide.biz
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Pierre Smits
HI Erwan,

The reason I have split up the build job into several logical ones is
purely pragmatism...

When I do everything in one job and it fails I need to go through al lot of
pages (I pasted every output per job into a word document and got about
1150 pages of output) to assess where the cause comes from.


 So based on experience I grouped it logically (in my opinion) based on my
expectations of failure:

   1. svn up, which should never fail unless svn cannot be connected. But
   when it fails, I don't need to run build, etc
   2. clean, build and load demo - should never fail, unless something in
   the either my setup of Jenkins is wrong or in OFBiz applications. But when
   it fails, I don't need to run tests...
   3. Run tests  - If test fail then that is ok. I expect tests to go
   wrong. But if the process fails as a result of either Jenkins or OFBiz,
   then I want to know it as well. And it fails now due to misconfiguration of
   OFBiz as well...
   4. Code coverage analysis and reporting - should never fail, unless
   something in the setup of Jenkins is wrong or in OFBiz (as it is now)

I will look into the plugins, thanks.

Regards,

Pierre


Op 9 april 2012 17:32 schreef Erwan de FERRIERES <
[hidden email]> het volgende:

> Le 08/04/2012 16:30, Pierre Smits a écrit :
>
>> Hi Erwan, all,
>>
>> I have currently setup a test environment for continuous integration with
>> Jenkins wereby I have following build/test setup configured:
>>
>>    1. pull from svn trunk the latest code (works perfectly - triggers 2)
>>    2. Do ant targets "clean-all", "build" and "load-demo" (works perfectly
>>    - triggers 3)
>>    3. Do ant targets "download-cobertura" and "download-sonar-ant-task"
>>
>>    (works perfectly - for later cobertura code analysis and reporting to
>> the
>>    sonar instance - triggers 4)
>>    4. Do ant target "run-tests" (fails - see below - triggers 5 even when
>>    fails)
>>    5. Do ant target "cobertura-report-xml" (works perfectly triggers 6,
>>
>>    when I have figured out howto)
>>    6. Do ant target "sonar" (not configured yet)
>>
>>
>> First of all what do you think of that approach?
>>
>
> Hi Pierre,
>
> you can reduce a lot the number of steps, and put all of them in only one
> task. Is there a reason for having so much jobs ?
>
> 1 task: svn up + download-cobertura + download-sonar-ant-tasks + full-sonar
>
> You should install some plugins in Jenkins, like cobertura, junit and
> sonar, and configure them.
> In runtime/tests, you have the xml result from the junit tests, same for
> cobertura. This would display directly historical data.
> The sonar plugin (if I remember well) will just put a link to the sonar
> project.
>
>
>
>> Secondly,
>> Item # 4 fails on:
>>
>>    1. not having ports for testing set right. See JIRA issue
>> 4794<https://issues.apache.**org/jira/browse/OFBIZ-4794<https://issues.apache.org/jira/browse/OFBIZ-4794>
>> >,
>>
>>    which I have fixed locally
>>    2. not having a working build setting in framework/base/build.xml. See
>>    JIRA issue 4757<https://issues.apache.**org/jira/browse/OFBIZ-4757<https://issues.apache.org/jira/browse/OFBIZ-4757>
>> >
>>    3. on various test as it performs all unit tests available.
>>
>>
>> The output generated is extensive and overwhelming.
>>
>> The question here is whether there is a list of all unit tests per
>> component and/or test suites per component so that I can do a more
>> granular
>> testing per component and see what specific component test fails and what
>> goes well.
>>
> look at the xml file I spoke about above. There is also an HTML report
> generated.
>
>  cheers,
>
> --
> Erwan de FERRIERES
> www.nereide.biz
>
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Erwan de FERRIERES
Le 09/04/2012 20:22, Pierre Smits a écrit :
> HI Erwan,
>
../..

>             1. pull from svn trunk the latest code (works perfectly -
>         triggers 2)
>             2. Do ant targets "clean-all", "build" and "load-demo"
>         (works perfectly
No need to call build as load-demo is calling it already.

--
Erwan de FERRIERES
www.nereide.biz
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Pierre Smits
Thanks Erwan,

I fixed it in my CI environment.

Regards,

Pierre

Op 9 april 2012 20:50 schreef Erwan de FERRIERES <
[hidden email]> het volgende:

> Le 09/04/2012 20:22, Pierre Smits a écrit :
>
>> HI Erwan,
>>
>>  ../..
>
>
>             1. pull from svn trunk the latest code (works perfectly -
>>        triggers 2)
>>            2. Do ant targets "clean-all", "build" and "load-demo"
>>        (works perfectly
>>
> No need to call build as load-demo is calling it already.
>
>
> --
> Erwan de FERRIERES
> www.nereide.biz
>
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Pierre Smits
In reply to this post by Jacopo Cappellato-4
Hi Jacopo,

Currently in my Jenkins environment following testsuites are failing:

   1. bash -ex ./ant run-test-suite -Dtest.component=service
   -Dtest.suiteName=servicetests - which seem to have to do with a port
   already in use due to code:  public static final String url = "
   http://localhost:8080/webtools/control/xmlrpc in
   framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
   2. bash -ex ./ant run-test-suite -Dtest.component=webapp
   -Dtest.suiteName=webapptests - I haven't looked into this one yet.


Regards,

Pierre





Op 8 april 2012 20:11 schreef Jacopo Cappellato <
[hidden email]> het volgende:

> On Apr 8, 2012, at 4:30 PM, Pierre Smits wrote:
>
> > 4. Do ant target "run-tests" (fails - see below - triggers 5 even when
> >   fails)
>
> Pierre, I don't know if it is useful but run-tests completes successfully
> in my local box.
>
> Jacopo
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacopo Cappellato-4
Pierre,

you are right: I have two tests failing too.
May it be related to the changes to ports recently committed... I didn't have time to investigate.

Jacopo


On Apr 10, 2012, at 12:22 PM, Pierre Smits wrote:

> Hi Jacopo,
>
> Currently in my Jenkins environment following testsuites are failing:
>
>   1. bash -ex ./ant run-test-suite -Dtest.component=service
>   -Dtest.suiteName=servicetests - which seem to have to do with a port
>   already in use due to code:  public static final String url = "
>   http://localhost:8080/webtools/control/xmlrpc in
>   framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
>   2. bash -ex ./ant run-test-suite -Dtest.component=webapp
>   -Dtest.suiteName=webapptests - I haven't looked into this one yet.
>
>
> Regards,
>
> Pierre
>
>
>
>
>
> Op 8 april 2012 20:11 schreef Jacopo Cappellato <
> [hidden email]> het volgende:
>
>> On Apr 8, 2012, at 4:30 PM, Pierre Smits wrote:
>>
>>> 4. Do ant target "run-tests" (fails - see below - triggers 5 even when
>>>  fails)
>>
>> Pierre, I don't know if it is useful but run-tests completes successfully
>> in my local box.
>>
>> Jacopo
>>
>>

Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Pierre Smits
Hi Jacopo,

When doing som indept analysis on the output of the target:
sudo ./ant run-test-suite -Dtest.component=service
-Dtest.suiteName=servicetests

I found that ports are set in accordance of latest
framework/base/config/test-containers.xml
RMI port = 1100, host is 127.0.0.1
AJP port = 8010
HTTP port = 8081
HTTPS port = 8444

but that the RMI service is pointing to the production ports:

AbstractEngine.java:73 :INFO ] Loaded Service Locations :
{main-rmi=rmi://localhost:1099/RMIDispatcher, main-http=
http://localhost:8080/webtools/control/httpService,
entity-sync-rmi=rmi://localhost:1099/RMIDispatcher, entity-sync-http=
http://localhost:8080/webtools/control/httpService,
rita-rmi=rmi://localhost:1099/RMIDispatcher, eedcc-test=
http://localhost:8080/webtools/control/httpService}

Can this be the underlying issue?

See exerpt of my log below.

Regards,

Pierre

[java] 2012-04-10 16:07:20,329 (catalina-startup-0) [
 ConfigXMLReader.java:120:INFO ] controller loaded: 0.0010s, 9 requests, 1
views in
file:/Users/s0001/Documents/workspace/ofbiz-trunk/framework/testtools/webapp/testtools/WEB-INF/controller.xml
     [java] 2012-04-10 16:07:20,342 (main) [
 CatalinaContainer.java:251:INFO ] Connector AJP/1.3 @ 8010 - not-secure
[org.apache.coyote.ajp.AjpProtocol] started.
     [java] 2012-04-10 16:07:20,342 (main) [
 CatalinaContainer.java:248:INFO ] Connector "http-bio-0.0.0.0-8081" @ 8081
- not-secure [org.apache.coyote.http11.Http11Protocol] started.
     [java] 2012-04-10 16:07:20,342 (main) [
 CatalinaContainer.java:248:INFO ] Connector "http-bio-0.0.0.0-8444" @ 8444
- secure [org.apache.coyote.http11.Http11Protocol] started.
     [java] 2012-04-10 16:07:20,342 (main) [
 CatalinaContainer.java:255:INFO ] Started Apache Tomcat/7.0.26
     [java] 2012-04-10 16:07:20,358 (main) [  GenericDispatcher.java:69
:INFO ] Creating new dispatcher [entity-test-NhODrXc3Iv] (main)
     [java] 2012-04-10 16:07:20,358 (main) [  ServiceDispatcher.java:88
:INFO ] [ServiceDispatcher] : Creating new instance.
     [java] 2012-04-10 16:07:20,362 (main) [ ServiceGroupReader.java:88
:INFO ] Loaded [1] Group definitions from
file:/Users/s0001/Documents/workspace/ofbiz-trunk/framework/common/servicedef/groups_test.xml
     [java] 2012-04-10 16:07:20,364 (main) [ ServiceGroupReader.java:88
:INFO ] Loaded [4] Group definitions from
file:/Users/s0001/Documents/workspace/ofbiz-trunk/framework/entityext/servicedef/groups.xml
     [java] 2012-04-10 16:07:20,367 (main) [ ServiceGroupReader.java:88
:INFO ] Loaded [2] Group definitions from
file:/Users/s0001/Documents/workspace/ofbiz-trunk/applications/workeffort/servicedef/service_groups.xml
     [java] 2012-04-10 16:07:20,370 (main) [ ServiceGroupReader.java:88
:INFO ] Loaded [4] Group definitions from
file:/Users/s0001/Documents/workspace/ofbiz-trunk/applications/accounting/servicedef/groups.xml
     [java] 2012-04-10 16:07:20,371 (main) [  GenericDispatcher.java:69
:INFO ] Creating new dispatcher [test-dispatcher-NhODrXc3Iv] (main)
     [java] 2012-04-10 16:07:20,382 (main) [
ModelTestSuite.java:112:INFO ] Added 1 tests [1 cases] from the class:
org.ofbiz.service.test.ServiceEngineTests
     [java] 2012-04-10 16:07:20,384 (main) [
ModelTestSuite.java:112:INFO ] Added 1 tests [2 cases] from the class:
org.ofbiz.service.test.ServiceSOAPTests
     [java] 2012-04-10 16:07:20,393 (main) [
ModelTestSuite.java:112:INFO ] Added 1 tests [1 cases] from the class:
org.ofbiz.service.test.XmlRpcTests
     [java] 2012-04-10 16:07:20,405 (main) [
TestRunContainer.java:238:INFO ] [JUNIT] : testBasicJavaInvocation
starting...
     [java] 2012-04-10 16:07:20,415 (main) [     AbstractEngine.java:73
:INFO ] Loaded Service Locations :
{main-rmi=rmi://localhost:1099/RMIDispatcher, main-http=
http://localhost:8080/webtools/control/httpService,
entity-sync-rmi=rmi://localhost:1099/RMIDispatcher, entity-sync-http=
http://localhost:8080/webtools/control/httpService,
rita-rmi=rmi://localhost:1099/RMIDispatcher, eedcc-test=
http://localhost:8080/webtools/control/httpService}
     [java] 2012-04-10 16:07:20,539 (main) [
ModelService.java:464:INFO ] Set default value [999.9999] for parameter
[defaultValue]
     [java] 2012-04-10 16:07:20,545 (main) [
ServiceEcaRule.java:137:INFO ] For Service ECA [testScv] on [invoke] got
false for condition: [message][equals][auto][true][String]
     [java] ---- SVC-CONTEXT: message => Unit Test
     [java] ---- SVC-CONTEXT: locale => en
     [java] ---- SVC-CONTEXT: defaultValue => 999.9999
     [java] -----SERVICE TEST----- : Unit Test
     [java] ----- SVC: test-dispatcher-NhODrXc3Iv -----
     [java] 2012-04-10 16:07:20,552 (main) [
ServiceEcaRule.java:137:INFO ] For Service ECA [testScv] on [commit] got
false for condition: [message][equals][12345][true][String]
     [java] 2012-04-10 16:07:20,553 (main) [
 ServiceDispatcher.java:593:INFO ] Sync service
[test-dispatcher-NhODrXc3Iv/testScv] finished in [147] milliseconds with
response [{responseMessage=success, resp=service done}]
     [java] 2012-04-10 16:07:20,553 (main) [
TestRunContainer.java:234:INFO ] [JUNIT] : testBasicJavaInvocation finished.
     [java] 2012-04-10 16:07:20,555 (main) [
TestRunContainer.java:238:INFO ] [JUNIT] : testSOAPSimpleService starting...
     [java] 2012-04-10 16:07:21,054 (main) [
SOAPClientEngine.java:100:INFO ] [SOAPClientEngine.invoke] : Parameter
length - 7
     [java] 2012-04-10 16:07:21,055 (main) [
SOAPClientEngine.java:112:INFO ] [SOAPClientEngine.invoke} : Parameter:
userLogin (INOUT) - 0
     [java] 2012-04-10 16:07:21,055 (main) [
SOAPClientEngine.java:112:INFO ] [SOAPClientEngine.invoke} : Parameter:
login.username (IN) - 1
     [java] 2012-04-10 16:07:21,055 (main) [
SOAPClientEngine.java:112:INFO ] [SOAPClientEngine.invoke} : Parameter:
login.password (IN) - 2
     [java] 2012-04-10 16:07:21,055 (main) [
SOAPClientEngine.java:112:INFO ] [SOAPClientEngine.invoke} : Parameter:
locale (INOUT) - 3
     [java] 2012-04-10 16:07:21,055 (main) [
SOAPClientEngine.java:112:INFO ] [SOAPClientEngine.invoke} : Parameter:
timeZone (INOUT) - 4
     [java] 2012-04-10 16:07:21,055 (main) [
SOAPClientEngine.java:112:INFO ] [SOAPClientEngine.invoke} : Parameter:
defaultValue (IN) - 5
     [java] 2012-04-10 16:07:21,055 (main) [
SOAPClientEngine.java:112:INFO ] [SOAPClientEngine.invoke} : Parameter:
message (IN) - 6
     [java] 37224 [main] INFO
org.apache.commons.httpclient.HttpMethodDirector - I/O exception
(java.net.ConnectException) caught when processing request: Connection
refused
     [java] 37224 [main] INFO
org.apache.commons.httpclient.HttpMethodDirector - Retrying request
     [java] 37224 [main] INFO
org.apache.commons.httpclient.HttpMethodDirector - I/O exception
(java.net.ConnectException) caught when processing request: Connection
refused
     [java] 37224 [main] INFO
org.apache.commons.httpclient.HttpMethodDirector - Retrying request
     [java] 37224 [main] INFO
org.apache.commons.httpclient.HttpMethodDirector - I/O exception
(java.net.ConnectException) caught when processing request: Connection
refused
     [java] 37224 [main] INFO
org.apache.commons.httpclient.HttpMethodDirector - Retrying request
     [java] 37225 [main] INFO org.apache.axis2.transport.http.HTTPSender -
Unable to sendViaPost to url[
http://localhost:8080/webtools/control/SOAPService]


Op 10 april 2012 14:36 schreef Jacopo Cappellato <
[hidden email]> het volgende:

> Pierre,
>
> you are right: I have two tests failing too.
> May it be related to the changes to ports recently committed... I didn't
> have time to investigate.
>
> Jacopo
>
>
> On Apr 10, 2012, at 12:22 PM, Pierre Smits wrote:
>
> > Hi Jacopo,
> >
> > Currently in my Jenkins environment following testsuites are failing:
> >
> >   1. bash -ex ./ant run-test-suite -Dtest.component=service
> >   -Dtest.suiteName=servicetests - which seem to have to do with a port
> >   already in use due to code:  public static final String url = "
> >   http://localhost:8080/webtools/control/xmlrpc in
> >   framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
> >   2. bash -ex ./ant run-test-suite -Dtest.component=webapp
> >   -Dtest.suiteName=webapptests - I haven't looked into this one yet.
> >
> >
> > Regards,
> >
> > Pierre
> >
> >
> >
> >
> >
> > Op 8 april 2012 20:11 schreef Jacopo Cappellato <
> > [hidden email]> het volgende:
> >
> >> On Apr 8, 2012, at 4:30 PM, Pierre Smits wrote:
> >>
> >>> 4. Do ant target "run-tests" (fails - see below - triggers 5 even when
> >>>  fails)
> >>
> >> Pierre, I don't know if it is useful but run-tests completes
> successfully
> >> in my local box.
> >>
> >> Jacopo
> >>
> >>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacques Le Roux
Administrator
In reply to this post by Jacopo Cappellato-4
I'm looking at it. It could be that port numbers are harcoded in tests code and would be issues there
...
OK, in the meantime ran the tests, I got a lot of error here (locally on WinXP)

example-testsuserLoginEntityXmlAssertFailureField [UserLogin.currentPassword] did not match; file value
[{SHA}47ca69ebb4bdc9ae0adec130880165d2cc05db1a], db value [{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a] pk
[[GenericEntity:UserLogin][userLoginId,admin(java.lang.String)]]

junit.framework.AssertionFailedError: Field [UserLogin.currentPassword] did not match; file value
[{SHA}47ca69ebb4bdc9ae0adec130880165d2cc05db1a], db value [{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a] pk
[[GenericEntity:UserLogin][userLoginId,admin(java.lang.String)]]
at org.ofbiz.testtools.EntityXmlAssertTest.run(EntityXmlAssertTest.java:89)
at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
at org.ofbiz.base.start.Start.start(Start.java:289)
at org.ofbiz.base.start.Start.main(Start.java:119)
0.016 facilitytestsinventory-tests.testGetInventoryAvailableByFacilityFailureAssertion failed: [quantityOnHandTotal=507] equals 509
as BigDecimal

junit.framework.AssertionFailedError: Assertion failed: [quantityOnHandTotal=507] equals 509 as BigDecimal
at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
at org.ofbiz.base.start.Start.start(Start.java:289)
at org.ofbiz.base.start.Start.main(Start.java:119)
Assertion failed: [availableToPromiseTotal=507] equals 509 as BigDecimal

junit.framework.AssertionFailedError: Assertion failed: [availableToPromiseTotal=507] equals 509 as BigDecimal
at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
at org.ofbiz.base.start.Start.start(Start.java:289)
at org.ofbiz.base.start.Start.main(Start.java:119)
0.078 luceneteststestCreateIndexFailureexpected:<7> but was:<31>

junit.framework.AssertionFailedError: expected:<7> but was:<31>
at org.ofbiz.content.test.LuceneTests.testCreateIndex(LuceneTests.java:69)
at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
at org.ofbiz.base.start.Start.start(Start.java:289)
at org.ofbiz.base.start.Start.main(Start.java:119)
39.469 scrumtestsproductBacklog-tests.testUpdateProductBacklogByAdminFailureCan only update customer request, when status is
in-process...is now: CRQ_CANCELLED

junit.framework.AssertionFailedError: Can only update customer request, when status is in-process...is now: CRQ_CANCELLED
at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
at org.ofbiz.base.start.Start.start(Start.java:289)
at org.ofbiz.base.start.Start.main(Start.java:119)
0.000 scrumtestsproductBacklog-tests.testUpdateProductBacklogByProductOwnerFailureCan only update customer request, when status is
in-process...is now: CRQ_CANCELLED

junit.framework.AssertionFailedError: Can only update customer request, when status is in-process...is now: CRQ_CANCELLED
at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
at org.ofbiz.base.start.Start.start(Start.java:289)
at org.ofbiz.base.start.Start.main(Start.java:119)
0.000 scrumtestsscrumProject-tests.testCreateScrumProjectByProductOwnerFailureERROR: Could not complete the Create Work Effort
[file:/D:/workspace/ofbizClean/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml#createWorkEffort]
process [problem creating the newEntity value: Error while inserting:
[GenericEntity:WorkEffort][createdByUserLogin,system(java.lang.String)][createdDate,2012-04-10
16:09:35.421(java.sql.Timestamp)][createdStamp,2012-04-10 16:09:35.421(java.sql.Timestamp)][createdTxStamp,2012-04-10
16:09:35.421(java.sql.Timestamp)][currentStatusId,SPJ_ACTIVE(java.lang.String)][lastModifiedByUserLogin,system(java.lang.String)][lastModifiedDate,2012-04-10
16:09:35.421(java.sql.Timestamp)][lastStatusUpdate,2012-04-10 16:09:35.421(java.sql.Timestamp)][lastUpdatedStamp,2012-04-10
16:09:35.421(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-10
16:09:35.421(java.sql.Timestamp)][revisionNumber,1(java.lang.Long)][workEffortId,TEST_WE_006(java.lang.String)][workEffortName,TEST_WEN06(java.lang.String)][workEffortTypeId,SCRUM_PROJECT(java.lang.String)]
(SQL Exception while executing the following:INSERT INTO OFBIZ.WORK_EFFORT (WORK_EFFORT_ID, WORK_EFFORT_TYPE_ID, CURRENT_STATUS_ID,
LAST_STATUS_UPDATE, WORK_EFFORT_PURPOSE_TYPE_ID, WORK_EFFORT_PARENT_ID, SCOPE_ENUM_ID, PRIORITY, PERCENT_COMPLETE, WORK_EFFORT_NAME,
SHOW_AS_ENUM_ID, SEND_NOTIFICATION_EMAIL, DESCRIPTION, LOCATION_DESC, ESTIMATED_START_DATE, ESTIMATED_COMPLETION_DATE,
ACTUAL_START_DATE, ACTUAL_COMPLETION_DATE, ESTIMATED_MILLI_SECONDS, ESTIMATED_SETUP_MILLIS, ESTIMATE_CALC_METHOD,
ACTUAL_MILLI_SECONDS, ACTUAL_SETUP_MILLIS, TOTAL_MILLI_SECONDS_ALLOWED, TOTAL_MONEY_ALLOWED, MONEY_UOM_ID, SPECIAL_TERMS,
TIME_TRANSPARENCY, UNIVERSAL_ID, SOURCE_REFERENCE_ID, FIXED_ASSET_ID, FACILITY_ID, INFO_URL, RECURRENCE_INFO_ID, TEMP_EXPR_ID,
RUNTIME_DATA_ID, NOTE_ID, SERVICE_LOADER_NAME, QUANTITY_TO_PRODUCE, QUANTITY_PRODUCED, QUANTITY_REJECTED, RESERV_PERSONS,
RESERV2ND_P_P_PERC, RESERV_NTH_P_P_PERC, ACCOMMODATION_MAP_ID, ACCOMMODATION_SPOT_ID, REVISION_NUMBER, CREATED_DATE,
CREATED_BY_USER_LOGIN, LAST_MODIFIED_DATE, LAST_MODIFIED_BY_USER_LOGIN, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP,
CREATED_TX_STAMP, SEQUENCE_NUM) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (The statement was aborted because it would have caused a
duplicate key value in a unique or primary key constraint or unique index identified by 'SQL120304122912870' defined on
'WORK_EFFORT'.))]

junit.framework.AssertionFailedError: ERROR: Could not complete the Create Work Effort
[file:/D:/workspace/ofbizClean/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml#createWorkEffort]
process [problem creating the newEntity value: Error while inserting:
[GenericEntity:WorkEffort][createdByUserLogin,system(java.lang.String)][createdDate,2012-04-10
16:09:35.421(java.sql.Timestamp)][createdStamp,2012-04-10 16:09:35.421(java.sql.Timestamp)][createdTxStamp,2012-04-10
16:09:35.421(java.sql.Timestamp)][currentStatusId,SPJ_ACTIVE(java.lang.String)][lastModifiedByUserLogin,system(java.lang.String)][lastModifiedDate,2012-04-10
16:09:35.421(java.sql.Timestamp)][lastStatusUpdate,2012-04-10 16:09:35.421(java.sql.Timestamp)][lastUpdatedStamp,2012-04-10
16:09:35.421(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-10
16:09:35.421(java.sql.Timestamp)][revisionNumber,1(java.lang.Long)][workEffortId,TEST_WE_006(java.lang.String)][workEffortName,TEST_WEN06(java.lang.String)][workEffortTypeId,SCRUM_PROJECT(java.lang.String)]
(SQL Exception while executing the following:INSERT INTO OFBIZ.WORK_EFFORT (WORK_EFFORT_ID, WORK_EFFORT_TYPE_ID, CURRENT_STATUS_ID,
LAST_STATUS_UPDATE, WORK_EFFORT_PURPOSE_TYPE_ID, WORK_EFFORT_PARENT_ID, SCOPE_ENUM_ID, PRIORITY, PERCENT_COMPLETE, WORK_EFFORT_NAME,
SHOW_AS_ENUM_ID, SEND_NOTIFICATION_EMAIL, DESCRIPTION, LOCATION_DESC, ESTIMATED_START_DATE, ESTIMATED_COMPLETION_DATE,
ACTUAL_START_DATE, ACTUAL_COMPLETION_DATE, ESTIMATED_MILLI_SECONDS, ESTIMATED_SETUP_MILLIS, ESTIMATE_CALC_METHOD,
ACTUAL_MILLI_SECONDS, ACTUAL_SETUP_MILLIS, TOTAL_MILLI_SECONDS_ALLOWED, TOTAL_MONEY_ALLOWED, MONEY_UOM_ID, SPECIAL_TERMS,
TIME_TRANSPARENCY, UNIVERSAL_ID, SOURCE_REFERENCE_ID, FIXED_ASSET_ID, FACILITY_ID, INFO_URL, RECURRENCE_INFO_ID, TEMP_EXPR_ID,
RUNTIME_DATA_ID, NOTE_ID, SERVICE_LOADER_NAME, QUANTITY_TO_PRODUCE, QUANTITY_PRODUCED, QUANTITY_REJECTED, RESERV_PERSONS,
RESERV2ND_P_P_PERC, RESERV_NTH_P_P_PERC, ACCOMMODATION_MAP_ID, ACCOMMODATION_SPOT_ID, REVISION_NUMBER, CREATED_DATE,
CREATED_BY_USER_LOGIN, LAST_MODIFIED_DATE, LAST_MODIFIED_BY_USER_LOGIN, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP,
CREATED_TX_STAMP, SEQUENCE_NUM) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (The statement was aborted because it would have caused a
duplicate key value in a unique or primary key constraint or unique index identified by 'SQL120304122912870' defined on
'WORK_EFFORT'.))]
at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
at org.ofbiz.base.start.Start.start(Start.java:289)
at org.ofbiz.base.start.Start.main(Start.java:119)
0.562 scrumtestssprint-tests.testUpdateSprintByAdminFailureERROR: Could not complete the Create Sprint Backlog
[file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=10209,
userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:30:53.734(java.sql.Timestamp)][createdTxStamp,2012-03-04
12:30:53.734(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,2012-04-02
19:10:56.359(java.sql.Timestamp)][enabled,Y(java.lang.String)][externalAuthId,null()][hasLoggedOut,N(java.lang.String)][isSystem,null()][lastCurrencyUom,null()][lastLocale,en(java.lang.String)][lastTimeZone,null()][lastUpdatedStamp,2012-04-07
12:58:31.734(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-07
12:58:31.718(java.sql.Timestamp)][partyId,admin(java.lang.String)][passwordHint,Auto-Generated
Password(java.lang.String)][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,0(java.lang.Long)][userLdapDn,null()][userLoginId,admin(java.lang.String)],
locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]

junit.framework.AssertionFailedError: ERROR: Could not complete the Create Sprint Backlog
[file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=10209,
userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:30:53.734(java.sql.Timestamp)][createdTxStamp,2012-03-04
12:30:53.734(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,2012-04-02
19:10:56.359(java.sql.Timestamp)][enabled,Y(java.lang.String)][externalAuthId,null()][hasLoggedOut,N(java.lang.String)][isSystem,null()][lastCurrencyUom,null()][lastLocale,en(java.lang.String)][lastTimeZone,null()][lastUpdatedStamp,2012-04-07
12:58:31.734(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-07
12:58:31.718(java.sql.Timestamp)][partyId,admin(java.lang.String)][passwordHint,Auto-Generated
Password(java.lang.String)][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,0(java.lang.Long)][userLdapDn,null()][userLoginId,admin(java.lang.String)],
locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]
at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:93)
at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
at org.ofbiz.base.start.Start.start(Start.java:289)
at org.ofbiz.base.start.Start.main(Start.java:119)
2.250 scrumtestssprintBacklog-tests.testcreateSprintBacklogByAdminFailureERROR: Could not complete the Create Sprint Backlog
[file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=DEMO-SPRINT-1,
userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:30:53.734(java.sql.Timestamp)][createdTxStamp,2012-03-04
12:30:53.734(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,2012-04-02
19:10:56.359(java.sql.Timestamp)][enabled,Y(java.lang.String)][externalAuthId,null()][hasLoggedOut,N(java.lang.String)][isSystem,null()][lastCurrencyUom,null()][lastLocale,en(java.lang.String)][lastTimeZone,null()][lastUpdatedStamp,2012-04-07
12:58:31.734(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-07
12:58:31.718(java.sql.Timestamp)][partyId,admin(java.lang.String)][passwordHint,Auto-Generated
Password(java.lang.String)][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,0(java.lang.Long)][userLdapDn,null()][userLoginId,admin(java.lang.String)],
locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]

junit.framework.AssertionFailedError: ERROR: Could not complete the Create Sprint Backlog
[file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=DEMO-SPRINT-1,
userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:30:53.734(java.sql.Timestamp)][createdTxStamp,2012-03-04
12:30:53.734(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,2012-04-02
19:10:56.359(java.sql.Timestamp)][enabled,Y(java.lang.String)][externalAuthId,null()][hasLoggedOut,N(java.lang.String)][isSystem,null()][lastCurrencyUom,null()][lastLocale,en(java.lang.String)][lastTimeZone,null()][lastUpdatedStamp,2012-04-07
12:58:31.734(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-07
12:58:31.718(java.sql.Timestamp)][partyId,admin(java.lang.String)][passwordHint,Auto-Generated
Password(java.lang.String)][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,0(java.lang.Long)][userLdapDn,null()][userLoginId,admin(java.lang.String)],
locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]
at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:93)
at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
at org.ofbiz.base.start.Start.start(Start.java:289)
at org.ofbiz.base.start.Start.main(Start.java:119)
0.063 scrumtestssprintBacklog-tests.testcreateSprintBacklogByScrummasterFailureERROR: Could not complete the Create Sprint Backlog
[file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=DEMO-SPRINT-1,
userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:31:46.71(java.sql.Timestamp)][createdTxStamp,2012-03-04
12:31:46.515(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,null()][enabled,null()][externalAuthId,null()][hasLoggedOut,null()][isSystem,null()][lastCurrencyUom,null()][lastLocale,null()][lastTimeZone,null()][lastUpdatedStamp,2012-03-04
12:31:46.71(java.sql.Timestamp)][lastUpdatedTxStamp,2012-03-04
12:31:46.515(java.sql.Timestamp)][partyId,SCRUMASTER(java.lang.String)][passwordHint,null()][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,null()][userLdapDn,null()][userLoginId,scrummaster(java.lang.String)],
locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]

junit.framework.AssertionFailedError: ERROR: Could not complete the Create Sprint Backlog
[file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=DEMO-SPRINT-1,
userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:31:46.71(java.sql.Timestamp)][createdTxStamp,2012-03-04
12:31:46.515(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,null()][enabled,null()][externalAuthId,null()][hasLoggedOut,null()][isSystem,null()][lastCurrencyUom,null()][lastLocale,null()][lastTimeZone,null()][lastUpdatedStamp,2012-03-04
12:31:46.71(java.sql.Timestamp)][lastUpdatedTxStamp,2012-03-04
12:31:46.515(java.sql.Timestamp)][partyId,SCRUMASTER(java.lang.String)][passwordHint,null()][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,null()][userLdapDn,null()][userLoginId,scrummaster(java.lang.String)],
locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]
at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:93)
at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
at org.ofbiz.base.start.Start.start(Start.java:289)
at org.ofbiz.base.start.Start.main(Start.java:119)
0.000 servicetestsservice-xml-rpc-local-engineFailureFailed to read server's response: Connection refused: connect

junit.framework.AssertionFailedError: Failed to read server's response: Connection refused: connect
at org.ofbiz.testtools.ServiceTest.run(ServiceTest.java:67)
at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
at org.ofbiz.base.start.Start.start(Start.java:289)
at org.ofbiz.base.start.Start.main(Start.java:119)

Can't say more at the moment....

Jacques

From: "Jacopo Cappellato" <[hidden email]>

> Pierre,
>
> you are right: I have two tests failing too.
> May it be related to the changes to ports recently committed... I didn't have time to investigate.
>
> Jacopo
>
>
> On Apr 10, 2012, at 12:22 PM, Pierre Smits wrote:
>
>> Hi Jacopo,
>>
>> Currently in my Jenkins environment following testsuites are failing:
>>
>>   1. bash -ex ./ant run-test-suite -Dtest.component=service
>>   -Dtest.suiteName=servicetests - which seem to have to do with a port
>>   already in use due to code:  public static final String url = "
>>   http://localhost:8080/webtools/control/xmlrpc in
>>   framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
>>   2. bash -ex ./ant run-test-suite -Dtest.component=webapp
>>   -Dtest.suiteName=webapptests - I haven't looked into this one yet.
>>
>>
>> Regards,
>>
>> Pierre
>>
>>
>>
>>
>>
>> Op 8 april 2012 20:11 schreef Jacopo Cappellato <
>> [hidden email]> het volgende:
>>
>>> On Apr 8, 2012, at 4:30 PM, Pierre Smits wrote:
>>>
>>>> 4. Do ant target "run-tests" (fails - see below - triggers 5 even when
>>>>  fails)
>>>
>>> Pierre, I don't know if it is useful but run-tests completes successfully
>>> in my local box.
>>>
>>> Jacopo
>>>
>>>
>
>
123