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

Set JAVA_HOME for system.dependency job #5751

Closed
wants to merge 0 commits into from

Conversation

sophia-guo
Copy link
Contributor

No description provided.

@sophia-guo sophia-guo marked this pull request as draft November 13, 2024 17:03
@sophia-guo sophia-guo force-pushed the test branch 3 times, most recently from cc53f02 to e61fbe0 Compare November 18, 2024 22:12
@sophia-guo
Copy link
Contributor Author

@sophia-guo sophia-guo self-assigned this Nov 19, 2024
@sophia-guo sophia-guo marked this pull request as ready for review November 19, 2024 16:00
@sophia-guo sophia-guo changed the title test Set JAVA_HOME for system.dependency job Nov 19, 2024
@llxia
Copy link
Contributor

llxia commented Nov 19, 2024

The job failure Cannot run program "java" is not due to #5760

BUILD FAILED
/home/jenkins/workspace/systemtest.getDependency/aqa-systemtest/openjdk.test.mauve/build.xml:381: Execute failed: java.io.IOException: Cannot run program "java" (in directory "/tmp/mauve"): 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.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
	at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:424)
	at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:438)
	at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:660)
	at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:699)
	at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:527)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
	at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
	at org.apache.tools.ant.Task.perform(Task.java:350)
	at org.apache.tools.ant.Target.execute(Target.java:449)
	at org.apache.tools.ant.Target.performTasks(Target.java:470)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1374)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
	at org.apache.tools.ant.Main.runBuild(Main.java:818)
	at org.apache.tools.ant.Main.startAnt(Main.java:223)
	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
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)
	... 24 more

Total time: 0 seconds

@sophia-guo
Copy link
Contributor Author

sophia-guo commented Nov 19, 2024

Yeah, didn't notice that.

That should be fixed by change https://github.com/adoptium/aqa-systemtest/blob/901f940a97d4a21fa740189e03d5518799c60c14/openjdk.test.mauve/build.xml#L381

<exec dir="${openjdk_test_mauve_work_dir}" executable="java">
 -->  <exec dir="${openjdk_test_mauve_work_dir}" executable="${java_bindir}/java" > 

I searched the https://github.com/adoptium/aqa-systemtest and https://github.com/adoptium/STF this is the only case needed to update. Will try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants