Community
Participate
Working Groups
We need to reduce the number of spuriously failing tests.
http://ci.mylyn.org/job/mylyn-3.7.x/116/TARGET=juno/testReport/org.eclipse.mylyn.bugzilla.tests/BugzillaRepositoryConnectorTest/testMultiRetrievalFailure_3_6_8/ java.lang.NullPointerException at org.eclipse.mylyn.bugzilla.tests.BugzillaRepositoryConnectorTest.testMultiRetrievalFailure(BugzillaRepositoryConnectorTest.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Sorry, I can not reproduce this. Maybe this was an network problem.
That's the point, we need to make tests robust so they don't fail even if Bugzilla takes a bit longer to respond etc.
What do you think we should do when Bugzilla takes a bit longer to response? Should we catch the error and try to do the test again?
I haven't looked into this particular test. We have to understand first what exactly is going wrong and if this is indeed a network problem or an actual bug in the code or test. Based on the results of that analysis we can decide on the proper course of action.
Should we add logging of the HTTP requests and result including the response? If so it can make sense to first do the bug#269803. Thoughts?
It failed again, this time with a different error: junit.framework.AssertionFailedError: Expected: <null> but was: Status ERROR: org.eclipse.mylyn.bugzilla code=13 MylynStatus null at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.assertTrue(Assert.java:20) at junit.framework.Assert.assertNull(Assert.java:233) at junit.framework.Assert.assertNull(Assert.java:226) at org.eclipse.mylyn.bugzilla.tests.BugzillaRepositoryConnectorTest.testMultiRetrievalFailure(BugzillaRepositoryConnectorTest.java:99) The first step is to improve the assertions in the test case and provide better diagnostics when it fails.
http://ci.mylyn.org/job/mylyn-3.8.x/TARGET=e3.8/lastCompletedBuild/testReport/org.eclipse.mylyn.bugzilla.tests/BugzillaRepositoryConnectorTest/testSynchChangedReports_3_4_14/ junit.framework.AssertionFailedError: Expected: 7575, 7576, got: [7576: summary] at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.assertTrue(Assert.java:20) at org.eclipse.mylyn.bugzilla.tests.BugzillaRepositoryConnectorTest.testSynchChangedReports(BugzillaRepositoryConnectorTest.java:1153)
All tests should be passing now.