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

Bug 329691

Summary: Install mozilla-xulrunner190-64bit libraries on hudson slaves 1 and 2
Product: Community Reporter: Kim Moir <kim.moir>
Component: CI-JenkinsAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: grant_gayed
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 295393    

Description Kim Moir CLA 2010-11-08 11:57:40 EST
Could you please install this rpm on the hudson slaves 1 and 2.  

mozilla-xulrunner190-64bit

It looks like only the 32 bit libraries are there now.
Comment 1 Kim Moir CLA 2010-11-08 11:57:55 EST
We need these libraries to run the SWT browser tests
Comment 2 Eclipse Webmaster CLA 2010-11-08 16:54:24 EST
Hmm, well the installed software list sure seems to indicate that the x86_64 versions are installed as well

>rpm -qa | grep xul
mozilla-xulrunner190-1.9.0.6-1.14
mozilla-xulrunner190-32bit-1.9.0.6-1.14

And if I look at what the first package provides it lists files in /usr/lib64.

Perhaps the jobs just need to be told where to look?

-M.
Comment 3 Kim Moir CLA 2010-11-08 17:26:27 EST
I notice that we are running xulrunner 1.9.0.6

http://www.eclipse.org/swt/faq.php#browserlinux

Grant should this be a problem for the SWT browser tests for 3.7 builds?  I notice that there are some other bugs wrt the version of xulrunner on eclipse.org servers, see 295394 for an example.
Comment 4 Grant Gayed CLA 2010-11-09 09:24:29 EST
For swt/eclipse 3.7 any xulrunner version < 2.x should be fine.
Comment 5 Kim Moir CLA 2010-11-09 09:39:44 EST
What if there are multiple versions on the same machine (32bit and 64bit) - how does SWT know which one to use?
Comment 6 Grant Gayed CLA 2010-11-09 10:03:06 EST
The xulrunner auto-detect functionalty doesn't allow us to specify the desired arch, so it does sometimes point us at a xulrunner with the wrong arch.  When this happens the Browser's attempt to glue to it fails, and it falls back to trying whichever xulrunner is pointed at by the ancient MOZILLA_FIVE_HOME property.  This actually often salvages this scenario because the eclipse launcher sniffs around and sets the property at eclipse start-time (if it was not already set), and it gets the arch correct more often since the launcher is recompiled for each arch.

All of this being said, the safest way to ensure that this works is to just point at the xulrunner by setting the org.eclipse.swt.browser.XULRunnerPath environment variable when launching eclipse, as described in the first two paragraphs of http://www.eclipse.org/swt/faq.php#specifyxulrunner .
Comment 7 Kim Moir CLA 2010-11-11 11:13:52 EST
Thanks Grant, adding export MOZILLA_FIVE_HOME=/usr/lib64/xulrunner-1.9.0.6 to my startup script for the tests allowed the SWT browser tests to run.