Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321066 - fix Bugzilla tests for 3.5
Summary: fix Bugzilla tests for 3.5
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.5   Edit
Assignee: Frank Becker CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 318271
  Show dependency tree
 
Reported: 2010-07-27 16:28 EDT by Steffen Pingel CLA
Modified: 2011-02-21 14:18 EST (History)
2 users (show)

See Also:


Attachments
mylyn/context/zip (8.92 KB, application/octet-stream)
2010-10-03 14:33 EDT, Frank Becker CLA
no flags Details
patchV1 (8.62 KB, patch)
2010-10-22 15:27 EDT, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (8.65 KB, application/octet-stream)
2010-10-22 15:27 EDT, Frank Becker CLA
no flags Details
patch V2 (8.90 KB, patch)
2011-01-26 16:02 EST, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (13.45 KB, application/octet-stream)
2011-01-26 16:02 EST, Frank Becker CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Pingel CLA 2010-07-27 16:28:53 EDT
Fix failing Bugzilla tests.
Comment 1 Steffen Pingel CLA 2010-07-27 16:30:11 EDT
The failure below occurs occasionally with different versions of Bugzilla.

BugzillaRepositoryConnectorTest.testSynchChangedReports() fails spuriously:

http://mylyn.eclipse.org/hudson/job/mylyn-test-e3.6/30/testReport/junit/org.eclipse.mylyn.bugzilla.tests/BugzillaRepositoryConnectorTest/testSynchChangedReports_3_2_7/

org.eclipse.mylyn.bugzilla.tests.BugzillaRepositoryConnectorTest.testSynchChangedReports@3.2.7 (from BugzillaRepositoryConnectorTest)

Failing for the past 1 build (Since #30 )
Took 26 sec.
add description
Error Message

Expected: 5313, 5314, got: [5314: summary]
Stacktrace

junit.framework.AssertionFailedError: Expected: 5313, 5314, got: [5314: summary]
	at org.eclipse.mylyn.bugzilla.tests.BugzillaRepositoryConnectorTest.testSynchChangedReports(BugzillaRepositoryConnectorTest.java:897)
	at org.eclipse.mylyn.commons.tests.support.ManagedTestSuite.run(ManagedTestSuite.java:127)
Comment 2 Frank Becker CLA 2010-10-03 14:33:14 EDT
Steffen,

actual there are no failing tests. 

Should we close this bug?
Comment 3 Frank Becker CLA 2010-10-03 14:33:16 EDT
Created attachment 180119 [details]
mylyn/context/zip
Comment 4 Steffen Pingel CLA 2010-10-05 02:15:50 EDT
The test was failing sporadicaly. I was wondering if there is something we can do to make ot more robust.
Comment 5 Steffen Pingel CLA 2010-10-18 23:12:29 EDT
java.lang.NullPointerException
	at org.eclipse.mylyn.bugzilla.tests.BugzillaRepositoryConnectorTest.testMultiRetrievalFailure(BugzillaRepositoryConnectorTest.java:94)
	at org.eclipse.mylyn.commons.tests.support.ManagedTestSuite.run(ManagedTestSuite.java:127)
Comment 6 Frank Becker CLA 2010-10-21 05:50:47 EDT
Steffen,
Rob,

I now set up an private set of Bugzilla repositories under ...dyndsn.org and hope that I can finish this over the weekend (need to set up the 3.6 specific repositories).

I now use 2.22.7, 3.0.11 and the updated 3.2.8, 3.4.8, 3.6.2 and 4.1 repositories.

I create scripts to
* setup of my local Bugzilla installation
* restore the database
* update to new versions

Should we update the mylyn.eclipse.org Bugzilla installation ?

Please can you tell me how I can transfer the clean_bugs_*.sql files from my local installation to mylyn.eclipse.org.

What is the password for the guest account?

BTW the 349 tests (on 3.6 specific) need 639,891 to 662,546 seconds on my environment.
Comment 7 Frank Becker CLA 2010-10-22 15:27:48 EDT
Created attachment 181545 [details]
patchV1

This patch is needed if we update mylyn.eclipse.org to match my local environment.
Comment 8 Frank Becker CLA 2010-10-22 15:27:51 EDT
Created attachment 181546 [details]
mylyn/context/zip
Comment 9 Steffen Pingel CLA 2010-10-22 18:30:24 EDT
Great that you were able to set this up. Could we in theory run the scripts to provision the databases and bugzilla instances on mylyn.eclipse.org to bring it up to the same level?
Comment 10 Frank Becker CLA 2010-10-23 14:01:41 EDT
(In reply to comment #9)
> Great that you were able to set this up. Could we in theory run the scripts to
> provision the databases and bugzilla instances on mylyn.eclipse.org to bring it
> up to the same level?

Yes, I must change some temp files like /Users/frank/temp and remove the definition of an Symbolic link to work with my local Webserver. 

But I think I better create an update script and only rename some bugzilla directories because I had some problem installing versions < 3.4 (cpan modules are installed global). To get all versions work I must delete some files in /Library/Perl/5.10.0.

Can you please email me the password for the guest account so that I can finish the database setup.
Comment 11 Frank Becker CLA 2010-10-27 17:08:13 EDT
Commit of patchV1 after update the mylyn.eclipse.org bugzilla installations
Comment 12 Frank Becker CLA 2010-10-28 15:14:38 EDT
I run AllBugzillTests and found no Errors / Failures but the 370 tests need 1.839,065 seconds and not 688,828 seconds using my own environment.
Comment 13 Steffen Pingel CLA 2011-01-25 23:28:56 EST
It looks like some tests are failing on older versions of Bugzilla.

Build Results at https://hudson.eclipse.org/hudson/job/mylyn-integration-e3.7/15/ .

= Tests Results =
Duration: 01:36
Failed Tests:
 org.eclipse.mylyn.bugzilla.tests.ui.BugzillaTaskHyperlinkDetectorTest.testAttachmentOld(BugzillaTaskHyperlinkDetectorTest.java:0)
 org.eclipse.mylyn.bugzilla.tests.ui.BugzillaTaskHyperlinkDetectorTest.testAttachmentNew(BugzillaTaskHyperlinkDetectorTest.java:0)
 org.eclipse.mylyn.bugzilla.tests.ui.BugzillaHyperlinkDetectorTest.testFindHyperlinksAttachment(BugzillaHyperlinkDetectorTest.java:0)
 org.eclipse.mylyn.bugzilla.tests.BugzillaRepositoryConnectorTest.testSynchChangedReports(BugzillaRepositoryConnectorTest.java:0)
 org.eclipse.mylyn.bugzilla.tests.BugzillaAttachmentHandlerTest.testAttachToExistingReport(BugzillaAttachmentHandlerTest.java:0)
 org.eclipse.mylyn.bugzilla.tests.BugzillaRepositoryConnectorTest.testSynchronize(BugzillaRepositoryConnectorTest.java:0)
 org.eclipse.mylyn.bugzilla.tests.BugzillaAttachmentHandlerTest.testAttachToExistingReport(BugzillaAttachmentHandlerTest.java:0)
 org.eclipse.mylyn.bugzilla.tests.BugzillaAttachmentHandlerTest.testUpdateAttachmentFlags(BugzillaAttachmentHandlerTest.java:0)
 org.eclipse.mylyn.bugzilla.tests.BugzillaAttachmentHandlerTest.testAttachToExistingReport(BugzillaAttachmentHandlerTest.java:0)
 org.eclipse.mylyn.bugzilla.tests.BugzillaAttachmentHandlerTest.testAttachToExistingReport(BugzillaAttachmentHandlerTest.java:0)
 org.eclipse.mylyn.bugzilla.tests.BugzillaRepositoryConnectorTest.testSynchChangedReports(BugzillaRepositoryConnectorTest.java:0)
 org.eclipse.mylyn.bugzilla.tests.BugzillaAttachmentHandlerTest.testAttachToExistingReport(BugzillaAttachmentHandlerTest.java:0)
Comment 14 Frank Becker CLA 2011-01-26 16:02:51 EST
Created attachment 187687 [details]
patch V2

committed patch

bug# 199283 was the source for the failing tests
Comment 15 Frank Becker CLA 2011-01-26 16:02:54 EST
Created attachment 187688 [details]
mylyn/context/zip
Comment 16 Steffen Pingel CLA 2011-01-26 19:36:52 EST
That fixed most failures. Thanks! The 2 tests below were still failing in https://hudson.eclipse.org/hudson/job/mylyn-integration-e4.1/lastCompletedBuild/testReport/org.eclipse.mylyn.bugzilla.tests/.

Bugzilla 3.6.3?

junit.framework.AssertionFailedError: expected:<2> but was:<3>
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.failNotEquals(Assert.java:283)
	at junit.framework.Assert.assertEquals(Assert.java:64)
	at junit.framework.Assert.assertEquals(Assert.java:195)
	at junit.framework.Assert.assertEquals(Assert.java:201)
	at org.eclipse.mylyn.bugzilla.tests.BugzillaAttachmentHandlerTest.testUpdateAttachmentFlags(BugzillaAttachmentHandlerTest.java:125)

Bugzilla 4.1?

junit.framework.AssertionFailedError: null
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.assertTrue(Assert.java:20)
	at junit.framework.Assert.assertTrue(Assert.java:27)
	at org.eclipse.mylyn.bugzilla.tests.BugzillaRepositoryConnectorTest.testSynchChangedReports(BugzillaRepositoryConnectorTest.java:1096)
Comment 17 Frank Becker CLA 2011-01-28 16:51:26 EST
(In reply to comment #16)
> Bugzilla 3.6.3?
> 
> junit.framework.AssertionFailedError: expected:<2> but was:<3>
> at junit.framework.Assert.fail(Assert.java:47)
> at junit.framework.Assert.failNotEquals(Assert.java:283)
> at junit.framework.Assert.assertEquals(Assert.java:64)
> at junit.framework.Assert.assertEquals(Assert.java:195)
> at junit.framework.Assert.assertEquals(Assert.java:201)
> at
> org.eclipse.mylyn.bugzilla.tests.BugzillaAttachmentHandlerTest.testUpdateAttachmentFlags(BugzillaAttachmentHandlerTest.java:125)

This is because we have an new Flag only in 3.6.3. Steffen, Rob what was the reason for this? Should we add this to the other repositories to?

> 
> Bugzilla 4.1?
> 
> junit.framework.AssertionFailedError: null
> at junit.framework.Assert.fail(Assert.java:47)
> at junit.framework.Assert.assertTrue(Assert.java:20)
> at junit.framework.Assert.assertTrue(Assert.java:27)
> at
> org.eclipse.mylyn.bugzilla.tests.BugzillaRepositoryConnectorTest.testSynchChangedReports(BugzillaRepositoryConnectorTest.java:1096)

It looks like the head version was updated and has an changed resultlist if you use &chfieldfrom= in the url.
If you change the timestamp  (-1 sec) it works as before.
Comment 18 Steffen Pingel CLA 2011-01-28 18:26:46 EST
Thanks for checking.

(In reply to comment #17)
> > junit.framework.AssertionFailedError: expected:<2> but was:<3>
> > at junit.framework.Assert.fail(Assert.java:47)
> > at junit.framework.Assert.failNotEquals(Assert.java:283)
> > at junit.framework.Assert.assertEquals(Assert.java:64)
> > at junit.framework.Assert.assertEquals(Assert.java:195)
> > at junit.framework.Assert.assertEquals(Assert.java:201)
> > at
> >
> org.eclipse.mylyn.bugzilla.tests.BugzillaAttachmentHandlerTest.testUpdateAttachmentFlags(BugzillaAttachmentHandlerTest.java:125)
> 
> This is because we have an new Flag only in 3.6.3. Steffen, Rob what was the
> reason for this? Should we add this to the other repositories to?

If it's a flag that I added for testing the iplog stuff then we can remove it from 3.6.

> It looks like the head version was updated and has an changed resultlist if you
> use &chfieldfrom= in the url.
> If you change the timestamp  (-1 sec) it works as before.

Interesting. Why did they make that (breaking) change?
Comment 19 Frank Becker CLA 2011-01-29 15:40:51 EST
(In reply to comment #18)
> Thanks for checking.
> 
> (In reply to comment #17)
> > > junit.framework.AssertionFailedError: expected:<2> but was:<3>
> > > at junit.framework.Assert.fail(Assert.java:47)
> > > at junit.framework.Assert.failNotEquals(Assert.java:283)
> > > at junit.framework.Assert.assertEquals(Assert.java:64)
> > > at junit.framework.Assert.assertEquals(Assert.java:195)
> > > at junit.framework.Assert.assertEquals(Assert.java:201)
> > > at
> > >
> >
> org.eclipse.mylyn.bugzilla.tests.BugzillaAttachmentHandlerTest.testUpdateAttachmentFlags(BugzillaAttachmentHandlerTest.java:125)
> >
> > This is because we have an new Flag only in 3.6.3. Steffen, Rob what was the
> > reason for this? Should we add this to the other repositories to?
> 
> If it's a flag that I added for testing the iplog stuff then we can remove it
> from 3.6.

I reset all bugzilla databases so the flag is removed.

> 
> > It looks like the head version was updated and has an changed resultlist if
> you
> > use &chfieldfrom= in the url.
> > If you change the timestamp  (-1 sec) it works as before.
> 
> Interesting. Why did they make that (breaking) change?

With my local installation I can not reproduce this but setting up an new dir on mylyn.eclipse.org did not solve the problem.
Comment 20 Frank Becker CLA 2011-01-30 13:59:52 EST
I  need some help because

a) I did setup the bugshead new on mylyn.eclipse.org and have the same problem

but

b) on my environment I can not reproduce the error.

For me it looks like the problem is in the bugzilla modules load by install-module.pl.
Comment 21 Steffen Pingel CLA 2011-01-31 00:08:46 EST
Do you know which module would be causing this? I have run checksetup.pl but it didn't report anything missing.
Comment 22 Frank Becker CLA 2011-01-31 14:36:15 EST
(In reply to comment #21)
> Do you know which module would be causing this? I have run checksetup.pl but it
> didn't report anything missing.

Steffen I use the following command:
/home/tools/bugzilla/Documents/Bugzilla_Mylyn_Install bugzilla-head HEAD bugs_head bugshead bugs_3_6 xmlrpc /home/tools/bugzilla

but did not found an error. Maybe on modul is not installed correct.

Maybe we should try to copy an older version and update this version to HEAD?
Comment 23 Steffen Pingel CLA 2011-02-05 23:16:07 EST
Test testRepositoryConnector(org.eclipse.mylyn.tests.integration.RepositoryConnectorsTest) is taking too long:
Thread[Worker-14,5,main]
  java.lang.Object.wait(Native Method)
  org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:188)
  org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:220)
  org.eclipse.core.internal.jobs.Worker.run(Worker.java:50)

Thread[Timer-0,6,main]
  java.lang.Thread.dumpThreads(Native Method)
  java.lang.Thread.getAllStackTraces(Thread.java:1487)
  org.eclipse.mylyn.commons.tests.support.ManagedTestSuite$DumpThreadTask.run(ManagedTestSuite.java:60)
  java.util.TimerThread.mainLoop(Timer.java:512)
  java.util.TimerThread.run(Timer.java:462)

Thread[WorkbenchTestable,6,main]
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:186)
  org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
  org.eclipse.swt.widgets.Display.syncExec(Display.java:4291)
  org.eclipse.ui.internal.testing.WorkbenchTestable.runTest(WorkbenchTestable.java:112)
  org.codehaus.tycho.surefire.osgibooter.AbstractUITestApplication.runTests(AbstractUITestApplication.java:22)
  org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(WorkbenchTestable.java:71)
  java.lang.Thread.run(Thread.java:619)

Thread[Finalizer,8,system]
  java.lang.Object.wait(Native Method)
  java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
  java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
  java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

Thread[Worker-8,5,main]
  org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector.getRepositoryConfiguration(BugzillaRepositoryConnector.java:747)
  org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector.updateRepositoryConfiguration(BugzillaRepositoryConnector.java:466)
  org.eclipse.mylyn.internal.bugzilla.ui.tasklist.BugzillaRepositorySettingsPage.performUpdate(BugzillaRepositorySettingsPage.java:523)
  org.eclipse.mylyn.internal.bugzilla.ui.tasklist.BugzillaRepositorySettingsPage$4.run(BugzillaRepositorySettingsPage.java:492)
  org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Thread[Worker-JM,5,main]
  java.lang.Object.wait(Native Method)
  org.eclipse.core.internal.jobs.InternalWorker.run(InternalWorker.java:58)

Thread[Worker-4,5,main]
  org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector.getRepositoryConfiguration(BugzillaRepositoryConnector.java:747)
  org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector.updateRepositoryConfiguration(BugzillaRepositoryConnector.java:466)
  org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector.updateRepositoryConfiguration(AbstractRepositoryConnector.java:341)
  org.eclipse.mylyn.internal.bugzilla.core.BugzillaClientManager$1.run(BugzillaClientManager.java:117)
  org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Thread[Thread-13,6,main]
  java.lang.Object.wait(Native Method)
  org.apache.commons.httpclient.util.IdleConnectionTimeoutThread.run(IdleConnectionTimeoutThread.java:108)

Thread[Framework Event Dispatcher,5,main]
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:336)

Thread[Worker-11,5,main]
  java.net.SocketInputStream.socketRead0(Native Method)
  java.net.SocketInputStream.read(SocketInputStream.java:129)
  java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
  java.io.BufferedInputStream.read(BufferedInputStream.java:237)
  org.apache.commons.httpclient.ChunkedInputStream.getChunkSizeFromInputStream(ChunkedInputStream.java:250)
  org.apache.commons.httpclient.ChunkedInputStream.nextChunk(ChunkedInputStream.java:221)
  org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream.java:176)
  org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream.java:196)
  org.apache.commons.httpclient.ChunkedInputStream.exhaustInputStream(ChunkedInputStream.java:369)
  org.apache.commons.httpclient.ChunkedInputStream.close(ChunkedInputStream.java:346)
  java.io.FilterInputStream.close(FilterInputStream.java:155)
  org.apache.commons.httpclient.AutoCloseInputStream.notifyWatcher(AutoCloseInputStream.java:194)
  org.apache.commons.httpclient.AutoCloseInputStream.close(AutoCloseInputStream.java:158)
  org.apache.commons.httpclient.HttpMethodBase.releaseConnection(HttpMethodBase.java:1181)
  org.eclipse.mylyn.commons.net.WebUtil.releaseConnection(WebUtil.java:839)
  org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.authenticate(BugzillaClient.java:516)
  org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.connectInternal(BugzillaClient.java:305)
  org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.getConnectGzip(BugzillaClient.java:294)
  org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.getRepositoryConfiguration(BugzillaClient.java:716)
  org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector.getRepositoryConfiguration(BugzillaRepositoryConnector.java:756)
  org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector.updateRepositoryConfiguration(BugzillaRepositoryConnector.java:466)
  org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector.updateRepositoryConfiguration(AbstractRepositoryConnector.java:341)
  org.eclipse.mylyn.internal.bugzilla.core.BugzillaClientManager$1.run(BugzillaClientManager.java:117)
  org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Thread[Worker-24,5,main]
  java.lang.Object.wait(Native Method)
  org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:188)
  org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:220)
  org.eclipse.core.internal.jobs.Worker.run(Worker.java:50)

Thread[Signal Dispatcher,9,system]

Thread[pool-1-thread-10,5,main]
  java.io.BufferedInputStream.available(BufferedInputStream.java:381)
  org.apache.commons.httpclient.HttpConnection.isResponseAvailable(HttpConnection.java:876)
  org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.isResponseAvailable(MultiThreadedHttpConnectionManager.java:1329)
  org.apache.commons.httpclient.HttpMethodBase.responseBodyConsumed(HttpMethodBase.java:2405)
  org.apache.commons.httpclient.HttpMethodBase$1.responseConsumed(HttpMethodBase.java:1892)
  org.apache.commons.httpclient.AutoCloseInputStream.notifyWatcher(AutoCloseInputStream.java:198)
  org.apache.commons.httpclient.AutoCloseInputStream.checkClose(AutoCloseInputStream.java:170)
  org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:109)
  org.eclipse.mylyn.internal.commons.net.TimeoutInputStream.readUntilDone(TimeoutInputStream.java:330)
  org.eclipse.mylyn.internal.commons.net.TimeoutInputStream.runThread(TimeoutInputStream.java:276)
  org.eclipse.mylyn.internal.commons.net.TimeoutInputStream.access$0(TimeoutInputStream.java:274)
  org.eclipse.mylyn.internal.commons.net.TimeoutInputStream$1.run(TimeoutInputStream.java:79)
  java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
  java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
  java.util.concurrent.FutureTask.run(FutureTask.java:138)
  java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  java.lang.Thread.run(Thread.java:619)

Thread[MultiThreadedHttpConnectionManager cleanup,5,main]
  java.lang.Object.wait(Native Method)
  java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
  java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
  org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ReferenceQueueThread.run(MultiThreadedHttpConnectionManager.java:1122)

Thread[Java indexing,4,main]
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.jdt.internal.core.search.processing.JobManager.run(JobManager.java:382)
  java.lang.Thread.run(Thread.java:619)

Thread[pool-1-thread-11,5,main]
  java.io.BufferedInputStream.read(BufferedInputStream.java:236)
  org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
  org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
  org.apache.commons.httpclient.HttpParser.parseHeaders(HttpParser.java:176)
  org.apache.commons.httpclient.ChunkedInputStream.parseTrailerHeaders(ChunkedInputStream.java:322)
  org.apache.commons.httpclient.ChunkedInputStream.nextChunk(ChunkedInputStream.java:226)
  org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream.java:176)
  java.io.FilterInputStream.read(FilterInputStream.java:116)
  org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:108)
  org.eclipse.mylyn.internal.commons.net.TimeoutInputStream.readUntilDone(TimeoutInputStream.java:330)
  org.eclipse.mylyn.internal.commons.net.TimeoutInputStream.runThread(TimeoutInputStream.java:276)
  org.eclipse.mylyn.internal.commons.net.TimeoutInputStream.access$0(TimeoutInputStream.java:274)
  org.eclipse.mylyn.internal.commons.net.TimeoutInputStream$1.run(TimeoutInputStream.java:79)
  java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
  java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
  java.util.concurrent.FutureTask.run(FutureTask.java:138)
  java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  java.lang.Thread.run(Thread.java:619)

Thread[Reference Handler,10,system]
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)

Thread[[Timer] - Main Queue Handler,5,main]
  java.lang.Object.wait(Native Method)
  org.eclipse.equinox.internal.util.impl.tpt.timer.TimerImpl.run(TimerImpl.java:141)
  java.lang.Thread.run(Thread.java:619)

Thread[Start Level Event Dispatcher,5,main]
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:336)

Thread[Framework Active Thread,5,main]
  java.lang.Object.wait(Native Method)
  org.eclipse.osgi.framework.internal.core.Framework.run(Framework.java:1816)
  java.lang.Thread.run(Thread.java:619)

Thread[Worker-6,5,main]
  java.lang.Thread.sleep(Native Method)
  org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:301)
  org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Thread[main,6,main]
  java.net.SocketInputStream.socketRead0(Native Method)
  java.net.SocketInputStream.read(SocketInputStream.java:129)
  java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
  java.io.BufferedInputStream.read(BufferedInputStream.java:237)
  org.apache.commons.httpclient.ChunkedInputStream.readCRLF(ChunkedInputStream.java:204)
  org.apache.commons.httpclient.ChunkedInputStream.nextChunk(ChunkedInputStream.java:219)
  org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream.java:176)
  org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream.java:196)
  org.apache.commons.httpclient.ChunkedInputStream.exhaustInputStream(ChunkedInputStream.java:369)
  org.apache.commons.httpclient.ChunkedInputStream.close(ChunkedInputStream.java:346)
  java.io.FilterInputStream.close(FilterInputStream.java:155)
  org.apache.commons.httpclient.AutoCloseInputStream.notifyWatcher(AutoCloseInputStream.java:194)
  org.apache.commons.httpclient.AutoCloseInputStream.close(AutoCloseInputStream.java:158)
  org.apache.commons.httpclient.HttpMethodBase.releaseConnection(HttpMethodBase.java:1181)
  org.eclipse.mylyn.commons.net.WebUtil.releaseConnection(WebUtil.java:839)
  org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.authenticate(BugzillaClient.java:516)
  org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.connectInternal(BugzillaClient.java:305)
  org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.getConnect(BugzillaClient.java:270)
  org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.logout(BugzillaClient.java:369)
  org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.validate(BugzillaClient.java:221)
  org.eclipse.mylyn.bugzilla.tests.ui.BugzillaRepositorySettingsPageTest.testPersistChangeUserId(BugzillaRepositorySettingsPageTest.java:187)
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  java.lang.reflect.Method.invoke(Method.java:597)
  junit.framework.TestCase.runTest(TestCase.java:168)
  junit.framework.TestCase.runBare(TestCase.java:134)
  junit.framework.TestResult$1.protect(TestResult.java:110)
  junit.framework.TestResult.runProtected(TestResult.java:128)
  junit.framework.TestResult.run(TestResult.java:113)
  junit.framework.TestCase.run(TestCase.java:124)
  junit.framework.TestSuite.runTest(TestSuite.java:232)
  junit.framework.TestSuite.run(TestSuite.java:227)
  junit.framework.TestSuite.runTest(TestSuite.java:232)
  junit.framework.TestSuite.run(TestSuite.java:227)
  junit.framework.TestSuite.runTest(TestSuite.java:232)
  junit.framework.TestSuite.run(TestSuite.java:227)
  org.eclipse.mylyn.commons.tests.support.ManagedTestSuite.run(ManagedTestSuite.java:144)
  org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
  org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
  org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
  org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
  org.apache.maven.surefire.Surefire.run(Surefire.java:177)
  org.codehaus.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:75)
  org.codehaus.tycho.surefire.osgibooter.AbstractUITestApplication$1.run(AbstractUITestApplication.java:25)
  org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
  org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
  org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3524)
  org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3173)
  org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2697)
  org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2661)
  org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2495)
  org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
  org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
  org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
  org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
  org.codehaus.tycho.surefire.osgibooter.UITestApplication.runApplication(UITestApplication.java:21)
  org.codehaus.tycho.surefire.osgibooter.AbstractUITestApplication.run(AbstractUITestApplication.java:109)
  org.codehaus.tycho.surefire.osgibooter.UITestApplication.start(UITestApplication.java:27)
  org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
  org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
  org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  java.lang.reflect.Method.invoke(Method.java:597)
  org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
  org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
  org.eclipse.equinox.launcher.Main.run(Main.java:1410)
  org.eclipse.equinox.launcher.Main.main(Main.java:1386)

Thread[[ThreadPool Manager] - Idle Thread,5,main]
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:106)

Thread[TestProxy :0,6,main]
  java.net.SocketInputStream.socketRead0(Native Method)
  java.net.SocketInputStream.read(SocketInputStream.java:129)
  sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
  sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
  sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
  java.io.InputStreamReader.read(InputStreamReader.java:167)
  java.io.BufferedReader.fill(BufferedReader.java:136)
  java.io.BufferedReader.readLine(BufferedReader.java:299)
  java.io.BufferedReader.readLine(BufferedReader.java:362)
  org.eclipse.mylyn.commons.tests.support.TestProxy.readMessage(TestProxy.java:248)
  org.eclipse.mylyn.commons.tests.support.TestProxy.handleConnection(TestProxy.java:194)
  org.eclipse.mylyn.commons.tests.support.TestProxy.run(TestProxy.java:273)
  java.lang.Thread.run(Thread.java:619)

Thread[TestProxy :0,6,main]
  java.net.SocketInputStream.socketRead0(Native Method)
  java.net.SocketInputStream.read(SocketInputStream.java:129)
  sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
  sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
  sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
  java.io.InputStreamReader.read(InputStreamReader.java:167)
  java.io.BufferedReader.fill(BufferedReader.java:136)
  java.io.BufferedReader.readLine(BufferedReader.java:299)
  java.io.BufferedReader.readLine(BufferedReader.java:362)
  org.eclipse.mylyn.commons.tests.support.TestProxy.readMessage(TestProxy.java:248)
  org.eclipse.mylyn.commons.tests.support.TestProxy.handleConnection(TestProxy.java:194)
  org.eclipse.mylyn.commons.tests.support.TestProxy.run(TestProxy.java:273)
  java.lang.Thread.run(Thread.java:619)
Comment 24 Frank Becker CLA 2011-02-19 13:25:02 EST
(In reply to comment #23)
> Test
> testRepositoryConnector(org.eclipse.mylyn.tests.integration.RepositoryConnectorsTest)
> is taking too long:

With my local installation all 11 tests need 66,197 seconds

When using mylyn.eclipse.org the first 3 test needs 66 seconds all 11 need 202,527 seconds.

Steffen, How many seconds are OK for you?
Comment 25 Steffen Pingel CLA 2011-02-21 14:18:04 EST
I am not sure but I generally don't run the full test suite on my local machine. You can refer to the Hudson server for detailed timing information for individual tests:
https://hudson.eclipse.org/hudson/job/mylyn-integration-e3.7/lastCompletedBuild/testReport/

Looks like all Bugzilla tests passed in the last run and while there is some potential for speeding up tests we don't need to worry about it for now. Thanks!