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

LaunchTests.testProcessLaunchWithLongWorkingDirectory fails on Linux since I20240730-1800 #1488

Closed
iloveeclipse opened this issue Jul 31, 2024 · 8 comments · Fixed by #1511 or #1516
Closed
Labels
bug Something isn't working Linux Happens on Linux regression Regression defect

Comments

@iloveeclipse
Copy link
Member

See https://download.eclipse.org/eclipse/downloads/drops4/I20240730-1800/testresults/html/org.eclipse.debug.tests_ep433I-unit-cen64-gtk3-java17_linux.gtk.x86_64_17.html

Most likely regression from #1477

Exception occurred executing command line.

org.eclipse.core.runtime.CoreException: Exception occurred executing command line.
at org.eclipse.debug.core.DebugPlugin.exec(DebugPlugin.java:1015)
at org.eclipse.debug.tests.launching.LaunchTests.startProcessAndAssertOutputContains(LaunchTests.java:155)
at org.eclipse.debug.tests.launching.LaunchTests.testProcessLaunchWithLongWorkingDirectory(LaunchTests.java:150)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
Caused by: java.io.IOException: Cannot run program "java" (in directory "/home/jenkins/agent/workspace/AutomatedTests/ep433I-unit-cen64-gtk3-java17/tmp/junit9299054611657995980/subfolder-with-relativly-long-name/subfolder-with-relativly-long-name/subfolder-with-relativly-long-name/subfolder-with-relativly-long-name/subfolder-with-relativly-long-name/subfolder-with-relativly-long-name/subfolder-with-relativly-long-name/subfolder-with-relativly-long-name"): error=2, No such file or directory
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:1011)
... 3 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
... 6 more
@iloveeclipse iloveeclipse added bug Something isn't working Linux Happens on Linux regression Regression defect labels Jul 31, 2024
@iloveeclipse
Copy link
Member Author

@HannesWell : could you please check?

@HannesWell
Copy link
Member

@HannesWell : could you please check?

I can do it, probably this evening.
But I wonder why it fails only in I-builds?
Maybe it is sufficient to ensure the working-dir really exists, although I expected the JUnit TempFolder to create it.

@akurtakov
Copy link
Member

Is there any progress on this one?

@HannesWell
Copy link
Member

Sorry I forgot about this.
Just created #1511 as an attempt to fix this.

However I wonder how this can fail in I-builds when it passes in verification builds?
Do you have any idea? Can one of the Linux users reproduce it locally? Can Linux also have some kind of path length limit?

@iloveeclipse
Copy link
Member Author

I've tried to make it failing locally but failed. I was using RHEL9.2

@HannesWell
Copy link
Member

Thanks for trying.
Then lets have #1511 and if that doesn't help, I'll disable that test for Linux. It's actually only relevant for Windows any ways.

@HannesWell
Copy link
Member

Lets keep this open until the fix has been verified.

@HannesWell HannesWell reopened this Aug 14, 2024
HannesWell added a commit to HannesWell/eclipse.platform that referenced this issue Aug 17, 2024
The test is relevant for Windows only and somehow does not work under
Linux for other reasons.

Fixes eclipse-platform#1488
@HannesWell
Copy link
Member

Verified that for the latest I-build this issue is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Linux Happens on Linux regression Regression defect
Projects
None yet
3 participants