You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jörn Kottmann (JIRA)" <de...@uima.apache.org> on 2011/02/11 16:12:57 UTC

[jira] Created: (UIMA-2052) UIMA-AS should use a profile to run extended tests

UIMA-AS should use a profile to run extended tests
--------------------------------------------------

                 Key: UIMA-2052
                 URL: https://issues.apache.org/jira/browse/UIMA-2052
             Project: UIMA
          Issue Type: Improvement
          Components: Async Scaleout
            Reporter: Jörn Kottmann
            Assignee: Jörn Kottmann
            Priority: Trivial


UIMA AS defines a set of tests which are called "extended test" and are not run as part of the normal build, because they take too long. Currently a pom.xml file must edited to run these test. It would be better to have a profile which enabled the extended test. That makes it easier for the developer to run them and it makes it possible for hudson to run them.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Re: [jira] Created: (UIMA-2052) UIMA-AS should use a profile to run extended tests

Posted by Jaroslaw Cwiklik <ui...@gmail.com>.
Sorry, I just noticed the Basic Test is still there. Never mind.

JC


On Fri, Feb 11, 2011 at 11:52 AM, Jaroslaw Cwiklik <ui...@gmail.com> wrote:

> Jorn, I've noticed that you've updated the uimaj-as-activemq pom.xml with
> the profile. I think there is a problem in this implementation.
> As I see it, it does nor run *ANY* tests if extended-test is not defined. I
> implemented two profiles, one default which is activated
> in absence of extended-test which runs the Basic Test as before. And the
> second profile that runs just the extended tests.
>
> JC
>
>
> On Fri, Feb 11, 2011 at 11:44 AM, Jaroslaw Cwiklik <ui...@gmail.com>wrote:
>
>> Jorn, I have implemented the profile in the activemq pom. The profile name
>> running the extended test is: extended-test. If not defined, the default is
>> to run Basic Test as before.
>> I've noticed that Maven launches a separate process to run the tests. So
>> if you kill maven shell with CRL-C, maven does not kill that process just
>> its
>> own shell. See if this true in your case. I suspect you have a java
>> process running with a broker in it. Thats why it says that the port in
>> use..
>>
>> JC
>>
>> On Fri, Feb 11, 2011 at 11:33 AM, Jörn Kottmann <ko...@gmail.com>wrote:
>>
>>> On 2/11/11 4:51 PM, Jaroslaw Cwiklik wrote:
>>>
>>>> Jorn, how would the profile be triggered? If this is per user thing,
>>>> perhaps *.m2/settings.xml is the best place.
>>>>
>>>
>>> You can type -Pextended-test or put something like
>>> this into your settings.xml:
>>>
>>> <settings>
>>> ...
>>> <activeProfiles>
>>> <activeProfile>exented-test</activeProfile>
>>> </activeProfiles>
>>> ...
>>> </settings>
>>>
>>>
>>> Is that ok?
>>>
>>> BTW, the tests are failing on my local machine, and on the build server
>>> are some other issues
>>> with already used ports.
>>>
>>> Jörn
>>>
>>
>>
>

Re: [jira] Created: (UIMA-2052) UIMA-AS should use a profile to run extended tests

Posted by Jaroslaw Cwiklik <ui...@gmail.com>.
Jorn, I've noticed that you've updated the uimaj-as-activemq pom.xml with
the profile. I think there is a problem in this implementation.
As I see it, it does nor run *ANY* tests if extended-test is not defined. I
implemented two profiles, one default which is activated
in absence of extended-test which runs the Basic Test as before. And the
second profile that runs just the extended tests.

JC

On Fri, Feb 11, 2011 at 11:44 AM, Jaroslaw Cwiklik <ui...@gmail.com> wrote:

> Jorn, I have implemented the profile in the activemq pom. The profile name
> running the extended test is: extended-test. If not defined, the default is
> to run Basic Test as before.
> I've noticed that Maven launches a separate process to run the tests. So if
> you kill maven shell with CRL-C, maven does not kill that process just its
> own shell. See if this true in your case. I suspect you have a java process
> running with a broker in it. Thats why it says that the port in use..
>
> JC
>
> On Fri, Feb 11, 2011 at 11:33 AM, Jörn Kottmann <ko...@gmail.com>wrote:
>
>> On 2/11/11 4:51 PM, Jaroslaw Cwiklik wrote:
>>
>>> Jorn, how would the profile be triggered? If this is per user thing,
>>> perhaps *.m2/settings.xml is the best place.
>>>
>>
>> You can type -Pextended-test or put something like
>> this into your settings.xml:
>>
>> <settings>
>> ...
>> <activeProfiles>
>> <activeProfile>exented-test</activeProfile>
>> </activeProfiles>
>> ...
>> </settings>
>>
>>
>> Is that ok?
>>
>> BTW, the tests are failing on my local machine, and on the build server
>> are some other issues
>> with already used ports.
>>
>> Jörn
>>
>
>

Re: [jira] Created: (UIMA-2052) UIMA-AS should use a profile to run extended tests

Posted by Jörn Kottmann <ko...@gmail.com>.
On 2/11/11 5:44 PM, Jaroslaw Cwiklik wrote:
> Jorn, I have implemented the profile in the activemq pom. The profile name
> running the extended test is: extended-test. If not defined, the default is
> to run Basic Test as before.

I did the same actually and already checked in, make sure that we do not 
have
it twice.

Jörn

Re: [jira] Created: (UIMA-2052) UIMA-AS should use a profile to run extended tests

Posted by Jaroslaw Cwiklik <ui...@gmail.com>.
Jorn, I have implemented the profile in the activemq pom. The profile name
running the extended test is: extended-test. If not defined, the default is
to run Basic Test as before.
I've noticed that Maven launches a separate process to run the tests. So if
you kill maven shell with CRL-C, maven does not kill that process just its
own shell. See if this true in your case. I suspect you have a java process
running with a broker in it. Thats why it says that the port in use..

JC

On Fri, Feb 11, 2011 at 11:33 AM, Jörn Kottmann <ko...@gmail.com> wrote:

> On 2/11/11 4:51 PM, Jaroslaw Cwiklik wrote:
>
>> Jorn, how would the profile be triggered? If this is per user thing,
>> perhaps *.m2/settings.xml is the best place.
>>
>
> You can type -Pextended-test or put something like
> this into your settings.xml:
>
> <settings>
> ...
> <activeProfiles>
> <activeProfile>exented-test</activeProfile>
> </activeProfiles>
> ...
> </settings>
>
>
> Is that ok?
>
> BTW, the tests are failing on my local machine, and on the build server are
> some other issues
> with already used ports.
>
> Jörn
>

Re: [jira] Created: (UIMA-2052) UIMA-AS should use a profile to run extended tests

Posted by Jaroslaw Cwiklik <ui...@gmail.com>.
Timeout is hard to come up with unless you set it arbitrarily high still
subject to slow/busy machine. What happens on timeout?

Jerry C

On Fri, Feb 11, 2011 at 1:07 PM, Jörn Kottmann <ko...@gmail.com> wrote:

> On 2/11/11 6:56 PM, Jörn Kottmann wrote:
>
>>
>> Yes, it really seems to be this other project which keeps running
>> even after maven terminated. Lets try to figure out how to kill that
>> one with maven.
>>
>
> The surefire plugin seems to offer a timeout for the forked process, maybe
> that is
> better than nothing ...
>
> forkedProcessTimeoutInSeconds
>
> Or could we run in the same process without forking? Hmm, that might cause
> conflicts with maven stuff on the classpath.
>
> Jörn
>

Re: [jira] Created: (UIMA-2052) UIMA-AS should use a profile to run extended tests

Posted by Jörn Kottmann <ko...@gmail.com>.
On 2/11/11 6:56 PM, Jörn Kottmann wrote:
>
> Yes, it really seems to be this other project which keeps running
> even after maven terminated. Lets try to figure out how to kill that
> one with maven.

The surefire plugin seems to offer a timeout for the forked process, 
maybe that is
better than nothing ...

forkedProcessTimeoutInSeconds

Or could we run in the same process without forking? Hmm, that might cause
conflicts with maven stuff on the classpath.

Jörn

Re: [jira] Created: (UIMA-2052) UIMA-AS should use a profile to run extended tests

Posted by Jörn Kottmann <ko...@gmail.com>.
On 2/11/11 6:38 PM, Jaroslaw Cwiklik wrote:
> The extended should finish in less than 55 minutes on a decent machine.The
> test runs its broker(s) on port 8118 and 8200. I doubt the ActiveMQ team
> runs on either of those port but who knows. Whenever you stop maven check if
> there is a java process still running. Not sure if I can do anything about
> it. If the launched process's output is not drained it will hang.

Yes, it really seems to be this other project which keeps running
even after maven terminated. Lets try to figure out how to kill that
one with maven.

Jörn

Re: [jira] Created: (UIMA-2052) UIMA-AS should use a profile to run extended tests

Posted by Jaroslaw Cwiklik <ui...@gmail.com>.
The extended should finish in less than 55 minutes on a decent machine.The
test runs its broker(s) on port 8118 and 8200. I doubt the ActiveMQ team
runs on either of those port but who knows. Whenever you stop maven check if
there is a java process still running. Not sure if I can do anything about
it. If the launched process's output is not drained it will hang.

Jerry C

On Fri, Feb 11, 2011 at 12:17 PM, Jörn Kottmann <ko...@gmail.com> wrote:

> On 2/11/11 6:13 PM, Jaroslaw Cwiklik wrote:
>
>> It looks like there is another process running these tests. This only
>> happens if you try start the test while another is still running.
>> Maven launches a separate process to run tests. Perhaps you ve killed
>> maven
>> with CTRLC and the process running the test
>> is hung since there is no other process draining its output.
>>
>>
> I used the "abort" button in hudson to stop the hung build. It could
> also conflict with a build done by the ActiveMQ team on the same machine.
> I moved it now to solaris2, but we cannot use this machine for long running
> (>1h)
> build, I set the time limit to 55 minutes. Is that enough?
>
> On my macbook I got an error for three tests, I can do it again and
> post them here. Or hopefully hudson will have the same tests failing.
>
> Jörn
>
>

Re: [jira] Created: (UIMA-2052) UIMA-AS should use a profile to run extended tests

Posted by Jörn Kottmann <ko...@gmail.com>.
On 2/11/11 6:13 PM, Jaroslaw Cwiklik wrote:
> It looks like there is another process running these tests. This only
> happens if you try start the test while another is still running.
> Maven launches a separate process to run tests. Perhaps you ve killed maven
> with CTRLC and the process running the test
> is hung since there is no other process draining its output.
>

I used the "abort" button in hudson to stop the hung build. It could
also conflict with a build done by the ActiveMQ team on the same machine.
I moved it now to solaris2, but we cannot use this machine for long 
running (>1h)
build, I set the time limit to 55 minutes. Is that enough?

On my macbook I got an error for three tests, I can do it again and
post them here. Or hopefully hudson will have the same tests failing.

Jörn


Re: [jira] Created: (UIMA-2052) UIMA-AS should use a profile to run extended tests

Posted by Jaroslaw Cwiklik <ui...@gmail.com>.
It looks like there is another process running these tests. This only
happens if you try start the test while another is still running.
Maven launches a separate process to run tests. Perhaps you ve killed maven
with CTRLC and the process running the test
is hung since there is no other process draining its output.

Jerry C


On Fri, Feb 11, 2011 at 11:34 AM, Jörn Kottmann <ko...@gmail.com> wrote:

> On 2/11/11 5:33 PM, Jörn Kottmann wrote:
>
>> BTW, the tests are failing on my local machine, and on the build server
>> are some other issues
>> with already used ports.
>>
>
> Here is the console output:
> https://hudson.apache.org/hudson/job/UIMA-AS/3/console
>
> Jörn
>

Re: [jira] Created: (UIMA-2052) UIMA-AS should use a profile to run extended tests

Posted by Jörn Kottmann <ko...@gmail.com>.
On 2/11/11 5:33 PM, Jörn Kottmann wrote:
> BTW, the tests are failing on my local machine, and on the build 
> server are some other issues
> with already used ports. 

Here is the console output:
https://hudson.apache.org/hudson/job/UIMA-AS/3/console

Jörn

Re: [jira] Created: (UIMA-2052) UIMA-AS should use a profile to run extended tests

Posted by Jörn Kottmann <ko...@gmail.com>.
On 2/11/11 4:51 PM, Jaroslaw Cwiklik wrote:
> Jorn, how would the profile be triggered? If this is per user thing,
> perhaps *.m2/settings.xml is the best place.

You can type -Pextended-test or put something like
this into your settings.xml:

<settings>
...
<activeProfiles>
<activeProfile>exented-test</activeProfile>
</activeProfiles>
...
</settings>


Is that ok?

BTW, the tests are failing on my local machine, and on the build server 
are some other issues
with already used ports.

Jörn

Re: [jira] Created: (UIMA-2052) UIMA-AS should use a profile to run extended tests

Posted by Jaroslaw Cwiklik <ui...@gmail.com>.
Jorn, how would the profile be triggered? If this is per user thing,
perhaps *.m2/settings.xml is the best place.*
*
*
***Jerry C*
*
*
2011/2/11 Jörn Kottmann (JIRA) <de...@uima.apache.org>

> UIMA-AS should use a profile to run extended tests
> --------------------------------------------------
>
>                 Key: UIMA-2052
>                 URL: https://issues.apache.org/jira/browse/UIMA-2052
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Async Scaleout
>            Reporter: Jörn Kottmann
>            Assignee: Jörn Kottmann
>            Priority: Trivial
>
>
> UIMA AS defines a set of tests which are called "extended test" and are not
> run as part of the normal build, because they take too long. Currently a
> pom.xml file must edited to run these test. It would be better to have a
> profile which enabled the extended test. That makes it easier for the
> developer to run them and it makes it possible for hudson to run them.
>
> --
> This message is automatically generated by JIRA.
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>

[jira] Commented: (UIMA-2052) UIMA-AS should use a profile to run extended tests

Posted by "Jerry Cwiklik (JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996424#comment-12996424 ] 

Jerry Cwiklik commented on UIMA-2052:
-------------------------------------

Jorn can you close this. It looks like its working. Thanks

> UIMA-AS should use a profile to run extended tests
> --------------------------------------------------
>
>                 Key: UIMA-2052
>                 URL: https://issues.apache.org/jira/browse/UIMA-2052
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Async Scaleout
>            Reporter: Jörn Kottmann
>            Assignee: Jörn Kottmann
>            Priority: Trivial
>
> UIMA AS defines a set of tests which are called "extended test" and are not run as part of the normal build, because they take too long. Currently a pom.xml file must edited to run these test. It would be better to have a profile which enabled the extended test. That makes it easier for the developer to run them and it makes it possible for hudson to run them.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Closed: (UIMA-2052) UIMA-AS should use a profile to run extended tests

Posted by "Jörn Kottmann (JIRA)" <de...@uima.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-2052?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jörn Kottmann closed UIMA-2052.
-------------------------------

    Resolution: Fixed

> UIMA-AS should use a profile to run extended tests
> --------------------------------------------------
>
>                 Key: UIMA-2052
>                 URL: https://issues.apache.org/jira/browse/UIMA-2052
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Async Scaleout
>            Reporter: Jörn Kottmann
>            Assignee: Jörn Kottmann
>            Priority: Trivial
>
> UIMA AS defines a set of tests which are called "extended test" and are not run as part of the normal build, because they take too long. Currently a pom.xml file must edited to run these test. It would be better to have a profile which enabled the extended test. That makes it easier for the developer to run them and it makes it possible for hudson to run them.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira