You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Chris M. Hostetter (Jira)" <ji...@apache.org> on 2020/09/29 18:04:00 UTC

[jira] [Commented] (LUCENE-9549) gradle "Reproduce with" line doesn't fully quote all args

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

Chris M. Hostetter commented on LUCENE-9549:
--------------------------------------------

(i have no idea how hard/easy it is to make this change, nor do i think it's particularly hard to work around – mainly just filing this issue now to note the " {{Unknown command-line option '-X'.}} " output since may be confusing to novice gradle users who encounter it.

> gradle "Reproduce with" line doesn't fully  quote all args
> ----------------------------------------------------------
>
>                 Key: LUCENE-9549
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9549
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Chris M. Hostetter
>            Priority: Major
>
> Recent jenkins build include the following outpu...
> {noformat}
> Build Log:
> [...truncated 1849 lines...]
> ERROR: The following test(s) have failed:
>   - org.apache.solr.handler.JsonLoaderTest.testAddBigIntegerValueToTrieField (:solr:core)
>     Test output: /home/jenkins/workspace/Lucene-Solr-master-Linux/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.ha
> ndler.JsonLoaderTest.txt
>     Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.handler.JsonLoaderTest" -Ptests.jvms=6 -Ptests.haltonfailure=false -Ptests.jvmargs=-XX:+UseCompressedOops -XX:+UseSerialGC -Ptests.seed=B65FB0896CCB43ED -Ptests.multiplier=3 -Ptests.badapples=false -Ptests.file.encoding=US-ASCII
> {noformat}
> Attempting to run that command as written produces the following output...
> {noformat}
> FAILURE: Build failed with an exception.
> * What went wrong:
> Problem configuring task :solr:core:test from command line.
> > Unknown command-line option '-X'.
> {noformat}
> The explanation of that error is that {{\-XX:+UseSerialGC}} is suppose to be part of the {{\-Ptests.jvmargs}} param.
> Ideally the gradle Reproduce with line should have looked like...
> {noformat}
>     Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.handler.JsonLoaderTest" -Ptests.jvms=6 -Ptests.haltonfailure=false -Ptests.jvmargs='-XX:+UseCompressedOops -XX:+UseSerialGC' -Ptests.seed=B65FB0896CCB43ED -Ptests.multiplier=3 -Ptests.badapples=false -Ptests.file.encoding=US-ASCII
> {noformat}



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

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