eclipse-jdt / eclipse.jdt.ui

Eclipse Public License 2.0
37 stars 92 forks source link

46 Random failing test CodeCompletionTest, JavadocCompletionTest, TypeCompletionTest since I20230824-0400 #735

Open iloveeclipse opened 1 year ago

iloveeclipse commented 1 year ago

https://download.eclipse.org/eclipse/downloads/drops4/I20230824-0400/testresults/html/org.eclipse.jdt.text.tests_ep429I-unit-cen64-gtk3-java17_linux.gtk.x86_64_17.html

All are very similar, is if they are unable to find JDK classes

I wonder if that has relationship to the "DetectVMInstallationsJob" job / similar to https://github.com/eclipse-jdt/eclipse.jdt.core/issues/1190

no proposal starting with "{@link DateFormat}"

java.lang.AssertionError: no proposal starting with "{@link DateFormat}"
at org.junit.Assert.fail(Assert.java:89)
at org.junit.Assert.assertTrue(Assert.java:42)
at org.junit.Assert.assertNotNull(Assert.java:713)
at org.eclipse.jdt.text.tests.contentassist.AbstractCompletionTest.findNonNullProposal(AbstractCompletionTest.java:555)
at org.eclipse.jdt.text.tests.contentassist.AbstractCompletionTest.assertProposal(AbstractCompletionTest.java:357)
at org.eclipse.jdt.text.tests.contentassist.AbstractCompletionTest.assertTypeJavadocProposal(AbstractCompletionTest.java:331)
at org.eclipse.jdt.text.tests.contentassist.JavadocCompletionTest.testDirectLinkImportsOnExistingImportCamelCase(JavadocCompletionTest.java:201)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
no proposal starting with "List "

java.lang.AssertionError: no proposal starting with "List "
at org.junit.Assert.fail(Assert.java:89)
at org.junit.Assert.assertTrue(Assert.java:42)
at org.junit.Assert.assertNotNull(Assert.java:713)
at org.eclipse.jdt.text.tests.contentassist.AbstractCompletionTest.findNonNullProposal(AbstractCompletionTest.java:555)
at org.eclipse.jdt.text.tests.contentassist.AbstractCompletionTest.assertProposal(AbstractCompletionTest.java:357)
at org.eclipse.jdt.text.tests.contentassist.AbstractCompletionTest.assertTypeJavadocProposal(AbstractCompletionTest.java:331)
at org.eclipse.jdt.text.tests.contentassist.JavadocCompletionTest.testLinkType(JavadocCompletionTest.java:148)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
no proposal starting with "Random "

java.lang.AssertionError: no proposal starting with "Random "
at org.junit.Assert.fail(Assert.java:89)
at org.junit.Assert.assertTrue(Assert.java:42)
at org.junit.Assert.assertNotNull(Assert.java:713)
at org.eclipse.jdt.text.tests.contentassist.AbstractCompletionTest.findNonNullProposal(AbstractCompletionTest.java:555)
at org.eclipse.jdt.text.tests.contentassist.AbstractCompletionTest.assertProposal(AbstractCompletionTest.java:357)
at org.eclipse.jdt.text.tests.contentassist.AbstractCompletionTest.assertMethodBodyProposal(AbstractCompletionTest.java:242)
at org.eclipse.jdt.text.tests.contentassist.TypeCompletionTest.testNoQualifierRemovalWithImport(TypeCompletionTest.java:88)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
noopur2507 commented 1 year ago

These haven't failed since then. The issue can be reopened if it repeats.

jukzi commented 4 months ago

Saw it more often again: https://download.eclipse.org/eclipse/downloads/drops4/I20240614-1800/testresults/html/org.eclipse.jdt.text.tests_ep433I-unit-mac64-java17_macosx.cocoa.x86_64_17.html https://download.eclipse.org/eclipse/downloads/drops4/I20240617-1800/testresults/html/org.eclipse.jdt.text.tests_ep433I-unit-cen64-gtk3-java21_linux.gtk.x86_64_21.html

jukzi commented 2 months ago

According to https://bugs.eclipse.org/bugs/show_bug.cgi?id=186554 such errors can be worked around with org.eclipse.jdt.text.tests.contentassist.AbstractCompletionTest.waitBeforeCoreCompletion() to sleep longer. However i would rather love to see the sleep replaced with a condition to wait on. Locally i can not reproduce the error even when the sleep is totally removed. So i don't know which condition to wait for.