Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335979 - jdt.ui test failures on windows 7
Summary: jdt.ui test failures on windows 7
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Releng (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.7 M6   Edit
Assignee: Kim Moir CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 295393
  Show dependency tree
 
Reported: 2011-02-01 10:50 EST by Kim Moir CLA
Modified: 2011-02-07 10:13 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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/