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

Mikhail Khludnev commented on LUCENE-7534:
------------------------------------------

[~dawid.weiss], is there a way to shorten slave command line and/or classpath? 
Can't it use jar folders, or switch paths to relative ones? 
{quote}
   [junit4] Caused by: java.io.IOException: CreateProcess error=206, The 
filename or extension is too long
   [junit4]     at java.lang.ProcessImpl.create(Native Method)
   [junit4]     at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
   [junit4]     at java.lang.ProcessImpl.start(ProcessImpl.java:137)
   [junit4]     at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
   [junit4]     ... 13 more
   [junit4] ERROR: JVM J2 ended with an exception, command line: "C:\Program 
Files\Java\jdk1.8.0_102\jre\bin\java.exe" -ea -esa -Dtests.prefix=tests 
-Dtests.seed=5AA2B74D3487DDFB -Xmx512M -Dtests.iters= -Dtests.verbose=false 
-Dtests.infostream=false -Dtests.codec=random -Dtests.postingsformat=random 
-Dtests.docvaluesformat=random -Dtests.locale=random -Dtests.timezone=random 
-Dtests.directory=random -Dtests.linedocsfile=europarl.lines.txt.gz 
-Dtests.luceneMatchVersion=6.3.0 -Dtests.cleanthreads=perClass 
-Djava.util.logging.config.file=C:\cygwin64\tmp\smoke_lucene_6.3.0_a66a44513ee8191e25b477372094bfa846450316_4\unpack\solr-6.3.0\lucene\tools\junit4\logging.properties
 -Dtests.nightly=false -Dtests.weekly=false -Dtests.monster=false 
-Dtests.slow=false -Dtests.asserts=true -Dtests.multiplier=1 -DtempDir=./temp 
-Djava.io.tmpdir=./temp 
-Djunit4.tempDir=C:\cygwin64\tmp\smoke_lucene_6.3.0_a66a44513ee8191e25b477372094bfa846450316_4\unpack\solr-6.3.0\solr\build\contrib\solr-map-reduce\test\temp
 
-Dcommon.dir=C:\cygwin64\tmp\smoke_lucene_6.3.0_a66a44513ee8191e25b477372094bfa846450316_4\unpack\solr-6.3.0\lucene
 
-Dclover.db.dir=C:\cygwin64\tmp\smoke_lucene_6.3.0_a66a44513ee8191e25b477372094bfa846450316_4\unpack\solr-6.3.0\lucene\build\clover\db
 
-Djava.security.policy=C:\cygwin64\tmp\smoke_lucene_6.3.0_a66a44513ee8191e25b477372094bfa846450316_4\unpack\solr-6.3.0\lucene\tools\junit4\solr-tests.policy
 -Dtests.LUCENE_VERSION=6.3.0 -Djetty.testMode=1 -Djetty.insecurerandom=1 
-Dsolr.directoryFactory=org.apache.solr.core.MockDirectoryFactory 
-Djava.awt.headless=true -Djdk.map.althashing.threshold=0 
-Djunit4.childvm.cwd=C:\cygwin64\tmp\smoke_lucene_6.3.0_a66a44513ee8191e25b477372094bfa846450316_4\unpack\solr-6.3.0\solr\build\contrib\solr-map-reduce\test\J2
 -Djunit4.childvm.id=2 -Djunit4.childvm.count=3 -Dtests.leaveTemporary=false 
-Dtests.filterstacks=true -Dtests.disableHdfs=true 
-Djava.security.manager=org.apache.lucene.util.TestSecurityManager 
-Dfile.encoding=ISO-8859-1 -classpath 
"C:\cygwin64\tmp\smoke_lucene_6.3.0_a66a44513ee8191e25b477372094bfa846450316_4\unpack\solr-6.3.0\solr\build\contrib\solr-map-reduce\classes\test;C:\cygwin64\tmp\smoke_lucene_6.3.0_a66a44513ee8191e25b477372094bfa846450316_4\unpack\solr-6.3.0\solr\build\solr-test-framework\classes\java;C:\cygwin64\tmp\smoke_lucene_6.3.0_a66a44513ee8191e25b477372094bfa846450316_4\unpack\solr-6.3.0\solr\test-framework\lib\junit4-ant-2.4.0.jar;C:\cygwin64\tmp\smoke_lucene_6.3.0_a66a44513ee8191e25b477372094bfa846450316_4\unpack\solr-6.3.0\solr\contrib\map-reduce\src\test-files;C:\cygwin64\tmp\smoke_lucene_6.3.0_a66a44513ee8191e25b477372094bfa846450316_4\unpack\solr-6.3.0\lucene\build\test-framework\classes\java;C:\cygwin64\tmp\smoke_lucene_6.3.0_a66a44513ee8191e25b477372094bfa846450316_4\unpack\solr-6.3.0\lucene\build\codecs\classes\java;C:\cygwin64\tmp\smoke_lucene_6.3.0_a66a44513ee8191e25b477372094bfa846450316_4\unpack\solr-6.3.0\solr\build\solr-solrj\classes\java;C:\cygwin64..
{qoute}

> smokeTestRelease.py on cygwin [Errno 2] No such file or directory: 
> -------------------------------------------------------------------
>
>                 Key: LUCENE-7534
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7534
>             Project: Lucene - Core
>          Issue Type: Bug
>         Environment: Windows, Cygwin, Python
>            Reporter: Mikhail Khludnev
>         Attachments: LUCENE-7534.patch, LUCENE-7534.patch, LUCENE-7534.patch, 
> LUCENE-7534.patch, fail due to long classpath test.log
>
>
> {quote}
> $ python3 -u dev-tools/scripts/smokeTestRelease.py 
> https://dist.apache.org/repos/dist/dev/lucene/lucene-solr-6.3.0-RC2-rev1fe1a54db32b8c27bfae81887cd4d75242090613/
> Revision: 1fe1a54db32b8c27bfae81887cd4d75242090613
> Java 1.8 JAVA_HOME=C:\Program Files\Java\jdk1.8.0_102
> Traceback (most recent call last):
>   File "dev-tools/scripts/smokeTestRelease.py", line 1440, in <module>
>     main()
>   File "dev-tools/scripts/smokeTestRelease.py", line 1377, in main
>     c = parse_config()
>   File "dev-tools/scripts/smokeTestRelease.py", line 1239, in parse_config
>     c.java = make_java_config(parser, c.test_java8)
>   File "dev-tools/scripts/smokeTestRelease.py", line 1193, in make_java_config
>     run_java8 = _make_runner(java8_home, '1.8')
>   File "dev-tools/scripts/smokeTestRelease.py", line 1179, in _make_runner
>     java_home = subprocess.check_output('cygpath -u "%s"' % 
> java_home).read().decode('utf-8').strip()
>   File "/usr/lib/python3.4/subprocess.py", line 607, in check_output
>     with Popen(*popenargs, stdout=PIPE, **kwargs) as process:
>   File "/usr/lib/python3.4/subprocess.py", line 859, in __init__
>     restore_signals, start_new_session)
>   File "/usr/lib/python3.4/subprocess.py", line 1457, in _execute_child
>     raise child_exception_type(errno_num, err_msg)
> FileNotFoundError: [Errno 2] No such file or directory: 'cygpath -u 
> "C:\\Program Files\\Java\\jdk1.8.0_102"'
> {quote}
> giving [the doc|https://docs.python.org/3.4/library/subprocess.html] path and 
> args should be either supplied as array of terms or supplied as {{shell=True}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to