eclipse.platform.ui icon indicating copy to clipboard operation
eclipse.platform.ui copied to clipboard

[Tests] Random failing ProgressContantsTest.testKeepOneProperty

Open ktatavarthi opened this issue 3 years ago • 10 comments

org.eclipse.ui.tests.progress.ProgressContantsTest.testKeepOneProperty fails in the I-build I20220928-1800 on Windows and MacM1 with the below error

Only one finished job should be kept in view expected:<1> but was:<20>

junit.framework.AssertionFailedError: Only one finished job should be kept in view expected:<1> but was:<20>
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.Assert.failNotEquals(Assert.java:329)
at junit.framework.Assert.assertEquals(Assert.java:78)
at junit.framework.Assert.assertEquals(Assert.java:234)
at junit.framework.TestCase.assertEquals(TestCase.java:377)
at org.eclipse.ui.tests.progress.ProgressContantsTest.testKeepOneProperty(ProgressContantsTest.java:259) 

ktatavarthi avatar Sep 30 '22 06:09 ktatavarthi

i can reproduce this error locally

jukzi avatar Sep 30 '22 08:09 jukzi

i can still reproduce this error when reverting eclipse.platform to 149a08f433580abfecff3a9cbf73250638133aa8 (2022-09-05) - before the JobManager.join changes!

jukzi avatar Sep 30 '22 08:09 jukzi

i can still reproduce this error when reverting eclipse.platform.ui to 180c5b6b70f00a875dfb2da6271e4bf7948d42ea (2022-09-21) - before my ui changes.

jukzi avatar Sep 30 '22 08:09 jukzi

Unfortunately I can't reproduce on Linux, may be that is Windows specific.

i can still reproduce this error when reverting eclipse.platform.ui to https://github.com/eclipse-platform/eclipse.platform.ui/commit/180c5b6b70f00a875dfb2da6271e4bf7948d42ea (2022-09-21) - before my ui changes.

OK, so that could be unrelated. The problem is that there is no one looking on Windows test fails, because there are too many of them, so it could be even already in 4.25.

iloveeclipse avatar Sep 30 '22 08:09 iloveeclipse

I can not reproduce it every time. it fails only like every 2nd time. When i revert my "fix #307: Progress View sometimes shows short living jobs twice" (2022-09-01) it fails far less often - but still sometimes with the same error.

jukzi avatar Sep 30 '22 09:09 jukzi

it also fails with https://github.com/eclipse-platform/eclipse.platform/pull/188

jukzi avatar Sep 30 '22 09:09 jukzi

That was a timing issue that became more visible by the changed timing behavior. In DetailedProgressViewer.remove(JobTreeElement...) doFindItem returned null even though the element was already added.

jukzi avatar Sep 30 '22 10:09 jukzi

Test still fails randomly, see https://github.com/eclipse-platform/eclipse.platform.ui/pull/1148/checks?check_run_id=16996362086

HeikoKlare avatar Sep 21 '23 10:09 HeikoKlare

failed VerificationBuild on MacOs: https://github.com/eclipse-platform/eclipse.platform.ui/pull/2565/checks?check_run_id=33787332251

jukzi avatar Dec 02 '24 15:12 jukzi

I also se this test failing, but this time it complains that 0 Jobs are running.

laeubi avatar Dec 30 '24 06:12 laeubi