You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by Thomas Watson <tj...@us.ibm.com> on 2014/07/11 15:04:16 UTC
State of blueprint itests
While investigating some changes to blueprint I noticed that the
blueprint-itests project pom refers to many old snapshot versions. Is this
normal? I would have expected it to refer to all the latest snapshot
versions that are in trunk for blueprint. As a result changes to add new
tests run against some old snapshot of the blueprint bundles.
While trying to fix this to point to all the latest blueprint snapshots I
started to see test failures. This makes me question the stability of the
code in trunk since it seems we all are not really running the tests
against the latest blueprint bundles in trunk.
Tom
Re: State of blueprint itests
Posted by Holly Cummins <ho...@googlemail.com>.
The snapshot build should be giving us coverage of testing with all the latest snapshots. For the product, there's a clear requirement to have the main build build with the minimum level of dependencies, but for testing it's a bit less clear. Testing with minimum levels gives better coverage, since those are levels we're asserting work together. On the other hand, if all of the dependencies in a test are old, the main build probably isn't testing what we think it is, especially when uber-bundles are involved, or when testing changes locally. And then to test all combinations, which is what we might want, leads to a combinatoric explosion. So it's tricky.
> On 11 Jul 2014, at 18:00, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:
>
> Hi Thomas,
>
> It was like this before the latest changes. AFAIU, the purpose is to test the target artifacts, so I would agree to update the itests with the latest SNAPSHOTs (at least for the current module) to test the codebase.
>
> If the team is OK with that, I will do the changes (after the current releases votes).
>
> Regards
> JB
>
>> On 07/11/2014 03:04 PM, Thomas Watson wrote:
>>
>>
>> While investigating some changes to blueprint I noticed that the
>> blueprint-itests project pom refers to many old snapshot versions. Is this
>> normal? I would have expected it to refer to all the latest snapshot
>> versions that are in trunk for blueprint. As a result changes to add new
>> tests run against some old snapshot of the blueprint bundles.
>>
>> While trying to fix this to point to all the latest blueprint snapshots I
>> started to see test failures. This makes me question the stability of the
>> code in trunk since it seems we all are not really running the tests
>> against the latest blueprint bundles in trunk.
>>
>> Tom
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
Re: State of blueprint itests
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Thomas,
It was like this before the latest changes. AFAIU, the purpose is to
test the target artifacts, so I would agree to update the itests with
the latest SNAPSHOTs (at least for the current module) to test the codebase.
If the team is OK with that, I will do the changes (after the current
releases votes).
Regards
JB
On 07/11/2014 03:04 PM, Thomas Watson wrote:
>
>
> While investigating some changes to blueprint I noticed that the
> blueprint-itests project pom refers to many old snapshot versions. Is this
> normal? I would have expected it to refer to all the latest snapshot
> versions that are in trunk for blueprint. As a result changes to add new
> tests run against some old snapshot of the blueprint bundles.
>
> While trying to fix this to point to all the latest blueprint snapshots I
> started to see test failures. This makes me question the stability of the
> code in trunk since it seems we all are not really running the tests
> against the latest blueprint bundles in trunk.
>
> Tom
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: State of blueprint itests
Posted by Thomas Watson <tj...@us.ibm.com>.
I just released an updated pom.xml for the blueprint-itests project which
updates it to use the latest blueprint bundles. But I could not updated it
to use the latest snapshot (1.0.2.SNAPSHOT) or released version (1.0.1) of
org.apache.aries.blueprint.annotation.impl. Otherwise it would start to
fail the org.apache.aries.blueprint.itests.BlueprintAnnotationTest
Tom.
>
> For compiling purposes I understand. But for itests I don't understand
why
> we would not want the tests to always run directly against what is built
> from trunk. Otherwise how can we ensure we catch new bugs introduced in
> trunk?
>
> Tom
Re: State of blueprint itests
Posted by Thomas Watson <tj...@us.ibm.com>.
Tom
Jeremy Hughes <jp...@gmail.com> wrote on 07/11/2014 08:58:14 AM:
> Generally speaking, module dependencies on other Aries modules should
> be at the minimum required level for them to function correctly. Then
> using the -Pdev profile should bring those dependency versions up to
> the latest snapshot levels.
>
> blueprint-itests should be the same - when you run the tests with the
> default profile you're testing blueprint at the level that make all
> the tests work. This could include snapshots but not old snapshots of
> modules that have been released.
>
> Cheers,
> Jeremy
>
For compiling purposes I understand. But for itests I don't understand why
we would not want the tests to always run directly against what is built
from trunk. Otherwise how can we ensure we catch new bugs introduced in
trunk?
Tom
Re: State of blueprint itests
Posted by Jeremy Hughes <jp...@gmail.com>.
Generally speaking, module dependencies on other Aries modules should
be at the minimum required level for them to function correctly. Then
using the -Pdev profile should bring those dependency versions up to
the latest snapshot levels.
blueprint-itests should be the same - when you run the tests with the
default profile you're testing blueprint at the level that make all
the tests work. This could include snapshots but not old snapshots of
modules that have been released.
Cheers,
Jeremy
On 11 July 2014 14:04, Thomas Watson <tj...@us.ibm.com> wrote:
>
>
> While investigating some changes to blueprint I noticed that the
> blueprint-itests project pom refers to many old snapshot versions. Is this
> normal? I would have expected it to refer to all the latest snapshot
> versions that are in trunk for blueprint. As a result changes to add new
> tests run against some old snapshot of the blueprint bundles.
>
> While trying to fix this to point to all the latest blueprint snapshots I
> started to see test failures. This makes me question the stability of the
> code in trunk since it seems we all are not really running the tests
> against the latest blueprint bundles in trunk.
>
> Tom