You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Dawid Weiss (Jira)" <ji...@apache.org> on 2021/09/01 21:32:00 UTC

[jira] [Commented] (SOLR-15603) Activate Gradle build cache

    [ https://issues.apache.org/jira/browse/SOLR-15603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17408391#comment-17408391 ] 

Dawid Weiss commented on SOLR-15603:
------------------------------------

I've commented out the cache option by default but otherwise I think it's a fine improvement if you're willing to sacrifice some disk space (and perhaps confidence that the build is really going to be identical to your cached artifacts :)).

Note that the tasks are doing fairly well with up-to-date checks and, unless tests are involved, things are looking fine for me on incremental builds:
{code}
without cache:
> gradlew clean
> gradlew check -x test
BUILD SUCCESSFUL in 3m 1s
372 actionable tasks: 368 executed, 4 up-to-date
> gradlew check -x test
BUILD SUCCESSFUL in 10s
372 actionable tasks: 80 executed, 292 up-to-date
{code}

The cache is obviously going to cut the time if you're cleaning in between (which you shouldn't have to do, if inputs are working fine):
{code}
> gradlew clean
> gradlew check -x test
BUILD SUCCESSFUL in 2m 31s
372 actionable tasks: 312 executed, 12 from cache, 48 up-to-date
> gradlew check -x test
BUILD SUCCESSFUL in 17s
372 actionable tasks: 80 executed, 292 up-to-date
> gradlew clean
> gradlew check -x test
BUILD SUCCESSFUL in 1m
372 actionable tasks: 235 executed, 83 from cache, 54 up-to-date
{code}

Thank you for cleaning up other minor issues as part of this improvement! I'll commit over the weekend, unless there are other comments/ issues with the patch.

> Activate Gradle build cache
> ---------------------------
>
>                 Key: SOLR-15603
>                 URL: https://issues.apache.org/jira/browse/SOLR-15603
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Alexis Tual
>            Assignee: Dawid Weiss
>            Priority: Minor
>          Time Spent: 3.5h
>  Remaining Estimate: 0h
>
> Activate Gradle build cache to avoid re-executing cacheable tasks.
> Make as well some custom tasks cacheable, this effort can be quite large depending on build complexity, so this Jira issue will cover only the straightforward fixes.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org