eclipse-jdt / eclipse.jdt.core

Eclipse Public License 2.0
168 stars 132 forks source link

31 Random failing JavadocBugsCompletionModelTest, JavadocFieldCompletionModelTest, JavadocMethodCompletionModelTest #3325

Open jukzi opened 6 days ago

jukzi commented 6 days ago

https://download.eclipse.org/eclipse/downloads/drops4/I20241118-1800/testresults/html/org.eclipse.jdt.core.tests.model_ep434I-unit-linux-x86_64-java17_linux.gtk.x86_64_17.html for example:

junit.framework.ComparisonFailure: Completion proposals are not correct!.
----------- Expected ------------
Object[JAVADOC_TYPE_REF]{{@link Object}, java.lang, Ljava.lang.Object;, null, null, [46, 49], 85}\n
Object[TYPE_REF]{Object, java.lang, Ljava.lang.Object;, null, null, [46, 49], 54}
------------ but was ------------

---------------------- ----------
expected:<[Object[JAVADOC_TYPE_REF]{{@link Object}, java.lang, Ljava.lang.Object;, null, null, [46, 49], 85}\n
Object[TYPE_REF]{Object, java.lang, Ljava.lang.Object;, null, null, [46, 49], 54}]> but was:<[]>
at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertStringEquals(TestCase.java:265)
at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertEquals(TestCase.java:240)
at org.eclipse.jdt.core.tests.model.AbstractJavadocCompletionModelTest.assertResults(AbstractJavadocCompletionModelTest.java:283)
at org.eclipse.jdt.core.tests.model.AbstractJavadocCompletionModelTest.assertSortedResults(AbstractJavadocCompletionModelTest.java:253)
at org.eclipse.jdt.core.tests.model.JavadocBugsCompletionModelTest.testBug117183c(JavadocBugsCompletionModelTest.java:653)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at junit.framework.TestCase.runTest(TestCase.java:177)
at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
at junit.framework.TestCase.runBare(TestCase.java:142)
at junit.framework.TestResult$1.protect(TestResult.java:122)
at junit.framework.TestResult.runProtected(TestResult.java:142)
at junit.framework.TestResult.run(TestResult.java:125)
at junit.framework.TestCase.run(TestCase.java:130)
at junit.framework.TestSuite.runTest(TestSuite.java:241)
at org.eclipse.jdt.core.tests.model.SuiteOfTestCases$Suite.runTest(SuiteOfTestCases.java:114)
at junit.framework.TestSuite.run(TestSuite.java:236)
at org.eclipse.jdt.core.tests.model.SuiteOfTestCases$Suite.superRun(SuiteOfTestCases.java:97)
at org.eclipse.jdt.core.tests.model.SuiteOfTestCases$Suite$1.protect(SuiteOfTestCases.java:85)
at junit.framework.TestResult.runProtected(TestResult.java:142)
at org.eclipse.jdt.core.tests.model.SuiteOfTestCases$Suite.run(SuiteOfTestCases.java:94)
at junit.framework.TestSuite.runTest(TestSuite.java:241)
at junit.framework.TestSuite.run(TestSuite.java:236)
at junit.framework.TestSuite.runTest(TestSuite.java:2
jukzi commented 6 days ago

Can not locally reproduce [win]. => probably some race condition. https://download.eclipse.org/eclipse/downloads/drops4/I20241118-1800/testresults/ep434I-unit-linux-x86_64-java17_linux.gtk.x86_64_17/org.eclipse.jdt.core.tests.model.AllJavaModelTests.txt contains 435 times "Exception" - hard to tell which of them are intended or the possible rootcause.