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

[jira] [Resolved] (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:all-tabpanel ]

Dawid Weiss resolved LUCENE-9549.
---------------------------------
    Fix Version/s: master (9.0)
       Resolution: Fixed

I added command line quoting via ANT's utility method. Should work in 99% of cases. The remaining 1% accounts for escaping rules of special characters between platforms and shells - I don't think there is a way to do it properly to cover all the cases.

> 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
>            Assignee: Dawid Weiss
>            Priority: Major
>             Fix For: master (9.0)
>
>
> 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