Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[win] tests: 'The directory name is invalid' since I20240710-0530 #1333

Closed
jukzi opened this issue Jul 11, 2024 · 4 comments · Fixed by eclipse-platform/eclipse.platform#1477
Labels
bug Something isn't working regression Regression defect test Test case failure

Comments

@jukzi
Copy link
Contributor

jukzi commented Jul 11, 2024

https://download.eclipse.org/eclipse/downloads/drops4/I20240710-0530/testresults/html/org.eclipse.pde.junit.runtime.tests_ep433I-unit-win32-java17_win32.win32.x86_64_17.html
https://download.eclipse.org/eclipse/downloads/drops4/I20240710-1800/testresults/html/org.eclipse.pde.junit.runtime.tests_ep433I-unit-win32-java17_win32.win32.x86_64_17.html

	Exception occurred executing command line.

org.eclipse.core.runtime.CoreException: Exception occurred executing command line.
at org.eclipse.debug.core.DebugPlugin.exec(DebugPlugin.java:1013)
at org.eclipse.jdt.launching.AbstractVMRunner.exec(AbstractVMRunner.java:116)
at org.eclipse.jdt.internal.launching.StandardVMRunner.run(StandardVMRunner.java:538)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.launch(JUnitLaunchConfigurationDelegate.java:286)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:805)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:716)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1054)
at org.eclipse.debug.ui.DebugUITools.buildAndLaunch(DebugUITools.java:1030)
at org.eclipse.pde.junit.runtime.tests.TestExecutionUtil.launchAndWaitForTermination(TestExecutionUtil.java:126)
at org.eclipse.pde.junit.runtime.tests.TestExecutionUtil.runTest(TestExecutionUtil.java:81)
at org.eclipse.pde.junit.runtime.tests.JUnitExecutionTest.executeMethod(JUnitExecutionTest.java:129)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.eclipse.pde.ui.tests.runtime.TestUtils$1.evaluate(TestUtils.java:267)
Caused by: java.io.IOException: Cannot run program "C:\Program Files\Eclipse Adoptium\jdk-17.0.5.8-hotspot\bin\javaw.exe" (in directory "C:\Users\genie.releng\releng\workspace\AutomatedTests\ep433I-unit-win32-java17\workarea\I20240710-0530\eclipse-testing\test-eclipse\eclipse\plugins\org.eclipse.pde.junit.runtime.tests_3.7.300.v20240519-1449\test-bundles\verification.tests.junit4.platform.fragment"): CreateProcess error=267, The directory name is invalid
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
at java.base/java.lang.Runtime.exec(Runtime.java:594)
at org.eclipse.debug.core.DebugPlugin.exec(DebugPlugin.java:1009)
... 12 more
Caused by: java.io.IOException: CreateProcess error=267, The directory name is invalid
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:499)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:158)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
... 15 more
@jukzi jukzi added bug Something isn't working test Test case failure regression Regression defect labels Jul 11, 2024
@iloveeclipse
Copy link
Member

I assume this cold be regression from ece4417.
@HannesWell : could you please check?

@HannesWell
Copy link
Member

HannesWell commented Jul 11, 2024

I assume this cold be regression from ece4417.
@HannesWell : could you please check?

Since the root exception says that the directory name is invalid I think it is more likely a regression from eclipse-cbi/jiro#379 since the paths are now a little bit longer.

I'll investigate it in more detail tomorrow.

@HannesWell
Copy link
Member

Caused by: java.io.IOException: Cannot run program "C:\Program Files\Eclipse Adoptium\jdk-17.0.5.8-hotspot\bin\javaw.exe" (in directory "C:\Users\genie.releng\releng\workspace\AutomatedTests\ep433I-unit-win32-java17\workarea\I20240710-0530\eclipse-testing\test-eclipse\eclipse\plugins\org.eclipse.pde.junit.runtime.tests_3.7.300.v20240519-1449\test-bundles\verification.tests.junit4.platform.fragment"): CreateProcess error=267, The directory name is invalid

This path has 264 characters and is therefore longer than the 260 characters permitted by default on Windows.
I have now created an issue to ask the Infra-team to disable that limit, which I think is the most sustainable and also the simplest solution:
https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/4832

@HannesWell
Copy link
Member

HannesWell commented Jul 31, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression Regression defect test Test case failure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants