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

Bug 492763

Summary: testing fails to run on cent64 machine
Product: [Eclipse Project] Platform Reporter: David Williams <david_williams>
Component: RelengAssignee: David Williams <david_williams>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: P3    
Version: 4.6   
Target Milestone: 4.6 RC1   
Hardware: PC   
OS: Linux   
Whiteboard: routine releng
Bug Depends on:    
Bug Blocks: 492580    
Attachments:
Description Flags
One log showing exceptions leading to failure. none

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".