Bug 541447 - org.eclipse.ui.tests testCancelWizardCancelsJob fails
Summary: org.eclipse.ui.tests testCancelWizardCancelsJob fails
Status: REOPENED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.10   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-22 07:07 EST by Kalyan Prasad Tatavarthi CLA
Modified: 2021-05-27 12:56 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kalyan Prasad Tatavarthi CLA 2018-11-22 07:07:50 EST
org.eclipse.ui.test testCancelWizardCancelsJob failed on windows in the build I20181121-1800

The stack trace is given below:

junit.framework.AssertionFailedError: Wizard should show progress monitor
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.Assert.assertTrue(Assert.java:22)
at junit.framework.TestCase.assertTrue(TestCase.java:192)
at org.eclipse.ui.tests.datatransfer.SmartImportTests.testCancelWizardCancelsJob(SmartImportTests.java:269)
Comment 1 Kalyan Prasad Tatavarthi CLA 2018-11-22 07:21:40 EST
I am not able to reproduce the test failure on local windows machine.
Comment 2 Kalyan Prasad Tatavarthi CLA 2019-05-23 04:26:43 EDT
This test also failedon Mac test machine for the build I20190522-1800 https://download.eclipse.org/eclipse/downloads/drops4/I20190522-1800/testresults/html/org.eclipse.ui.tests_ep412I-unit-mac64-java8_macosx.cocoa.x86_64_8.0.html

with the below stack trace

Progress monitor should be hidden within 10 seconds

junit.framework.AssertionFailedError: Progress monitor should be hidden within 10 seconds
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.Assert.assertTrue(Assert.java:22)
at junit.framework.Assert.assertFalse(Assert.java:39)
at junit.framework.TestCase.assertFalse(TestCase.java:210)
at org.eclipse.ui.tests.datatransfer.SmartImportTests.testCancelWizardCancelsJob(SmartImportTests.java:291)
Comment 3 Eclipse Genie CLA 2020-01-27 16:02:58 EST
New Gerrit change created: https://git.eclipse.org/r/156679
Comment 4 Paul Pazderski CLA 2020-01-27 16:07:34 EST
I looked into this test but couldn't find a reason for failure yet.

However I found a small bug in SmartImport which could be related (bug 559600) and have a rough idea what might be the failure reason for Windows.
Maybe File.listRoots()[0] isn't what the test author expected. In general the order is not guaranteed. I added a log statement to see what is actual used on test machine.
Comment 6 Paul Pazderski CLA 2020-01-28 03:43:22 EST
Quote from the latest test log:
> !ENTRY org.eclipse.ui.tests 1 0 2020-01-28 05:04:36.074
> !MESSAGE Testing job cancel with root: A:\

I love it to be right. In fact I expected exactly this result in the first place but was far too uncertain to make a prediction. I mean drive letter A:\ is in any case I know reserved for floppy drives and when was the last time you saw such things.

I'll push a patch.
Comment 7 Eclipse Genie CLA 2020-01-28 03:44:15 EST
New Gerrit change created: https://git.eclipse.org/r/156696
Comment 9 Dani Megert CLA 2020-01-29 03:51:32 EST
Paul, can you also look at this on Mac where it also fails?
Comment 10 Paul Pazderski CLA 2020-01-29 04:09:54 EST
No. Have no access to any Mac. I have not even a good guess why it is failing on Mac.

Things someone could do:
 - run test and look if the progress stuff/cancel button is indeed visible or falsely detected as visible
 - if visible click the cancel button while the test is running. If that works the test code to trigger cancel might be broken.
 - check manual in SDK if cancellation works on Mac
Comment 11 Kalyan Prasad Tatavarthi CLA 2020-01-30 08:41:33 EST
(In reply to Paul Pazderski from comment #10)
> No. Have no access to any Mac. I have not even a good guess why it is
> failing on Mac.
> 
> Things someone could do:
>  - run test and look if the progress stuff/cancel button is indeed visible
> or falsely detected as visible
>  - if visible click the cancel button while the test is running. If that
> works the test code to trigger cancel might be broken.
>  - check manual in SDK if cancellation works on Mac

I have tried the steps above on local Mac machine and the progress stuff/cancel button is indeed visible and the test code to trigger the cancellation as well as manual cancellation both work. This test does not fail on local mac machine.
Comment 12 Dani Megert CLA 2020-02-25 09:56:52 EST
What's the status here?
Comment 13 Kalyan Prasad Tatavarthi CLA 2020-02-26 00:31:38 EST
(In reply to Dani Megert from comment #12)
> What's the status here?

This test has not been failing in the IBuilds for some time atleast from I20200217-0600.
Comment 14 Dani Megert CLA 2020-02-27 09:12:14 EST
(In reply to Kalyan Prasad Tatavarthi from comment #13)
> (In reply to Dani Megert from comment #12)
> > What's the status here?
> 
> This test has not been failing in the IBuilds for some time atleast from
> I20200217-0600.
Please reopen if it fails again.
Comment 15 Kalyan Prasad Tatavarthi CLA 2020-04-30 06:54:57 EDT
(In reply to Dani Megert from comment #14)
> (In reply to Kalyan Prasad Tatavarthi from comment #13)
> > (In reply to Dani Megert from comment #12)
> > > What's the status here?
> > 
> > This test has not been failing in the IBuilds for some time atleast from
> > I20200217-0600.
> Please reopen if it fails again.

This test Failed in the build I20200429-1800 on Mac

https://download.eclipse.org/eclipse/downloads/drops4/I20200429-1800/testresults/html/org.eclipse.ui.tests_ep416I-unit-mac64-java8_macosx.cocoa.x86_64_8.0.html

It also failed in the 4.16 M1 build on Mac

https://download.eclipse.org/eclipse/downloads/drops4/S-4.16M1-202004090200/testresults/html/org.eclipse.ui.tests_ep416I-unit-mac64-java8_macosx.cocoa.x86_64_8.0.html

So Reopening the bug.