Bug 492763 - testing fails to run on cent64 machine
Summary: testing fails to run on cent64 machine
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Releng (show other bugs)
Version: 4.6   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: 4.6 RC1   Edit
Assignee: David Williams CLA
QA Contact:
URL:
Whiteboard: routine releng
Keywords:
Depends on:
Blocks: 492580
  Show dependency tree
 
Reported: 2016-04-30 11:03 EDT by David Williams CLA
Modified: 2016-04-30 21:30 EDT (History)
0 users

See Also:


Attachments
One log showing exceptions leading to failure. (50.26 KB, text/x-log)
2016-04-30 11:56 EDT, David Williams CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Williams CLA 2016-04-30 11:03:19 EDT
This may be related to the fix for bug 492580. 

The tests start to run on cent64, that is, they get "setup" to run, but then fail since a file can not be deleted. 

From the log, it appears the "running instance" of Eclipse runs an ant file via antrunner application, and that ant file (eventually) tries to delete the location of the running instance of Eclipse. 

A. If true, not sure why this would not affect other platforms in the same way? 

B. I am not sure if it is trying to delete the "wrong" location (and another location needs to be deleted) or, if it is trying to delete that location because the scripts do not know that step has already taken place, and there is no need to repeat it.
Comment 1 David Williams CLA 2016-04-30 11:56:09 EDT
Created attachment 261390 [details]
One log showing exceptions leading to failure.

The main console log for the tests ends with 

platform-tar.gz:
   [delete] Deleting directory /opt/public/hipp/homes/genie.platform/workspace/ep46I-unit-cen64/workarea/I20160429-2300/eclipse-testing/platformLocation/eclipse

BUILD FAILED
/opt/public/hipp/homes/genie.platform/workspace/ep46I-unit-cen64/workarea/I20160429-2300/eclipse-testing/test.xml:2006: The following error occurred while executing this line:
/opt/public/hipp/homes/genie.platform/workspace/ep46I-unit-cen64/workarea/I20160429-2300/eclipse-testing/test.xml:2084: The following error occurred while executing this line:
/opt/public/hipp/homes/genie.platform/workspace/ep46I-unit-cen64/workarea/I20160429-2300/eclipse-testing/test.xml:2185: The following error occurred while executing this line:
/opt/public/hipp/homes/genie.platform/workspace/ep46I-unit-cen64/workarea/I20160429-2300/eclipse-testing/test.xml:1654: The following error occurred while executing this line:
/opt/public/hipp/homes/genie.platform/workspace/ep46I-unit-cen64/workarea/I20160429-2300/eclipse-testing/test.xml:1365: The following error occurred while executing this line:
/opt/public/hipp/homes/genie.platform/workspace/ep46I-unit-cen64/workarea/I20160429-2300/eclipse-testing/test.xml:1385: The following error occurred while executing this line:
/opt/public/hipp/homes/genie.platform/workspace/ep46I-unit-cen64/workarea/I20160429-2300/eclipse-testing/test.xml:67: The following error occurred while executing this line:
/opt/public/hipp/homes/genie.platform/workspace/ep46I-unit-cen64/workarea/I20160429-2300/eclipse-testing/test.xml:394: The following error occurred while executing this line:
/opt/public/hipp/homes/genie.platform/workspace/ep46I-unit-cen64/workarea/I20160429-2300/eclipse-testing/test.xml:280: The following error occurred while executing this line:
/opt/public/hipp/homes/genie.platform/workspace/ep46I-unit-cen64/workarea/I20160429-2300/eclipse-testing/test.xml:329: Unable to delete directory /opt/public/hipp/homes/genie.platform/workspace/ep46I-unit-cen64/workarea/I20160429-2300/eclipse-testing/platformLocation/eclipse/configuration/org.eclipse.equinox.app/.manager

Total time: 25 seconds
An error has occurred. See the log file
/opt/public/hipp/homes/genie.platform/workspace/ep46I-unit-cen64/workarea/I20160429-2300/eclipse-testing/workspace/.metadata/.log.


Attached is that .metadata/.log file refered to.
Comment 2 David Williams CLA 2016-04-30 19:41:02 EDT
From what I can tell, the easiest way to fix this is to add a condition at infers if the binary base platform has been installed already or not. And, if so, does not try to re-install it (with its associated "delete"). 

http://git.eclipse.org/c/platform/eclipse.platform.releng.aggregator.git/commit/?id=a144d7cd050eb71f1cd13a10259c5cf59e68fdba

In that commit, I also corrected some comments which were confusing. 

In addition, for a different, potential future issue on the Mac, I changed a few places of "Eclipse.app" to "eclipse.app" (the current name of our Mac App -- it was, previously "Eclipse.app"). I opened bug 492771 for future improvements in this area. On current system, I do not think it matters, since the Mac must have the default file system that is "case-preserving, but case-insensitive".