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

Dawid Weiss commented on LUCENE-9316:
-------------------------------------

Something is wrong but I can't quite pinpoint the source of the problem. When I 
modify precommit.gradle with this patch:
{code}
diff --git a/gradle/validation/precommit.gradle 
b/gradle/validation/precommit.gradle
index 94ed800cb28..79347646454 100644
--- a/gradle/validation/precommit.gradle
+++ b/gradle/validation/precommit.gradle
@@ -44,5 +44,9 @@ configure(rootProject) {
       ]}
     }
   }
+
+  // Each validation task should be attached to check but make sure
+  // precommit() as a whole is a dependency on rootProject.check
+  check.dependsOn precommit
 }
{code}

and then run:
{code}
./gradlew clean check -x test -x javadoc  --console=plain 
-Pvalidation.git.failOnModified=false
{code}
everything works fine. 

But when the default javadoc is allowed there are strange file-not-found 
problems; how are these related I've no idea.
{code}
./gradlew clean check -x test --console=plain 
-Pvalidation.git.failOnModified=false
{code}
results in (the exact problem may vary depending on task ordering, it's not 
constant):
{code}
> Task :lucene:facet:javadoc

FAILURE: Build failed with an exception.

* Where:
Script '/home/dweiss/work-ssd/lucene-solr/gradle/render-javadoc.gradle' line: 
136

* What went wrong:
Execution failed for task ':lucene:demo:renderJavadoc'.
> Javadoc generation failed for :lucene:demo,
    Options file at: 
/home/dweiss/work-ssd/lucene-solr/lucene/demo/build/tmp/renderJavadoc/javadoc-options.txt
    Command output at: 
/home/dweiss/work-ssd/lucene-solr/lucene/demo/build/tmp/renderJavadoc/javadoc-output.txt
{code}
The strange thing is that this file is at the location above (exists).


> Incorporate all :precommit tasks into :check
> --------------------------------------------
>
>                 Key: LUCENE-9316
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9316
>             Project: Lucene - Core
>          Issue Type: Sub-task
>            Reporter: Dawid Weiss
>            Assignee: Dawid Weiss
>            Priority: Minor
>




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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to