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

Bug 335979

Summary: jdt.ui test failures on windows 7
Product: [Eclipse Project] Platform Reporter: Kim Moir <kim.moir>
Component: RelengAssignee: Kim Moir <kim.moir>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, markus.kell.r
Version: 3.7   
Target Milestone: 3.7 M6   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 295393    

Description Kim Moir CLA 2011-02-01 10:50:55 EST
I ran a test build yesterday, and noticed test failures on the windows 7 slave machine for jdtui. Do you know why these would occur?  (I don't have access to the machine to look at it other than the logs it produces)

(login with committer id and pw)

https://hudson.eclipse.org/hudson/view/Eclipse%20and%20Equinox/job/JUnit-win/lastCompletedBuild/testReport/ 

(look for jdt ui in the test failure messages)  

For example

https://hudson.eclipse.org/hudson/view/Eclipse%20and%20Equinox/job/JUnit-win/lastCompletedBuild/testReport/org.eclipse.jdt.ui.tests.core.source/GenerateConstructorUsingFieldsTest/test01/


Error Message

Could not write file: C:\Users\HUDSONBUILD\hudson\workspace\JUnit-win\ws\2011-01-31_13-42-02\eclipse-testing\test-eclipse\eclipse\jdt_folder\DummyProject.

Stacktrace

org.eclipse.core.runtime.CoreException: Could not write file: C:\Users\HUDSONBUILD\hudson\workspace\JUnit-win\ws\2011-01-31_13-42-02\eclipse-testing\test-eclipse\eclipse\jdt_folder\DummyProject.
	at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:55)
	at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:50)
	at org.eclipse.core.internal.filesystem.local.LocalFile.checkTargetIsNotWritable(LocalFile.java:84)
	at org.eclipse.core.internal.filesystem.local.LocalFile.mkdir(LocalFile.java:289)
	at org.eclipse.core.internal.localstore.FileSystemResourceManager.write(FileSystemResourceManager.java:1032)
	at org.eclipse.core.internal.localstore.FileSystemResourceManager.internalWrite(FileSystemResourceManager.java:595)
	at org.eclipse.core.internal.resources.Project.writeDescription(Project.java:1463)
	at org.eclipse.core.internal.resources.Project.writeDescription(Project.java:1444)
	at org.eclipse.core.internal.resources.Project.create(Project.java:313)
	at org.eclipse.core.internal.resources.Project.create(Project.java:269)
	at org.eclipse.core.internal.resources.Project.create(Project.java:262)
Comment 1 Dani Megert CLA 2011-02-01 10:54:02 EST
Markus, please check on your Windows 7 machine.
Comment 2 Markus Keller CLA 2011-02-01 14:10:48 EST
I can't reproduce this in my workspace, and I don't really understand how this could happen. The tests fail because java.io.File#mkdirs() didn't create the folder "DummyProject" on the file system (right below the workspace root).

The best "explanation" I can come up with would be that someone else was messing around with the workspace while the tests were running.
Comment 3 Kim Moir CLA 2011-02-01 14:22:46 EST
Thanks for checking Markus.

The machine resides at an ISP so I don't think there are issues with the people messing with the filesystem :-)  We are the only team that uses this machine.    I'll run the tests again.
Comment 4 Dani Megert CLA 2011-02-02 02:22:35 EST
(In reply to comment #2)
> The best "explanation" I can come up with would be that someone else was
> messing around with the workspace while the tests were running.
Kim, which JRE are you using?
Comment 5 Kim Moir CLA 2011-02-02 08:42:06 EST
jdk1.6.0_20
Comment 6 Kim Moir CLA 2011-02-07 10:12:58 EST
They passed on the test build we ran on the weekend.

https://hudson.eclipse.org/hudson/view/Eclipse%20and%20Equinox/job/JUnit-
win/lastCompletedBuild/testReport/