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

Bug 417963

Summary: Duplicate project name problem in tests
Product: [ECD] Orion Reporter: John Arthorne <john.arthorne>
Component: ServerAssignee: John Arthorne <john.arthorne>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 4.0   
Target Milestone: 4.0 RC1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description John Arthorne CLA 2013-09-24 16:23:03 EDT
4.0 M2

We sometimes see a "duplicate project name" problem appearing in our tests.  Here is an example from last night:

Unexpected failure cloning: {"Severity":"Error","Message":"Duplicate project name: invoke0","HttpCode":400,"Code":0}

java.lang.AssertionError: Unexpected failure cloning: {"Severity":"Error","Message":"Duplicate project name: invoke0","HttpCode":400,"Code":0}
at org.eclipse.orion.server.tests.servlets.git.GitTest.createProjectOrLink(GitTest.java:209)
at org.eclipse.orion.server.tests.servlets.git.GitUriTest.testGitUrisForFile(GitUriTest.java:135)
Comment 1 John Arthorne CLA 2013-09-24 16:25:36 EDT
I tracked this down to a problem in a helper method in the test suites. It is computing a unique project name for each test, but returns an incorrect (non-unique) result in some cases.