Bug 485167 - [tests] Reactivate disabled UI tests to run regularly with UiTestSuite
Summary: [tests] Reactivate disabled UI tests to run regularly with UiTestSuite
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.6   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted, test
: 366451 366541 381873 (view as bug list)
Depends on: 485021
Blocks: 543570
  Show dependency tree
 
Reported: 2016-01-04 12:49 EST by Andrey Loskutov CLA
Modified: 2020-06-12 06:05 EDT (History)
8 users (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 2016-01-04 12:49:30 EST
I have no idea why but commit https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=328d2f9ad8a06f4c7519c305ae43d008e7c628a0 ("Activating more UI tests that should be run regularly.") actually *disabled* lot of tests, for example PropertySheetTestSuite. 


Currently not enabled tests:

PropertySheetTestSuite.class,
QuickAccessTestSuite.class,
InternalTestSuite.class,
AdaptableTestSuite.class,
ZoomTestSuite.class,
DynamicPluginsTestSuite.class,
MultiPageEditorTestSuite.class,
CommandsTestSuite.class,
ContextsTestSuite.class,
DragTestSuite.class,
IntroTestSuite.class,
MenusTestSuite.class,
PresentationsTestSuite.class,
LeakTests.class,
ConcurrencyTestSuite.class,
MultiEditorTestSuite.class,
FilteredTreeTests.class,
StatusHandlingTestSuite.class,
OpenSystemInPlaceEditorTest.class

I've stumbled on this while fixing bug 485021 - if the PropertySheetTestSuite would be enabled in the UiTestSuite, we would immediately see the regression while fixing bug 479855.

So I've enabled now PropertySheetTestSuite (it has *now* no failures) and plan to enable other "green" test suites unless somebody explains why they still should be disabled.

Patch for re-enabling PropertySheetTestSuite follows.
Comment 1 Eclipse Genie CLA 2016-01-04 12:50:45 EST
New Gerrit change created: https://git.eclipse.org/r/63485
Comment 2 Eclipse Genie CLA 2016-01-04 12:54:17 EST
New Gerrit change created: https://git.eclipse.org/r/63486
Comment 3 Eclipse Genie CLA 2016-01-04 12:57:49 EST
New Gerrit change created: https://git.eclipse.org/r/63487
Comment 4 Eclipse Genie CLA 2016-01-04 13:00:50 EST
New Gerrit change created: https://git.eclipse.org/r/63488
Comment 5 Eclipse Genie CLA 2016-01-04 13:09:04 EST
New Gerrit change created: https://git.eclipse.org/r/63490
Comment 6 Eclipse Genie CLA 2016-01-04 13:36:52 EST
New Gerrit change created: https://git.eclipse.org/r/63493
Comment 7 Eclipse Genie CLA 2016-01-04 13:39:14 EST
New Gerrit change created: https://git.eclipse.org/r/63494
Comment 15 Andrey Loskutov CLA 2016-01-07 11:07:52 EST
Giving back to UI team, I'm not planning to continue here yet (no time).

TODO: check which tests can be enabled from the list below (see /org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/UiTestSuite.java):

QuickAccessTestSuite.class,
InternalTestSuite.class,
ZoomTestSuite.class,
DynamicPluginsTestSuite.class,
CommandsTestSuite.class,
DragTestSuite.class,
IntroTestSuite.class,
MenusTestSuite.class,
PresentationsTestSuite.class,
LeakTests.class,
MultiEditorTestSuite.class,
OpenSystemInPlaceEditorTest.class
Comment 16 Tim Neumann CLA 2019-01-22 11:44:44 EST
While developing tests for BUG 543570 I noticed, that the InternalTestSuite.class is still disabled. But the tests would fit in there best. For that reason I will work on enabling it again now.

Additionally we plan to provide patches for the other suites in the near future.
Comment 17 Eclipse Genie CLA 2019-01-24 05:07:17 EST
New Gerrit change created: https://git.eclipse.org/r/135681
Comment 19 Eclipse Genie CLA 2019-02-17 10:42:35 EST
New Gerrit change created: https://git.eclipse.org/r/137089
Comment 21 Rolf Theunissen CLA 2019-02-25 10:31:49 EST
I just noticed that the target platform that used is different, when running the tests with maven/tycho or when running with the provided launch configurations. Which makes some tests unstable.

When the test are run by tycho, the only the plugins that the test plugin depends on are included, and some additional configured in the pom.xml. Also as no product or application is specified, the default application 'org.eclipse.ui.ide.workbench' is used.

When using the launch configuration, all plugins in the workspace are included.
As a result, also the example plugins end up in the dependencies. Some of those plugins influence the behavior of some tests, e.g., extra menu items are added. Also, for launching the 'org.eclipse.sdk.ide' product is used. 

For me it would be beneficial to bring the launch configurations in line with the tycho configuration. That is, change the product/application and only select the specific dependencies of the test plugin. This would require that the launch configuration is updated if any dependency (in the whole chain) is changed. I am not aware if this can be done automatically. Is it worth making these changes?
Comment 22 Eclipse Genie CLA 2019-03-17 15:09:36 EDT
New Gerrit change created: https://git.eclipse.org/r/138905
Comment 23 Eclipse Genie CLA 2019-03-23 13:46:55 EDT
New Gerrit change created: https://git.eclipse.org/r/139372
Comment 24 Rolf Theunissen CLA 2019-03-23 13:54:04 EDT
Also the session tests are currently broken, and not run automatically, see:

UI-Session Tests.launch

SessionTests.class
Comment 26 Rolf Theunissen CLA 2019-03-23 17:09:38 EDT
Many of the failing tests are the leftovers of bug 351851; code was made to compile in the 4.2 branch, however, not all (many) testcases were made to work correctly afterwards.

See for instance commit 412bb792f91ba461ddb4451860a72ff58cf8a279 and 88771cf53356ffabfbeab67c9db3ff068e2b60e5, among others
Comment 27 Rolf Theunissen CLA 2019-03-24 16:16:32 EDT
DynamicPluginsTestSuite fails due to dependencies on "Eclipse 2.0 Style Plugin Support", which has been removed, see Bug 520235.
Comment 28 Rolf Theunissen CLA 2019-03-25 08:17:08 EDT
MultiEditorTest fail due to 'Bug 396528 - [MPE] Incomplete implementation in AbstractMultiEditor', i.e. MultiEditor is not fully functional on E4 yet. Besides, the tests are unstable, see Bug 366522.
Comment 30 Dani Megert CLA 2019-04-02 05:56:24 EDT
Andrey, since you moved it back to the inbox (OK), I assume we also have to remove the target milestone, right?
Comment 31 Andrey Loskutov CLA 2019-04-02 06:39:11 EDT
(In reply to Dani Megert from comment #30)
> Andrey, since you moved it back to the inbox (OK), I assume we also have to
> remove the target milestone, right?

I see no bandwidth on my side, right.
Comment 33 Eclipse Genie CLA 2019-05-21 16:24:48 EDT
New Gerrit change created: https://git.eclipse.org/r/142555
Comment 34 Rolf Theunissen CLA 2019-05-22 08:13:05 EDT
Bug 366451 - [Compatibility] many failures in ui.tests

Seems to be the umbrella bug to get all UI tests to pass within the E4 context.
Comment 35 Dani Megert CLA 2019-05-29 11:34:51 EDT
*** Bug 366541 has been marked as a duplicate of this bug. ***
Comment 37 Paul Pazderski CLA 2019-11-07 05:12:17 EST
Bug 288358 disabled ProgressContantsTest.testKeepProperty. I've run the test successful on Windows and Linux. I assume something fixed the problem in the last 10 years.
Comment 38 Eclipse Genie CLA 2019-11-07 05:14:00 EST
New Gerrit change created: https://git.eclipse.org/r/152235
Comment 40 Paul Pazderski CLA 2019-11-07 10:36:02 EST
(In reply to Paul Pazderski from comment #37)
> Bug 288358 disabled ProgressContantsTest.testKeepProperty. I've run the test
> successful on Windows and Linux. I assume something fixed the problem in the
> last 10 years.

After some more tests I saw it sometimes failing. It is probably a timing problem in the test. UI has not always enough time to create the finished items.
Comment 41 Eclipse Genie CLA 2019-11-07 10:37:27 EST
New Gerrit change created: https://git.eclipse.org/r/152259
Comment 43 Kalyan Prasad Tatavarthi CLA 2019-11-21 06:04:12 EST
(In reply to Eclipse Genie from comment #42)
> Gerrit change https://git.eclipse.org/r/152259 was merged to [master].
> Commit:
> http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=1e8bf9847caf7828f11087a9a64851a7c2a8e625
> 

The test ProgressContantsTest.testKeepOneProperty fails on windows intermittently.
https://download.eclipse.org/eclipse/downloads/drops4/I20191120-1800/testresults/html/org.eclipse.ui.tests_ep414I-unit-win32-java8_win32.win32.x86_64_8.0.html
Comment 44 Paul Pazderski CLA 2019-11-21 06:19:29 EST
(In reply to Kalyan Prasad Tatavarthi from comment #43)
> (In reply to Eclipse Genie from comment #42)
> > Gerrit change https://git.eclipse.org/r/152259 was merged to [master].
> > Commit:
> > http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=1e8bf9847caf7828f11087a9a64851a7c2a8e625
> > 
> 
> The test ProgressContantsTest.testKeepOneProperty fails on windows
> intermittently.
> https://download.eclipse.org/eclipse/downloads/drops4/I20191120-1800/
> testresults/html/org.eclipse.ui.tests_ep414I-unit-win32-java8_win32.win32.
> x86_64_8.0.html

Will check. But note that the quoted commit enabled the keep test and the failing one is the keepOne test from bug 552952.
Comment 45 Rolf Theunissen CLA 2019-11-21 07:21:46 EST
(In reply to Kalyan Prasad Tatavarthi from comment #43)

> The test ProgressContantsTest.testKeepOneProperty fails on windows
> intermittently.
> https://download.eclipse.org/eclipse/downloads/drops4/I20191120-1800/
> testresults/html/org.eclipse.ui.tests_ep414I-unit-win32-java8_win32.win32.
> x86_64_8.0.html

I have seen it fail on Jenkins too:
https://ci.eclipse.org/platform/job/eclipse.platform.ui-Gerrit/20928/
Comment 46 Paul Pazderski CLA 2019-11-22 05:12:11 EST
I merged

(In reply to Eclipse Genie from bug 552952 comment #5)
> Gerrit change https://git.eclipse.org/r/153115 was merged to [master].
> Commit:
> http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=8df4811fb2a512fae7806b29b3c583325006f838

ProgressContantsTest.testKeepOneProperty should not fail anymore.
Comment 47 Lars Vogel CLA 2020-03-31 11:24:00 EDT
*** Bug 366451 has been marked as a duplicate of this bug. ***
Comment 48 Rolf Theunissen CLA 2020-03-31 11:55:24 EDT
*** Bug 381873 has been marked as a duplicate of this bug. ***
Comment 49 Lars Vogel CLA 2020-06-12 06:05:18 EDT
AFAICS we have Bug 366520, 366595, 366635, 549802 for the remaining tasks. As this bug is already very long and saw lots of commits, I close this one as fixed. If there are more tests to activate, please open new bug reports.