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

Bug 427501

Summary: [server] GitTagTest.testListOrionServerTags() takes an inordinate amount of time
Product: [ECD] Orion Reporter: Anthony Hunter <ahunter.eclipse>
Component: ServerAssignee: Anthony Hunter <ahunter.eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 5.0   
Target Milestone: 5.0 RC1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Anthony Hunter CLA 2014-02-05 13:54:55 EST
On my development machine, The server JUnit tests (AllServerTasks) take about 17 minutes to run.

Of those 17 minutes, 97% of the time is spent running the Git tests (AllGitTests)

Out of all these tests, one test, GitTagTest.testListOrionServerTags() takes 35% of the total time and over 6 minutes.

No other git test takes such an inordinate amount of time.

testListOrionServerTags() gets all the tags on the Orion server repository and verifies the tags are sorted in order of date. There are 2743 tags and growing with each daily build.

It should be sufficient to verify that a subset of the tags are sorted.
Comment 1 Anthony Hunter CLA 2014-02-05 14:17:02 EST
Fixed with commit:
http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=46932332fdf6ed1d64400eee6f73ae7cddd7a86c

We verify the first 5 tags and the last 5 tags rather than all 2743 tags.

The test now takes 3 seconds rather than over 6 minutes.