jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mete Atamel <mata...@adobe.com>
Subject Re: MongoMK build updates
Date Fri, 16 Nov 2012 09:14:59 GMT
As guessed, the build slow down was due to dropping the DB before and
after each test. I changed the tests to drop collections instead (see
diff.txt) and the build and tests run in 1 minute. Dropping collections is
effectively same as dropping DB as far as tests are concerned, so I think
we should go with this change to have a speedy build. Could someone apply
this change for me please? Thanks.


On 11/16/12 9:51 AM, "Mete Atamel" <matamel@adobe.com> wrote:

>Hi Jukka,
>Thanks for setting this up. One minor issue though. The MongoMK build used
>to take around 2 minutes (see withoutJukkasChanges.txt) but with your
>changes from yesterday, it takes around 8.5 minutes (see
>withJukkasChanges.txt). Tests take much longer. This is probably due to
>how databases/collections are created/dropped in MongoMK tests, maybe it's
>being done too many times or something similar. I'll take a look.
>On 11/16/12 9:13 AM, "Jukka Zitting" <jukka.zitting@gmail.com> wrote:
>>As you may have noticed from the past few commits, I'm working on
>>better integrating the MongoMK to our normal build. The idea is to
>>always build the MongoMK components so we wouldn't need the extra
>>-Pmongomk profile anymore. To do this I'm instructing the test cases
>>that depend on a MongoDB instance being available to be automatically
>>skipped (instead of failing the build) when such an instance is not
>>See below for relevant details I added to the README.
>>Jukka Zitting
>>MongoDB integration
>>Parts of the Oak build expects a MongoDB instance to be available for
>>testing. By default a MongoDB instance running on localhost is expected,
>>and the relevant tests are simply skipped if such an instance is not
>>You can also configure the build to use custom MongoDB settings with the
>>following properties (shown with their default values):
>>    -Dmongo.host=
>>    -Dmongo.port=27017
>>    -Dmongo.db=MongoMKDB
>>    -Dmongo.db2=MongoMKDB2
>>Note that the configured test databases will be *dropped* by the test

View raw message