jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-3251) speeding up the build time
Date Thu, 20 Aug 2015 08:00:52 GMT

    [ https://issues.apache.org/jira/browse/OAK-3251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14704463#comment-14704463

Julian Reschke commented on OAK-3251:

"If I remember correctly it was agreed to run by default only Segment
as it's faster and it doesn't need any extra tools (Mongo, RDBs) up
and running."

That makes sense for projects other than oak-core, yes. But the unit tests we run on oak-core
by default should cover the code in oak-core. Also, the situation is different for Mongo and
RDB; the latter doesn't need any external tools.

"The idea is that most of the functionality should be persistence
agnostic and that before committing you should ensure to give a run on
all the persistence or in case our CI should catch it."

a) Some of the code in fact is *not* persistence agnostic (and we need to fix that). b) The
different persistence implementations live in oak-core, and thus your reasoning by definition
can not apply here IMHO.

> speeding up the build time
> --------------------------
>                 Key: OAK-3251
>                 URL: https://issues.apache.org/jira/browse/OAK-3251
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>            Reporter: Davide Giannella
>            Assignee: Davide Giannella
>         Attachments: oak-build-for-unittests-times.log, oak-build-times.log
> Running the build with a {mvn clean install} takes a considerable amount of time: 15
minutes on my local.
> The top 10 slowest unit test are the following
> {noformat}
> 110.822 sec org.apache.jackrabbit.oak.jcr.query.QueryJcrTest
> 54.012 sec org.apache.jackrabbit.oak.plugins.segment.SegmentDataStoreBlobGCTest
> 36.593 sec org.apache.jackrabbit.oak.plugins.document.VersionGarbageCollectorTest
> 35.234 sec org.apache.jackrabbit.oak.jcr.query.QueryJcrTest
> 25.047 sec org.apache.jackrabbit.oak.plugins.segment.file.FileStoreTest
> 24.787 sec org.apache.jackrabbit.oak.plugins.document.BasicDocumentStoreTest
> 17.477 sec org.apache.jackrabbit.oak.plugins.segment.ExternalBlobTest
> 16.343 sec org.apache.jackrabbit.oak.jcr.query.QueryTest
> 14.519 sec org.apache.jackrabbit.oak.plugins.segment.CompactionAndCleanupTest
> 11.604 sec org.apache.jackrabbit.oak.run.osgi.LuceneSupportTest
> {noformat}
> Is there anything we could do to speed-up these?
> sorted times obtained with https://gist.github.com/davidegiannella/b1d3cbe51d1f70314500

This message was sent by Atlassian JIRA

View raw message