Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 570081

Summary: Unable to run UI tests on apple-silicon build machine
Product: Community Reporter: Lakshmi P Shanmugam <lshanmug>
Component: CI-JenkinsAssignee: CI Admin Inbox <ci.admin-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: denis.roy, jkemnade, mikael.barbero, sravankumarl, webmaster
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Bug Depends on:    
Bug Blocks: 565690    

Description Lakshmi P Shanmugam CLA 2021-01-05 06:32:54 EST
We are trying to run the SWT UI tests on the apple-silicon build machine, but it's unable to run. Running JDT-core tests works fine.

Job we used: https://ci.eclipse.org/releng/view/BigSur%20tests/job/ep-smoke-test-mac-arm64

Exception logged on running ui test:

https://ci.eclipse.org/releng/view/BigSur%20tests/job/ep-smoke-test-mac-arm64/6/artifact/workarea/I20210104-1800/eclipse-testing/results/ep-smoke-test-mac-arm64_macosx.cocoa.x86_64_11/org.eclipse.ui.tests.UiTestSuite.txt

java.lang.NullPointerException
	at org.eclipse.swt.graphics.Device.getScreenDPI(Device.java:473)
	at org.eclipse.swt.graphics.Device.getDPI(Device.java:387)
	at org.eclipse.swt.graphics.Device.init(Device.java:604)
	at org.eclipse.swt.widgets.Display.init(Display.java:2292)
	at org.eclipse.swt.graphics.Device.<init>(Device.java:131)
	at org.eclipse.swt.widgets.Display.<init>(Display.java:734)
	at org.eclipse.swt.widgets.Display.<init>(Display.java:725)
	at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:742)
	at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:168)
Comment 1 Lakshmi P Shanmugam CLA 2021-01-05 06:36:20 EST
It'll be very useful if we can run the UI tests the machine.
Comment 2 Mikaël Barbero CLA 2021-01-05 07:29:02 EST
The machine is headless so it's currently not possible to run UI test. 

We may be able to change that, but we won't have the cycles to do so before Feb.
Comment 3 Mikaël Barbero CLA 2021-02-15 05:11:03 EST
I'll be looking into this one this week. You may see the agent flipping on and off on some occasions.
Comment 4 Mikaël Barbero CLA 2021-02-18 11:11:33 EST
I've been swamped with other topics and won't manage to make it work by tomorrow EOB. Will try again next week. Thanks for your patience.
Comment 5 Lakshmi P Shanmugam CLA 2021-02-19 03:52:35 EST
(In reply to Mikaël Barbero from comment #4)
> I've been swamped with other topics and won't manage to make it work by
> tomorrow EOB. Will try again next week. Thanks for your patience.

Thanks Mikael!
Comment 6 Mikaël Barbero CLA 2021-02-24 09:54:59 EST
You should be all set. Please give it a try.
Comment 7 Lakshmi P Shanmugam CLA 2021-02-24 11:09:06 EST
(In reply to Mikaël Barbero from comment #6)
> You should be all set. Please give it a try.

Thanks Mikael, I ran the test job and it was successful.

To run SWT arm64 port, we need a arm64 VM. Is it possible to install Java 11 arm64 on the machine from https://www.azul.com/downloads/zulu-community/?package=jdk ?
Comment 8 Mikaël Barbero CLA 2021-02-24 12:03:36 EST
(In reply to Lakshmi P Shanmugam from comment #7)
> (In reply to Mikaël Barbero from comment #6)
> > You should be all set. Please give it a try.
> 
> Thanks Mikael, I ran the test job and it was successful.

Awesome. Thanks for the quick feedbacks.

> To run SWT arm64 port, we need a arm64 VM. Is it possible to install Java 11
> arm64 on the machine from
> https://www.azul.com/downloads/zulu-community/?package=jdk ?

Done.
Comment 9 Lakshmi P Shanmugam CLA 2021-02-25 10:03:59 EST
(In reply to Mikaël Barbero from comment #8)
> (In reply to Lakshmi P Shanmugam from comment #7)
> > (In reply to Mikaël Barbero from comment #6)
> > > You should be all set. Please give it a try.
> > 
> > Thanks Mikael, I ran the test job and it was successful.
> 
> Awesome. Thanks for the quick feedbacks.
> 
> > To run SWT arm64 port, we need a arm64 VM. Is it possible to install Java 11
> > arm64 on the machine from
> > https://www.azul.com/downloads/zulu-community/?package=jdk ?
> 
> Done.

Thanks Mikael. I was able run tests for SWT arm64 too!
Comment 10 Mikaël Barbero CLA 2021-03-01 03:21:43 EST
Thanks for your patience. Closing.