You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Chris M. Hostetter (Jira)" <ji...@apache.org> on 2022/06/27 15:50:00 UTC

[jira] [Resolved] (SOLR-16258) gradle should not normally use 'errorprone'

     [ https://issues.apache.org/jira/browse/SOLR-16258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris M. Hostetter resolved SOLR-16258.
---------------------------------------
    Fix Version/s: 9.1
                   main (10.0)
       Resolution: Fixed

> gradle should not normally use 'errorprone' 
> --------------------------------------------
>
>                 Key: SOLR-16258
>                 URL: https://issues.apache.org/jira/browse/SOLR-16258
>             Project: Solr
>          Issue Type: Task
>            Reporter: Chris M. Hostetter
>            Assignee: Chris M. Hostetter
>            Priority: Major
>             Fix For: 9.1, main (10.0)
>
>         Attachments: SOLR-16258.patch
>
>
> [https://lists.apache.org/thread/fnjc7jmn7kbhbsk40g14cc6526yrnpxz]
>  
> {noformat}
> From: Chris Hostetter 
> Date: Wed, 8 Jun 2022 14:35:47 -0700 (MST)
> To: Solr Dev <de...@solr.apache.org>
> Message-ID: <al...@slate>
> Subject: Obscenely long gradle compile times? (related to error-prone plugin?)
> $ git clean -fxd && ./gradlew tasks && ./gradlew compileTestJava
> The first gradlew command (to force it to download a fresh 
> gradle-wrapper.jar and run ':localSettings' only took 21s -- but the 
> second invocation (to pick up the local settings in a new daemon) took 
> "19m 31s" ! (note that's just compilation - not running any tests)
> ...
> When I hacked ./gradle/validation/error-prone.gradle to hardcode 'def 
> skipErrorProne = true' the entire "git clean -fxd ... && ./gradlew 
> compileTestJava" command  started taking ~1 minute.
> {noformat}
> {noformat}
> Date: Wed, 8 Jun 2022 16:31:34 -0700 (MST)
> From: Chris Hostetter
> FYI: https://issues.apache.org/jira/browse/LUCENE-9879
> ...
> Seems like Solr should probably follow Lucene's lead here ?
> {noformat}
> {noformat}
> Date: Thu, 9 Jun 2022 10:52:03 +0200
> From: Uwe Schindler
> Hi Chris,
> in later PRs done by Dawid and me we improved the whole thing even more. Instead of linking this to property
> tests.nightly (which would run it too seldom), we added another project property. In addition the Lucene build now
> detects if it is ran in a CI environment (it looks for env vars) and then enables it. This makes sure the error-prone
> is running always on Github pull requests or on Jenkins, but normal developers can enable it explicitly and its not
> ran by default:
> https://github.com/apache/lucene/blob/1dceff12c8bb764255927be55e46f4d435f47aed/gradle/globals.gradle
> https://github.com/apache/lucene/blob/1dceff12c8bb764255927be55e46f4d435f47aed/gradle/validation/error-prone.gradle
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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