Bug 570000 - Provide command line option to disable UI freeze monitoring
Summary: Provide command line option to disable UI freeze monitoring
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.19   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 517227
  Show dependency tree
 
Reported: 2021-01-01 03:24 EST by Sravan Kumar Lakkimsetti CLA
Modified: 2021-06-04 00:54 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sravan Kumar Lakkimsetti CLA 2021-01-01 03:24:32 EST
With reduced threshold for UI monitoring we are seeing spurious test failures (see bug 517227). 

This reduction done as part of bug 566481. This aggravated spurious test failures problem.

To fix this we need a way to disable UI monitoring. 

Need a command line option to disable UI monitoring to include it in tests.
Comment 1 Sravan Kumar Lakkimsetti CLA 2021-01-01 03:26:24 EST
Open this bug based on bug 566481 comment 8

@lars

Can you please suggest on how to proceed?
Comment 2 Sarika Sinha CLA 2021-01-06 05:53:33 EST
@Lars,
Can you provide the details, every other day Bug 517227 is surfacing.
Comment 3 Lars Vogel CLA 2021-01-06 05:59:58 EST
(In reply to Sravan Kumar Lakkimsetti from comment #0)
> To fix this we need a way to disable UI monitoring. 

UI  monitoring can be set via preferences. IIRC I have seen JDT Debug setting preference before tests. Can this also be used here? 

If yes, you can use the preference spy from the e4 spies to find the correct preference store. (I can also do that, in case you don't feel comfortable with the e4 spies)
Comment 4 Sravan Kumar Lakkimsetti CLA 2021-01-06 06:14:22 EST
The automated tests run using ant. Its really not possible to use UI to set the preferences in the automated tests. 

here is the ant target that is triggered when we trigger automated tests for ant.ui bundle

https://git.eclipse.org/c/platform/eclipse.platform.git/tree/ant/org.eclipse.ant.tests.ui/test.xml#n56

Please let us know how to set this preference here?
Comment 5 Lars Vogel CLA 2021-01-06 06:22:03 EST
(In reply to Sravan Kumar Lakkimsetti from comment #4)
> The automated tests run using ant. Its really not possible to use UI to set
> the preferences in the automated tests. 
> 
> here is the ant target that is triggered when we trigger automated tests for
> ant.ui bundle
> 
> https://git.eclipse.org/c/platform/eclipse.platform.git/tree/ant/org.eclipse.
> ant.tests.ui/test.xml#n56
> 
> Please let us know how to set this preference here?

ProcessConsoleManagerTests line 100 shows an example for setting the preferences in tests.
Comment 6 Niraj Modi CLA 2021-02-19 07:59:30 EST
Removing milestone from 4.19 M3 to 4.19, please re-target accordingly.
Comment 7 Kalyan Prasad Tatavarthi CLA 2021-03-02 02:09:48 EST
Mass move out of 4.19
Comment 8 Kalyan Prasad Tatavarthi CLA 2021-06-04 00:54:32 EDT
Mass Move out of 4.20