Updating from 3.3.9 to 3.5.0 causing strange unit test failures

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

Updating from 3.3.9 to 3.5.0 causing strange unit test failures

Alex O'Ree
Apache jUDDI PMC here.

I just spent the better part of my weekend trying to update and revamp
some code in Apache jUDDI and ran into a bit of strange situation that
is reporting worthy.

All of our previous release builds were ran using maven 3.3.9 on
windows with JDK7. I recently switched to maven 3.5.0 (love the
colors!) and have been happily moving along without any troubles on
any of my projects up until now.

I still don't understand it and can't really explain what the issue
is, but I'm seeing consistent unit test failures in jUDDI but only
when running with maven 3.5.0. I even rolled back the source code for
two different release version of jUDDI only see the same issue.
Switching back to maven 3.3.9 somehow fixes the test failures.

I wish i could tell you all what the root cause is, but I honestly
have no idea. I've been subscribed to this list for probably 6 months
now and I don't recall seeing anything else similar in nature reported
so I figured I'd give this a shot.


Relevant product info
jUDDI is a server based web app that stores a registry of service
endpoints. This data is stored using JPA in an Apache Derby database
during unit tests. It also supports replication across multiple server
instances.

Test details:
Tests related to server replication, in which multiple instances of
jUDDI are started and replication is triggered between 3 instances are
failing. I initially thought this may have been some kind of string to
byte encoding issue (it still may be). Still investigate this.

Using surefire 2.4 with junit 4.12.

Steps to reproduce
using maven 3.5.0 with jdk7 (windows)
git clone https://git-wip-us.apache.org/repos/asf/juddi.git
mvn clean install -Pdist

This will take a while by the way and will fail in the uddi-tck module.
Switching to maven 3.3.9 will work though

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Updating from 3.3.9 to 3.5.0 causing strange unit test failures

Karl Heinz Marbaise-3
Hi,

On 01/10/17 15:35, Alex O'Ree wrote:

> Apache jUDDI PMC here.
>
> I just spent the better part of my weekend trying to update and revamp
> some code in Apache jUDDI and ran into a bit of strange situation that
> is reporting worthy.
>
> All of our previous release builds were ran using maven 3.3.9 on
> windows with JDK7. I recently switched to maven 3.5.0 (love the
> colors!) and have been happily moving along without any troubles on
> any of my projects up until now.
>
> I still don't understand it and can't really explain what the issue
> is, but I'm seeing consistent unit test failures in jUDDI but only
> when running with maven 3.5.0. I even rolled back the source code for
> two different release version of jUDDI only see the same issue.
> Switching back to maven 3.3.9 somehow fixes the test failures.
>
> I wish i could tell you all what the root cause is, but I honestly
> have no idea. I've been subscribed to this list for probably 6 months
> now and I don't recall seeing anything else similar in nature reported
> so I figured I'd give this a shot.
>
>
> Relevant product info
> jUDDI is a server based web app that stores a registry of service
> endpoints. This data is stored using JPA in an Apache Derby database
> during unit tests. It also supports replication across multiple server
> instances.
>
> Test details:
> Tests related to server replication, in which multiple instances of
> jUDDI are started and replication is triggered between 3 instances are
> failing. I initially thought this may have been some kind of string to
> byte encoding issue (it still may be). Still investigate this.
>
> Using surefire 2.4 with junit 4.12.

Are you really using maven-surefire-plugin version 2.4 which is from
2008 ? Have you correctly defined to use maven-surefire-plugin 2.4
somewhere ?

First I would suggest to keep Maven 3.3.9 and upgrade
maven-surefire-plugin to newer versions and see if it does not break
anything...

Afterwards I would upgrade to Maven 3.5.0...

Kind regards
Karl Heinz Marbaise

>
> Steps to reproduce
> using maven 3.5.0 with jdk7 (windows)
> git clone https://git-wip-us.apache.org/repos/asf/juddi.git
> mvn clean install -Pdist
>
> This will take a while by the way and will fail in the uddi-tck module.
> Switching to maven 3.3.9 will work though
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Updating from 3.3.9 to 3.5.0 causing strange unit test failures

Karl Heinz Marbaise-3
In reply to this post by Alex O'Ree
Hi,

On 01/10/17 15:35, Alex O'Ree wrote:

> Apache jUDDI PMC here.
>
> I just spent the better part of my weekend trying to update and revamp
> some code in Apache jUDDI and ran into a bit of strange situation that
> is reporting worthy.
>
> All of our previous release builds were ran using maven 3.3.9 on
> windows with JDK7. I recently switched to maven 3.5.0 (love the
> colors!) and have been happily moving along without any troubles on
> any of my projects up until now.
>
> I still don't understand it and can't really explain what the issue
> is, but I'm seeing consistent unit test failures in jUDDI but only
> when running with maven 3.5.0. I even rolled back the source code for
> two different release version of jUDDI only see the same issue.
> Switching back to maven 3.3.9 somehow fixes the test failures.
>
> I wish i could tell you all what the root cause is, but I honestly
> have no idea. I've been subscribed to this list for probably 6 months
> now and I don't recall seeing anything else similar in nature reported
> so I figured I'd give this a shot.
>
>
> Relevant product info
> jUDDI is a server based web app that stores a registry of service
> endpoints. This data is stored using JPA in an Apache Derby database
> during unit tests. It also supports replication across multiple server
> instances.
>
> Test details:
> Tests related to server replication, in which multiple instances of
> jUDDI are started and replication is triggered between 3 instances are
> failing. I initially thought this may have been some kind of string to
> byte encoding issue (it still may be). Still investigate this.
>
> Using surefire 2.4 with junit 4.12.


based on the pom files there two definitions one for
maven-surefire-plugin 2.4 and one for maven-surefire-plugin 2.15...which
I would suggest clean up...

Kind regards
Karl Heinz Marbaise

>
> Steps to reproduce
> using maven 3.5.0 with jdk7 (windows)
> git clone https://git-wip-us.apache.org/repos/asf/juddi.git
> mvn clean install -Pdist
>
> This will take a while by the way and will fail in the uddi-tck module.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Updating from 3.3.9 to 3.5.0 causing strange unit test failures

Alex O'Ree
I thought i had cleaned that up. One of those, if it's not broke don't fix
it, kind of things.

On Sun, Oct 1, 2017 at 10:24 AM, Karl Heinz Marbaise <[hidden email]>
wrote:

> Hi,
>
> On 01/10/17 15:35, Alex O'Ree wrote:
>>
>> Apache jUDDI PMC here.
>>
>> I just spent the better part of my weekend trying to update and revamp
>> some code in Apache jUDDI and ran into a bit of strange situation that
>> is reporting worthy.
>>
>> All of our previous release builds were ran using maven 3.3.9 on
>> windows with JDK7. I recently switched to maven 3.5.0 (love the
>> colors!) and have been happily moving along without any troubles on
>> any of my projects up until now.
>>
>> I still don't understand it and can't really explain what the issue
>> is, but I'm seeing consistent unit test failures in jUDDI but only
>> when running with maven 3.5.0. I even rolled back the source code for
>> two different release version of jUDDI only see the same issue.
>> Switching back to maven 3.3.9 somehow fixes the test failures.
>>
>> I wish i could tell you all what the root cause is, but I honestly
>> have no idea. I've been subscribed to this list for probably 6 months
>> now and I don't recall seeing anything else similar in nature reported
>> so I figured I'd give this a shot.
>>
>>
>> Relevant product info
>> jUDDI is a server based web app that stores a registry of service
>> endpoints. This data is stored using JPA in an Apache Derby database
>> during unit tests. It also supports replication across multiple server
>> instances.
>>
>> Test details:
>> Tests related to server replication, in which multiple instances of
>> jUDDI are started and replication is triggered between 3 instances are
>> failing. I initially thought this may have been some kind of string to
>> byte encoding issue (it still may be). Still investigate this.
>>
>> Using surefire 2.4 with junit 4.12.
>
>
>
> based on the pom files there two definitions one for maven-surefire-plugin
> 2.4 and one for maven-surefire-plugin 2.15...which I would suggest clean
> up...
>
> Kind regards
> Karl Heinz Marbaise
>
>>
>> Steps to reproduce
>> using maven 3.5.0 with jdk7 (windows)
>> git clone https://git-wip-us.apache.org/repos/asf/juddi.git
>> mvn clean install -Pdist
>>
>> This will take a while by the way and will fail in the uddi-tck module.
Reply | Threaded
Open this post in threaded view
|

Re: Updating from 3.3.9 to 3.5.0 causing strange unit test failures

Alex O'Ree
after further investigation, it's probably not a maven issue.

On Sun, Oct 1, 2017 at 11:15 AM, Alex O'Ree <[hidden email]> wrote:

> I thought i had cleaned that up. One of those, if it's not broke don't fix
> it, kind of things.
>
>
> On Sun, Oct 1, 2017 at 10:24 AM, Karl Heinz Marbaise <[hidden email]>
> wrote:
>> Hi,
>>
>> On 01/10/17 15:35, Alex O'Ree wrote:
>>>
>>> Apache jUDDI PMC here.
>>>
>>> I just spent the better part of my weekend trying to update and revamp
>>> some code in Apache jUDDI and ran into a bit of strange situation that
>>> is reporting worthy.
>>>
>>> All of our previous release builds were ran using maven 3.3.9 on
>>> windows with JDK7. I recently switched to maven 3.5.0 (love the
>>> colors!) and have been happily moving along without any troubles on
>>> any of my projects up until now.
>>>
>>> I still don't understand it and can't really explain what the issue
>>> is, but I'm seeing consistent unit test failures in jUDDI but only
>>> when running with maven 3.5.0. I even rolled back the source code for
>>> two different release version of jUDDI only see the same issue.
>>> Switching back to maven 3.3.9 somehow fixes the test failures.
>>>
>>> I wish i could tell you all what the root cause is, but I honestly
>>> have no idea. I've been subscribed to this list for probably 6 months
>>> now and I don't recall seeing anything else similar in nature reported
>>> so I figured I'd give this a shot.
>>>
>>>
>>> Relevant product info
>>> jUDDI is a server based web app that stores a registry of service
>>> endpoints. This data is stored using JPA in an Apache Derby database
>>> during unit tests. It also supports replication across multiple server
>>> instances.
>>>
>>> Test details:
>>> Tests related to server replication, in which multiple instances of
>>> jUDDI are started and replication is triggered between 3 instances are
>>> failing. I initially thought this may have been some kind of string to
>>> byte encoding issue (it still may be). Still investigate this.
>>>
>>> Using surefire 2.4 with junit 4.12.
>>
>>
>>
>> based on the pom files there two definitions one for maven-surefire-plugin
>> 2.4 and one for maven-surefire-plugin 2.15...which I would suggest clean
>> up...
>>
>> Kind regards
>> Karl Heinz Marbaise
>>
>>>
>>> Steps to reproduce
>>> using maven 3.5.0 with jdk7 (windows)
>>> git clone https://git-wip-us.apache.org/repos/asf/juddi.git
>>> mvn clean install -Pdist
>>>
>>> This will take a while by the way and will fail in the uddi-tck module.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Updating from 3.3.9 to 3.5.0 causing strange unit test failures

Karl Heinz Marbaise-3
Hi Alex,

I've also seen that the project inherits from apache parent version 13
which is 4 years old...in the meantime we are at version 18...

Kind regards
Karl Heinz Marbaise

See: http://maven.apache.org/pom/asf/

On 02/10/17 00:57, Alex O'Ree wrote:

> after further investigation, it's probably not a maven issue.
>
> On Sun, Oct 1, 2017 at 11:15 AM, Alex O'Ree <[hidden email]> wrote:
>> I thought i had cleaned that up. One of those, if it's not broke don't fix
>> it, kind of things.
>>
>>
>> On Sun, Oct 1, 2017 at 10:24 AM, Karl Heinz Marbaise <[hidden email]>
>> wrote:
>>> Hi,
>>>
>>> On 01/10/17 15:35, Alex O'Ree wrote:
>>>>
>>>> Apache jUDDI PMC here.
>>>>
>>>> I just spent the better part of my weekend trying to update and revamp
>>>> some code in Apache jUDDI and ran into a bit of strange situation that
>>>> is reporting worthy.
>>>>
>>>> All of our previous release builds were ran using maven 3.3.9 on
>>>> windows with JDK7. I recently switched to maven 3.5.0 (love the
>>>> colors!) and have been happily moving along without any troubles on
>>>> any of my projects up until now.
>>>>
>>>> I still don't understand it and can't really explain what the issue
>>>> is, but I'm seeing consistent unit test failures in jUDDI but only
>>>> when running with maven 3.5.0. I even rolled back the source code for
>>>> two different release version of jUDDI only see the same issue.
>>>> Switching back to maven 3.3.9 somehow fixes the test failures.
>>>>
>>>> I wish i could tell you all what the root cause is, but I honestly
>>>> have no idea. I've been subscribed to this list for probably 6 months
>>>> now and I don't recall seeing anything else similar in nature reported
>>>> so I figured I'd give this a shot.
>>>>
>>>>
>>>> Relevant product info
>>>> jUDDI is a server based web app that stores a registry of service
>>>> endpoints. This data is stored using JPA in an Apache Derby database
>>>> during unit tests. It also supports replication across multiple server
>>>> instances.
>>>>
>>>> Test details:
>>>> Tests related to server replication, in which multiple instances of
>>>> jUDDI are started and replication is triggered between 3 instances are
>>>> failing. I initially thought this may have been some kind of string to
>>>> byte encoding issue (it still may be). Still investigate this.
>>>>
>>>> Using surefire 2.4 with junit 4.12.
>>>
>>>
>>>
>>> based on the pom files there two definitions one for maven-surefire-plugin
>>> 2.4 and one for maven-surefire-plugin 2.15...which I would suggest clean
>>> up...
>>>
>>> Kind regards
>>> Karl Heinz Marbaise
>>>
>>>>
>>>> Steps to reproduce
>>>> using maven 3.5.0 with jdk7 (windows)
>>>> git clone https://git-wip-us.apache.org/repos/asf/juddi.git
>>>> mvn clean install -Pdist
>>>>
>>>> This will take a while by the way and will fail in the uddi-tck module.
>


Mit freundlichem Gruß
Karl-Heinz Marbaise
--
SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl-Heinz Marbaise        USt.IdNr: DE191347579
Hauptstrasse 177
52146 Würselen                           http://www.soebes.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]