You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by Richard Eckart de Castilho <re...@apache.org> on 2017/01/07 22:11:39 UTC

Jenkins build job for UIMACPP

Thanks for the tips.

We now have a Jenkins job for the C++ SDK.

https://builds.apache.org/view/S-Z/view/UIMA/job/UIMA-CPP-SDK/8/console

Unfortunately, it doesn't pass the unit tests.

The script that I created is a bit... well... it downloads ICU, APR,
and XERCES-C from their respective sources and builds them as part of the
UIMACPP build because we cannot expect the libraries to be present on
the build nodes. It would be good idea to validate the MD5 sums of
the sources before building them, but that is not done yet. Also,
the build currently does not include Active-MQ support.

Is it a known problem that the tests fail?

-- Richard

> On 06.01.2017, at 16:29, Roberto Carlos Toledano Gómez <rc...@gmail.com> wrote:
> 
> Well, this culd be some steps:
> 
> 1- Create multi-cinfiguration job, for build with combinations of
> SO/compiler, for meet requirements like Ubuntu Linux Xenial 64 bits, GCC
> 4.8, Clang, etc. For this you need aggregate some slave jenkins nodes with
> the requirements you need.
> 
> 2- After preliminary setup like git repository or suvbersion, for download
> the code, in Build step select bash script and write the instructions for
> build, for example:
> 
>> ./configure --enable-static=yes --enable-shared=yes --prefix=/usr
> --with-activemq=/usr/ --with-icu=/usr --with-apr=/usr
> --with-jdk=/usr/lib/jvm/java-8-openjdk-amd64/include/
> 
>> make
> 
>> make test
> 
> For build in Windows we create another job , that would be a freestyle job
> and in the Build step, we select a bat script. But we are exploring MSYS
> for use the same multi-configuration job with new Windown slave node.
> 
> 2017-01-05 16:44 GMT-05:00 Richard Eckart de Castilho <re...@apache.org>:
> 
>> On 05.01.2017, at 16:04, Roberto Carlos Toledano Gómez <rc...@gmail.com>
>> wrote:
>>> 
>>> Yes, I have some experience in jenkins jobs with c++ projects. I use bash
>>> scripts for that.How can I help you/us.
>> 
>> How would you set up a Jenkins job to build the UIMA-C project?
>> 
>> I suppose one would start from a freestyle job? But even there, choosing a
>> JDK seems mandatory...
>> 
>> -- Richard


Re: Jenkins build job for UIMACPP

Posted by Marshall Schor <ms...@schor.com>.
I asked (on the build mailing list, cc to this one) about how to build c++
things on jenkins with respect to building standard dependencies.

-Marshall

On 1/17/2017 11:31 AM, Roberto Carlos Toledano G�mez wrote:
> Where i could find apache jenkins guideline, for learn first i try help to
> give a properly solution.
>
> Regards.
>
> 2017-01-13 2:26 GMT-05:00 Richard Eckart de Castilho <re...@apache.org>:
>
>> On 09.01.2017, at 15:34, Roberto Carlos Toledano G�mez <rc...@gmail.com>
>> wrote:
>>> Hello Richard, about configurin test:
>>>
>>> A solution could be , prepare the slave node with pre-installed
>> requirement
>>> (APR, XERCES-C, ICU, Active-MQ-Cpp, ..)  , because that never change
>> until
>>> developers decide migrate new versions of buid/test requirements as a
>> part
>>> of new improvement issue. With this avoid to build de requirements each
>>> time.
>> In principle yes, but these builds are running on the Apache build
>> cluster. I don't have access to those personally and I doubt that the
>> admins will be too happy about installing there globally a set of
>> additional libraries not needed by other projects.
>>
>> -- Richard


Re: Jenkins build job for UIMACPP

Posted by Marshall Schor <ms...@schor.com>.
Hi,

I found this page: https://cwiki.apache.org/confluence/display/INFRA/Jenkins

I started at www.apache.org/dev    <<< developer information
and then followed some links.

-Marshall


On 1/17/2017 11:31 AM, Roberto Carlos Toledano G�mez wrote:
> Where i could find apache jenkins guideline, for learn first i try help to
> give a properly solution.
>
> Regards.
>
> 2017-01-13 2:26 GMT-05:00 Richard Eckart de Castilho <re...@apache.org>:
>
>> On 09.01.2017, at 15:34, Roberto Carlos Toledano G�mez <rc...@gmail.com>
>> wrote:
>>> Hello Richard, about configurin test:
>>>
>>> A solution could be , prepare the slave node with pre-installed
>> requirement
>>> (APR, XERCES-C, ICU, Active-MQ-Cpp, ..)  , because that never change
>> until
>>> developers decide migrate new versions of buid/test requirements as a
>> part
>>> of new improvement issue. With this avoid to build de requirements each
>>> time.
>> In principle yes, but these builds are running on the Apache build
>> cluster. I don't have access to those personally and I doubt that the
>> admins will be too happy about installing there globally a set of
>> additional libraries not needed by other projects.
>>
>> -- Richard


Re: Jenkins build job for UIMACPP

Posted by Roberto Carlos Toledano Gómez <rc...@gmail.com>.
Where i could find apache jenkins guideline, for learn first i try help to
give a properly solution.

Regards.

2017-01-13 2:26 GMT-05:00 Richard Eckart de Castilho <re...@apache.org>:

> On 09.01.2017, at 15:34, Roberto Carlos Toledano Gómez <rc...@gmail.com>
> wrote:
> >
> > Hello Richard, about configurin test:
> >
> > A solution could be , prepare the slave node with pre-installed
> requirement
> > (APR, XERCES-C, ICU, Active-MQ-Cpp, ..)  , because that never change
> until
> > developers decide migrate new versions of buid/test requirements as a
> part
> > of new improvement issue. With this avoid to build de requirements each
> > time.
>
> In principle yes, but these builds are running on the Apache build
> cluster. I don't have access to those personally and I doubt that the
> admins will be too happy about installing there globally a set of
> additional libraries not needed by other projects.
>
> -- Richard

Re: Jenkins build job for UIMACPP

Posted by Richard Eckart de Castilho <re...@apache.org>.
On 09.01.2017, at 15:34, Roberto Carlos Toledano Gómez <rc...@gmail.com> wrote:
> 
> Hello Richard, about configurin test:
> 
> A solution could be , prepare the slave node with pre-installed requirement
> (APR, XERCES-C, ICU, Active-MQ-Cpp, ..)  , because that never change until
> developers decide migrate new versions of buid/test requirements as a part
> of new improvement issue. With this avoid to build de requirements each
> time.

In principle yes, but these builds are running on the Apache build cluster. I don't have access to those personally and I doubt that the admins will be too happy about installing there globally a set of additional libraries not needed by other projects.

-- Richard

Re: Jenkins build job for UIMACPP

Posted by Roberto Carlos Toledano Gómez <rc...@gmail.com>.
Hello Richard, about configurin test:

A solution could be , prepare the slave node with pre-installed requirement
(APR, XERCES-C, ICU, Active-MQ-Cpp, ..)  , because that never change until
developers decide migrate new versions of buid/test requirements as a part
of new improvement issue. With this avoid to build de requirements each
time.

--Regards

2017-01-07 17:11 GMT-05:00 Richard Eckart de Castilho <re...@apache.org>:

> Thanks for the tips.
>
> We now have a Jenkins job for the C++ SDK.
>
> https://builds.apache.org/view/S-Z/view/UIMA/job/UIMA-CPP-SDK/8/console
>
> Unfortunately, it doesn't pass the unit tests.
>
> The script that I created is a bit... well... it downloads ICU, APR,
> and XERCES-C from their respective sources and builds them as part of the
> UIMACPP build because we cannot expect the libraries to be present on
> the build nodes. It would be good idea to validate the MD5 sums of
> the sources before building them, but that is not done yet. Also,
> the build currently does not include Active-MQ support.
>
> Is it a known problem that the tests fail?
>
> -- Richard
>
> > On 06.01.2017, at 16:29, Roberto Carlos Toledano Gómez <rc...@gmail.com>
> wrote:
> >
> > Well, this culd be some steps:
> >
> > 1- Create multi-cinfiguration job, for build with combinations of
> > SO/compiler, for meet requirements like Ubuntu Linux Xenial 64 bits, GCC
> > 4.8, Clang, etc. For this you need aggregate some slave jenkins nodes
> with
> > the requirements you need.
> >
> > 2- After preliminary setup like git repository or suvbersion, for
> download
> > the code, in Build step select bash script and write the instructions for
> > build, for example:
> >
> >> ./configure --enable-static=yes --enable-shared=yes --prefix=/usr
> > --with-activemq=/usr/ --with-icu=/usr --with-apr=/usr
> > --with-jdk=/usr/lib/jvm/java-8-openjdk-amd64/include/
> >
> >> make
> >
> >> make test
> >
> > For build in Windows we create another job , that would be a freestyle
> job
> > and in the Build step, we select a bat script. But we are exploring MSYS
> > for use the same multi-configuration job with new Windown slave node.
> >
> > 2017-01-05 16:44 GMT-05:00 Richard Eckart de Castilho <re...@apache.org>:
> >
> >> On 05.01.2017, at 16:04, Roberto Carlos Toledano Gómez <
> rctg82@gmail.com>
> >> wrote:
> >>>
> >>> Yes, I have some experience in jenkins jobs with c++ projects. I use
> bash
> >>> scripts for that.How can I help you/us.
> >>
> >> How would you set up a Jenkins job to build the UIMA-C project?
> >>
> >> I suppose one would start from a freestyle job? But even there,
> choosing a
> >> JDK seems mandatory...
> >>
> >> -- Richard
>
>

Re: Jenkins build job for UIMACPP

Posted by Bhavani Iyer <bh...@gmail.com>.
HI Richard

The tests should run.  Following the link to the Jenkins log in the email,
the failure per the log seems to be in test_primitivetypes.cpp line 313
which is a simple test that sets up a string array in the CAS, retrieves
these and compares to the original values.  le
Are you able to run the tests in a local build environment ?

Bhavani

On Sat, Jan 7, 2017 at 5:11 PM, Richard Eckart de Castilho <re...@apache.org>
wrote:

> Thanks for the tips.
>
> We now have a Jenkins job for the C++ SDK.
>
> https://builds.apache.org/view/S-Z/view/UIMA/job/UIMA-CPP-SDK/8/console
>
> Unfortunately, it doesn't pass the unit tests.
>
> The script that I created is a bit... well... it downloads ICU, APR,
> and XERCES-C from their respective sources and builds them as part of the
> UIMACPP build because we cannot expect the libraries to be present on
> the build nodes. It would be good idea to validate the MD5 sums of
> the sources before building them, but that is not done yet. Also,
> the build currently does not include Active-MQ support.
>
> Is it a known problem that the tests fail?
>
> -- Richard
>
> > On 06.01.2017, at 16:29, Roberto Carlos Toledano Gómez <rc...@gmail.com>
> wrote:
> >
> > Well, this culd be some steps:
> >
> > 1- Create multi-cinfiguration job, for build with combinations of
> > SO/compiler, for meet requirements like Ubuntu Linux Xenial 64 bits, GCC
> > 4.8, Clang, etc. For this you need aggregate some slave jenkins nodes
> with
> > the requirements you need.
> >
> > 2- After preliminary setup like git repository or suvbersion, for
> download
> > the code, in Build step select bash script and write the instructions for
> > build, for example:
> >
> >> ./configure --enable-static=yes --enable-shared=yes --prefix=/usr
> > --with-activemq=/usr/ --with-icu=/usr --with-apr=/usr
> > --with-jdk=/usr/lib/jvm/java-8-openjdk-amd64/include/
> >
> >> make
> >
> >> make test
> >
> > For build in Windows we create another job , that would be a freestyle
> job
> > and in the Build step, we select a bat script. But we are exploring MSYS
> > for use the same multi-configuration job with new Windown slave node.
> >
> > 2017-01-05 16:44 GMT-05:00 Richard Eckart de Castilho <re...@apache.org>:
> >
> >> On 05.01.2017, at 16:04, Roberto Carlos Toledano Gómez <
> rctg82@gmail.com>
> >> wrote:
> >>>
> >>> Yes, I have some experience in jenkins jobs with c++ projects. I use
> bash
> >>> scripts for that.How can I help you/us.
> >>
> >> How would you set up a Jenkins job to build the UIMA-C project?
> >>
> >> I suppose one would start from a freestyle job? But even there,
> choosing a
> >> JDK seems mandatory...
> >>
> >> -- Richard
>
>