[jboss-dev] How can a project run in both AS 4.2.0 and AS 5.0?
Tim Fox
tim.fox at jboss.com
Thu Jul 19 11:08:29 EDT 2007
I don't foresee us having to fork the codebase - that should stay the same.
The issue is really just that we test against version X of aop, version
Y of jgroups, version Z of core libs since that is what AS 4.2 uses, so
our tests are only valid with those versions.
I don't really see how an integration layer or mocking stuff out helps,
at the end of the day we need to test against the actual versions used
by all versions of the AS we're supported in. Mocks are simply not going
to show up a problems with other versions of libs.
As you say, if this means QA buying more boxes, so be it. I don't think
there's any way around it.
Dimitris Andreadis wrote:
> I don't think you can (or should) avoid test runs for the different
> runtimes (AS 4.2/5.0), no matter how much time they take. Otherwise
> how we know it works? If QA needs more machines, then so be it.
>
> The real issue is to have as much as possible a single codebase.
> JBossWS uses a common "core" and different integration layers
> depending on the runtime (as40, as42, as50).
>
> Tim Fox wrote:
>> A posted something similar on this some time ago, but we didn't get
>> to any conclusions so I'm bringing it up again.
>>
>> JBoss Messaging has all its dependencies aligned with JBAS 4.2.0 -
>> i.e. we use all the same versons of libraries as AS 4.2.0.
>>
>> This means all the testing we did is valid when we install inside AS
>> 4.2.0 since we know we're still using all the same libraries.
>>
>> However, JBAS 5.0 uses different versions of libraries to AS 4.2.0 -
>> so we can't guarantee that the version of our project that runs in
>> 4.2 will run in AS 5.0 - since we don't test against the versions of
>> the libraries used by AS 5.0.
>>
>> The only way around this AFAICT is for us to keep two versions of JBM
>> (or at least to have two sets of dependencie)- one with a set of
>> dependencies mirroring AS 4.2.0, and another with a set of
>> dependencies mirroring AS 5.0.
>>
>> But this is a big maintenance hassle - and will mean double the test
>> runs. Our test runs already take forever.
>>
>> How do other projects deal with this? Surely we are not the only ones.
>>
>> Or perhaps other projects don't worry about it and "hope for the
>> best" when installed in AS 5.0?
>> _______________________________________________
>> jboss-development mailing list
>> jboss-development at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jboss-development
> _______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development
More information about the jboss-development
mailing list