Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random failing of SaveParticipantTest #79

Open
ktatavarthi opened this issue Jun 2, 2022 · 14 comments
Open

Random failing of SaveParticipantTest #79

ktatavarthi opened this issue Jun 2, 2022 · 14 comments
Labels
macOS happens on macOS test junit test related things Windows Happens on Windows OS

Comments

@ktatavarthi
Copy link
Member

This issue is opened on behalf of Bug 572555 - Avoid random failures of SaveParticipantTest

Some tests in org.eclipse.jdt.ui.tests.quickfix.SaveParticipantTest fail randomly.

@ktatavarthi
Copy link
Member Author

org.eclipse.jdt.ui.tests.quickfix.SaveParticipantTest.testBug228659 failed in the build I20220601-1800

on Mac - mac64-java17_macosx.cocoa.x86_64_17 with the below error

expected:<...{ String s1 []= ""; } } > but was:<...{ String s1 [ ]= ""; } } >

org.junit.ComparisonFailure: expected:<...{
String s1 []= "";
}
}
> but was:<...{
String s1 [ ]= "";
}
}
>
at org.junit.Assert.assertEquals(Assert.java:117)
at org.junit.Assert.assertEquals(Assert.java:146)
at org.eclipse.jdt.ui.tests.quickfix.SaveParticipantTest.testBug228659(SaveParticipantTest.java:654) 

@noopur2507
Copy link
Member

I20220706-1800

org.eclipse.jdt.ui.tests.quickfix.SaveParticipantTest

testFormatChangeBug488229_2 and testFormatChangesBug207965 failed on mac64-java17.

testFormatChanges02 failed on win32-java11.

testFormatChangeBug561164 failed on gtk3-java18.

@noopur2507
Copy link
Member

I20220831-1800

org.eclipse.jdt.ui.tests.quickfix.SaveParticipantTest

testFormatChangeBug488229_2 and testFormatChangesBug205177 failed on mac64-java17.

@noopur2507
Copy link
Member

Failed again in I20220928-1800 on mac64-java17.

@ktatavarthi
Copy link
Member Author

org.eclipse.jdt.ui.tests.quickfix.SaveParticipantTest - testFormatChangeBug488229_2
failed in the build I20221109-1850

@noopur2507
Copy link
Member

I20230705-1800
win32-java17
org.eclipse.jdt.ui.tests.quickfix.SaveParticipantTest
testFormatChangeBug561164 failed.

expected:<...; public class E1 { [ /** * Method foo with a really long description that will wrap lines on save * operation * * @param a * - integer input * * @return integer */ public int foo(int a) { return 0; ]} }> but was:<...; public class E1 { [ /** * Method foo with a really long description that will wrap lines on save * operation * * @param a - integer input * * @return integer */ public int foo(int a) { return 0; ]} }>

org.junit.ComparisonFailure: expected:<...;
public class E1 {
[ /**
* Method foo with a really long description that will wrap lines on save
* operation
*
* @param a
* - integer input
*
* @return integer
*/
public int foo(int a) {
return 0;
]}
}> but was:<...;
public class E1 {
[ /**
* Method foo with a really long description that will wrap lines on save
* operation
*
* @param a - integer input
*
* @return integer
*/
public int foo(int a) {
return 0;
]}
}>
at org.junit.Assert.assertEquals(Assert.java:117)
at org.junit.Assert.assertEquals(Assert.java:146)
at org.eclipse.jdt.ui.tests.quickfix.SaveParticipantTest.testFormatChangeBug561164(SaveParticipantTest.java:1060)

@noopur2507
Copy link
Member

org.eclipse.jdt.ui.tests.quickfix.SaveParticipantTest - testFormatChangeBug488229_2

Failed in I20230815-1800
mac64-java17

@noopur2507
Copy link
Member

I20230830-2200

org.eclipse.jdt.ui.tests.quickfix.SaveParticipantTest

testFormatChangeBug488229_2 and testFormatChanges02 failed on mac64-java17.

@noopur2507
Copy link
Member

org.eclipse.jdt.ui.tests.quickfix.SaveParticipantTest.testFormatChangesBug207965 failed in I20231108-0600 on mac64-java17.

@noopur2507
Copy link
Member

org.eclipse.jdt.ui.tests.quickfix.SaveParticipantTest.testFormatChangeBug561164 failed in I20231115-1800, macosx.cocoa.x86_64 java17.

@noopur2507
Copy link
Member

org.eclipse.jdt.ui.tests.quickfix.SaveParticipantTest.testFormatChangesBug207965 failed in I20231108-0600 on mac64-java17.

Failed again in I20240522-1800.

@noopur2507
Copy link
Member

The test failed in I20240822-0100 again:

org.eclipse.jdt.ui.tests.quickfix.SaveParticipantTest
testFormatChangeBug488229_3
win32-java17

expected:<...; public class E1 { [ /** * Method foo * * @param a * - integer input * * @return integer */ public int foo(int a) { return 0; ]} }> but was:<...; public class E1 { [ /** * Method foo * * @param a - integer input * * @return integer */ public int foo(int a) { return 0; ]} }>

org.junit.ComparisonFailure: expected:<...;
public class E1 {
[ /**
* Method foo
*
* @param a
* - integer input
*
* @return integer
*/
public int foo(int a) {
return 0;
]}
}> but was:<...;
public class E1 {
[ /**
* Method foo
*
* @param a - integer input
*
* @return integer
*/
public int foo(int a) {
return 0;
]}
}>
at org.junit.Assert.assertEquals(Assert.java:117)
at org.junit.Assert.assertEquals(Assert.java:146)
at org.eclipse.jdt.ui.tests.quickfix.SaveParticipantTest.testFormatChangeBug488229_3(SaveParticipantTest.java:1035)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)

@jukzi
Copy link
Contributor

jukzi commented Dec 10, 2024

testFormatChangeBug561164 Failed again:
https://download.eclipse.org/eclipse/downloads/drops4/I20241209-1800/testresults/html/org.eclipse.jdt.ui.tests_ep435I-unit-macosx-x86_64-java17_macosx.cocoa.x86_64_17.html

org.junit.ComparisonFailure: expected:<...;
public class E1 {
[ /**
* Method foo with a really long description that will wrap lines on save
* operation
*
* @param a
* - integer input
*
* @return integer
*/
public int foo(int a) {
return 0;
]}
}> but was:<...;
public class E1 {
[ /**
* Method foo with a really long description that will wrap lines on save operation
* @param a - integer input
* @return integer
*/
public int foo( int a ) {
return 0;
]}
}>
at org.junit.Assert.assertEquals(Assert.java:117)
at org.junit.Assert.assertEquals(Assert.java:146)
at org.eclipse.jdt.ui.tests.quickfix.SaveParticipantTest.testFormatChangeBug561164(SaveParticipantTest.java:1105)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)

@jukzi jukzi changed the title Avoid random failures of SaveParticipantTest [mac] Random failing of SaveParticipantTest Jan 13, 2025
@jukzi jukzi changed the title [mac] Random failing of SaveParticipantTest Random failing of SaveParticipantTest Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macOS happens on macOS test junit test related things Windows Happens on Windows OS
Projects
None yet
Development

No branches or pull requests

3 participants