Bug 578939 - JavaSearchBugsTests fail randomly in gerrit
Summary: JavaSearchBugsTests fail randomly in gerrit
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.23   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-23 11:23 EST by Andrey Loskutov CLA
Modified: 2024-03-06 07:40 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Loskutov CLA 2022-02-23 11:23:42 EST
https://ci.eclipse.org/jdt/job/eclipse.jdt.core-Gerrit/5930/testReport/junit/org.eclipse.jdt.core.tests.model/AllJavaModelTestsTracing/testBug6930_AllConstructorDeclarations04/


Unexpected search results.
----------- Expected ------------
p6930.AllConstructorDeclarations04#AllConstructorDeclarations04(java.util.Collection<java.lang.Object> c)
------------ but was ------------

--------- Difference is ----------
 expected:<[p6930.AllConstructorDeclarations04#AllConstructorDeclarations04(java.util.Collection<java.lang.Object> c)]> but was:<[]>
Stacktrace
junit.framework.ComparisonFailure: 
Unexpected search results.
----------- Expected ------------
p6930.AllConstructorDeclarations04#AllConstructorDeclarations04(java.util.Collection<java.lang.Object> c)
------------ but was ------------

--------- Difference is ----------
 expected:<[p6930.AllConstructorDeclarations04#AllConstructorDeclarations04(java.util.Collection<java.lang.Object> c)]> but was:<[]>
	at org.eclipse.jdt.core.tests.model.JavaSearchBugsTests.testBug6930_AllConstructorDeclarations04(JavaSearchBugsTests.java:372)
Standard Output
[2022-02-23 15:57:02 +0000] org.eclipse.jdt.core.tests.model.JavaSearchBugsTests#testBug6930_AllConstructorDeclarations04()
testBug6930_AllConstructorDeclarations04 actual result is:
		"",



https://ci.eclipse.org/jdt/job/eclipse.jdt.core-Gerrit/5923/testReport/junit/org.eclipse.jdt.core.tests.model/AllJavaModelTestsTracing/testBug6930_AllConstructorDeclarations03/


Unexpected search results.
----------- Expected ------------
p6930.AllConstructorDeclarations03#AllConstructorDeclarations03()\n
p6930.AllConstructorDeclarations03#AllConstructorDeclarations03(Object o)\n
p6930.AllConstructorDeclarations03#AllConstructorDeclarations03(Object o,String s)\n
p6930.AllConstructorDeclarations03b#AllConstructorDeclarations03b()*
------------ but was ------------
p6930.AllConstructorDeclarations03#AllConstructorDeclarations03()\n
p6930.AllConstructorDeclarations03#AllConstructorDeclarations03(Object o)\n
p6930.AllConstructorDeclarations03#AllConstructorDeclarations03(Object o,String s)
--------- Difference is ----------
 expected:<...3(Object o,String s)[\n
p6930.AllConstructorDeclarations03b#AllConstructorDeclarations03b()*]> but was:<...3(Object o,String s)[]>
Stacktrace
junit.framework.ComparisonFailure: 
Unexpected search results.
----------- Expected ------------
p6930.AllConstructorDeclarations03#AllConstructorDeclarations03()\n
p6930.AllConstructorDeclarations03#AllConstructorDeclarations03(Object o)\n
p6930.AllConstructorDeclarations03#AllConstructorDeclarations03(Object o,String s)\n
p6930.AllConstructorDeclarations03b#AllConstructorDeclarations03b()*
------------ but was ------------
p6930.AllConstructorDeclarations03#AllConstructorDeclarations03()\n
p6930.AllConstructorDeclarations03#AllConstructorDeclarations03(Object o)\n
p6930.AllConstructorDeclarations03#AllConstructorDeclarations03(Object o,String s)
--------- Difference is ----------
 expected:<...3(Object o,String s)[\n
p6930.AllConstructorDeclarations03b#AllConstructorDeclarations03b()*]> but was:<...3(Object o,String s)[]>
	at org.eclipse.jdt.core.tests.model.JavaSearchBugsTests.testBug6930_AllConstructorDeclarations03(JavaSearchBugsTests.java:341)
Standard Output
[2022-02-22 22:32:57 +0000] org.eclipse.jdt.core.tests.model.JavaSearchBugsTests#testBug6930_AllConstructorDeclarations03()
testBug6930_AllConstructorDeclarations03 actual result is:
		"p6930.AllConstructorDeclarations03#AllConstructorDeclarations03()\n" + 
		"p6930.AllConstructorDeclarations03#AllConstructorDeclarations03(Object o)\n" + 
		"p6930.AllConstructorDeclarations03#AllConstructorDeclarations03(Object o,String s)",
Comment 1 Andrey Loskutov CLA 2022-03-16 03:51:38 EDT
Happened again.

The tests in question *explicitly wait* for indexer, but it looks as if the index manager sporadically doesn't run some updates. May be related to bug 579204 comment 4.

https://download.eclipse.org/eclipse/downloads/drops4/I20220315-1800/testresults/html/org.eclipse.jdt.core.tests.model_ep424I-unit-cen64-gtk3-java11_linux.gtk.x86_64_11.html

testBug6930_AllConstructorDeclarations03

Unexpected search results. ----------- Expected ------------ p6930.AllConstructorDeclarations03#AllConstructorDeclarations03()\n p6930.AllConstructorDeclarations03#AllConstructorDeclarations03(Object o)\n p6930.AllConstructorDeclarations03#AllConstructorDeclarations03(Object o,String s)\n p6930.AllConstructorDeclarations03b#AllConstructorDeclarations03b()* ------------ but was ------------ p6930.AllConstructorDeclarations03#AllConstructorDeclarations03()\n p6930.AllConstructorDeclarations03#AllConstructorDeclarations03(Object o)\n p6930.AllConstructorDeclarations03#AllConstructorDeclarations03(Object o,String s) --------- Difference is ---------- expected:<...3(Object o,String s)[\n p6930.AllConstructorDeclarations03b#AllConstructorDeclarations03b()*]> but was:<...3(Object o,String s)[]>

junit.framework.ComparisonFailure: Unexpected search results.
----------- Expected ------------
p6930.AllConstructorDeclarations03#AllConstructorDeclarations03()\n
p6930.AllConstructorDeclarations03#AllConstructorDeclarations03(Object o)\n
p6930.AllConstructorDeclarations03#AllConstructorDeclarations03(Object o,String s)\n
p6930.AllConstructorDeclarations03b#AllConstructorDeclarations03b()*
------------ but was ------------
p6930.AllConstructorDeclarations03#AllConstructorDeclarations03()\n
p6930.AllConstructorDeclarations03#AllConstructorDeclarations03(Object o)\n
p6930.AllConstructorDeclarations03#AllConstructorDeclarations03(Object o,String s)
--------- Difference is ----------
expected:<...3(Object o,String s)[\n
p6930.AllConstructorDeclarations03b#AllConstructorDeclarations03b()*]> but was:<...3(Object o,String s)[]>
at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertStringEquals(TestCase.java:266)
at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertEquals(TestCase.java:242)
at org.eclipse.jdt.core.tests.model.AbstractJavaModelTests.assertSearchResults(AbstractJavaModelTests.java:605)
at org.eclipse.jdt.core.tests.model.AbstractJavaModelTests.assertSearchResults(AbstractJavaModelTests.java:591)
at org.eclipse.jdt.core.tests.model.AbstractJavaModelTests.assertSearchResults(AbstractJavaModelTests.java:588)
at org.eclipse.jdt.core.tests.model.JavaSearchBugsTests.testBug6930_AllConstructorDeclarations03(JavaSearchBugsTests.java:341)
Comment 2 Eclipse Genie CLA 2024-03-06 07:40:26 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.