You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Jean T. Anderson" <jt...@bristowhill.com> on 2006/11/13 20:34:45 UTC

Contributing code to Apache (was Re: Contribution of System tests for Derby)

I'm deliberately top posting to Manjula's original post (included in its
entirety down below).

Manjula and I briefly chatted about this contribution off line. The
summary of what we discussed for the list is: these tests were
originally developed for Cloudscape before IBM contributed code to
Apache for the Derby project.

The ASF has a code contribution process we should follow that is
outlined at :

   http://incubator.apache.org/ip-clearance/index.html

I've been watching how other ASF projects bring in code and I believe
the steps we need to follow are:

1) Upload the code to a new Jira issue.
2) Fax the software grant form [1] to the ASF secretary.
3) Call a vote on derby-dev to accept the contribution.
4) Fill in the IP clearance template [2] and add it to the Incubator
repo. (I have karma to the Incubator repo and will offer to do this.)
5) Announce the contribution to the Incubator PMC. If no issues are
raised in 72 hours, then the code can be checked into the derby repo. A
recent example of Jakarta's announce to the Incubator is at [3].

Manjula mentioned this in her post:

> I will open individual jira  entries  for each test to contribute them
> one by one.

If it makes sense to split up the contribution, then do so. But if any
pieces are reasonable to combine, then combining them would cut down on
the process required to bring them in.

 -jean


[1] Software grant form: http://www.apache.org/licenses/software-grant.txt
[2] IP clearance template:
http://incubator.apache.org/ip-clearance/ip-clearance-template.html
[3]
http://mail-archives.apache.org/mod_mbox/incubator-general/200611.mbox/%3c8a81b4af0611121246of332969ubca1380d8359253d@mail.gmail.com%3e


-------- Original Message --------
Subject: Re: Contribution of System tests for Derby
Date: Fri, 10 Nov 2006 11:36:42 -0800
From: Manjula G Kutty <ma...@gmail.com>
Reply-To: derby-dev@db.apache.org
To: derby-dev@db.apache.org
References: <45...@gmail.com> <45...@apache.org>

Daniel John Debrunner wrote:

> Manjula G Kutty wrote:
>
>> Hello,
>>
>> As a continued effort towards improving Derby quality, I wish to
>> contribute some long running system tests for Derby.  Here is
>> a brief description of each:
>
>
> [snip - four test descriptions]
>
> Sounds good, look forward to have this additional testing ability.
>
>>
>> I don't think these tests can be run as functional tests on a nightly
>> basis. Some of these could be  run for weeks and would be
>> useful to test release candidates.
>
>
> It might be useful to run some form as functional tests, this at least
> ensures the test is not broken by some change. That of course could be
> done subsequent to the contribution. Possibly it's useful to think of
> these as test toolkits and not just their potential use to a long
> running test. For example with the OE I imagine there is a functional
> test that could be written to ensure the schema scripts work, data can
> be loaded etc.
>
>
>> I suggest  org.apache.derbyTesting.system.tests.<name of the test>
>> as a  location for these tests.
>
>
> I put the OE test, which is similar in concept to what you describe,
> directly under org.apache.derbyTesting.system. I don't think there's
> any benefit to that extra 'tests'. So I would propose:
>
> org.apache.derbyTesting.system.<name of the test>
>
> to match oe.
>
>> I would also suggest a new ant target to build these classes. So that
>> the simple ant command do not have to
>> compile these test classes everytime. If any one wants them, they
>> could run it  as ant <target name>.
>
>
> Probably should be included in the all target, probably depends on how
> much extra time is involved.
>
> Thanks,
> Dan.
>
>
Thanks Dan for your valuable suggestions.

Thanks Dan for your valuable suggestions.

I will open individual jira  entries  for each test to contribute them
one by one. I agree the package name can be
org.apache.derbyTesting.system.<testname>, similar
to the order entry tests.

The time taken to compile them is very minimal hence we can include
these tests in the  ant all target.  A readme file that tells how
to run and check the results will be included in each of the tests. Also
note that  these tests can be run for few hours since
there is no explicit exit conditions, so anyone can choose to run them
for the desired duration by using some sort of utility wrappers
around them

Please let me know if you have any further questions.

Thanks
Manjula