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

Move I-build Windows tests to Java 17 #756

Closed
akurtakov opened this issue Dec 11, 2022 · 13 comments · Fixed by #805 or #808
Closed

Move I-build Windows tests to Java 17 #756

akurtakov opened this issue Dec 11, 2022 · 13 comments · Fixed by #805 or #808

Comments

@akurtakov
Copy link
Member

Java 17 is used to run tests for Mac (only this version) and on Linux (together with other versions) . As windows resources are limited and Java 17 is the latest LTS JVM and the fact that all EPPs are shipped with Java 17 it makes sense for Windows tests to be run with Java 17 and not Java 11.

@akurtakov
Copy link
Member Author

@sravanlakkimsetti Would you please outline what I have to do to achieve that?

@akurtakov
Copy link
Member Author

Related to #755

@sravanlakkimsetti
Copy link
Member

Here are the steps:

  1. Raise a request with foundation to install java 17(temurin would suffice) on windows test machine
  2. Update java links in the test job https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/blob/master/JenkinsJobs/AutomatedTests/I_unit_win32_java11.groovy
  3. Since test results publishing scripts parse the name of the job to list java version, you'll need to rename the test job to java 17 and update publishing scripts. The following scripts will need an update

@akurtakov
Copy link
Member Author

@akurtakov
Copy link
Member Author

Helpdesk closed with

Temurin JDK 17 has been installed to C:\Program Files\Eclipse Adoptium\jdk-17.0.5.8-hotspot.

@akurtakov
Copy link
Member Author

@iloveeclipse
Copy link
Member

iloveeclipse commented Jan 12, 2023

I wonder if the directory where Java 11 was installed also had a space?

See -Djvm="C:\\Program Files\\Eclipse Adoptium\\jdk-17.0.5.8-hotspot\\bin\\java.exe" below and error Files\Eclipse was unexpected at this time.

C:\Users\genie.releng\workspace\AutomatedTests\ep427I-unit-win32-java17>ant -f getEBuilder.xml -Djava.io.tmpdir=C:\Users\genie.releng\workspace\AutomatedTests\ep427I-unit-win32-java17\tmp -Djvm="C:\\Program Files\\Eclipse Adoptium\\jdk-17.0.5.8-hotspot\\bin\\java.exe" -DbuildId=I20230112-0730  -DeclipseStream= "4.27.0" -DEBUILDER_HASH= "a9eb30da24c05b9a9eb1077ba3c199b63c559cdc"  -DdownloadURL="https://download.eclipse.org/eclipse/downloads/drops4/I20230112-0730" -Dargs=all -Dosgi.os=win32 -Dosgi.ws=win32 -Dosgi.arch=x86_64 -DtestSuite=all 

Files\Eclipse was unexpected at this time.

@iloveeclipse
Copy link
Member

I wonder if the directory where Java 11 was installed also had a space?

Nope: see https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/pull/805/files
-Djvm="C:\\\\openjdk\\\\jdk-11\\\\bin\\\\java.exe"

@akurtakov
Copy link
Member Author

@fredg02 can we get jdk-17 installed in a directory without space?

@iloveeclipse
Copy link
Member

iloveeclipse commented Jan 12, 2023

@akurtakov : why do we need -Djvm argument at all? Can you please try without? AFAIK ant can find Java in the JAVA_HOME, if it is defined properly. Or is this for some SDK tool inside started JVM?

@sravanlakkimsetti
Copy link
Member

@sravanlakkimsetti Can you help with this one https://ci.eclipse.org/releng/job/AutomatedTests/job/ep427I-unit-win32-java17/1/console ?

When we have spaces in the paths we will need to use 8dot3 notation on windows. you get the name in 8dot3 notation using dir /x.

Now the problem is fixed but I found another issue here. Ant installed on the test machine is quite old. because of that I had to keep JAVA_HOME as java 11 and use -Djvm with java 17

@akurtakov
Copy link
Member Author

Would you please request update of Ant?

@sravanlakkimsetti
Copy link
Member

Would you please request update of Ant?

raised Upgrade ant installed on https://ci.eclipse.org/releng/computer/qa6xd-win11/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants