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 HoverTest.testEnabledWhenHover() #926

Open
fedejeanne opened this issue Jul 10, 2023 · 1 comment
Open

Random failing of HoverTest.testEnabledWhenHover() #926

fedejeanne opened this issue Jul 10, 2023 · 1 comment
Labels
help wanted Extra attention is needed test junit test related things

Comments

@fedejeanne
Copy link
Contributor

The test HoverTest.testEnabledWhenHover() failed for Linux in this build of #755 .

org.eclipse.ui.genericeditor.tests.HoverTest.testEnabledWhenHover -- Time elapsed: 12.51 s <<< FAILURE!
java.lang.AssertionError
	at org.junit.Assert.fail(Assert.java:87)
	at org.junit.Assert.fail(Assert.java:96)
	at org.eclipse.ui.genericeditor.tests.HoverTest.getHoverShell(HoverTest.java:175)
	at org.eclipse.ui.genericeditor.tests.HoverTest.testEnabledWhenHover(HoverTest.java:90)
@iloveeclipse
Copy link
Member

Fails often in github actions:
https://github.com/eclipse-platform/eclipse.platform.ui/runs/16899215954

java.lang.AssertionError
	at org.junit.Assert.fail(Assert.java:87)
	at org.junit.Assert.fail(Assert.java:96)
	at org.eclipse.ui.genericeditor.tests.HoverTest.getHoverShell(HoverTest.java:175)
	at org.eclipse.ui.genericeditor.tests.HoverTest.testEnabledWhenHover(HoverTest.java:90)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
FocusControl: 
  ToolBar {} [layout=null]
    CTabFolder {} [layout=org.eclipse.swt.custom.CTabFolderLayout@738153d8]
      Composite {} [layout=org.eclipse.e4.ui.workbench.renderers.swt.SashLayout@1a3272e0]
        Composite {} [layout=FillLayout {type=SWT.HORIZONTAL}]
          Composite {} [layout=StackLayout {topControl=Composite {} [layout=FillLayout {type=SWT.HORIZONTAL}]}]
            Composite {} [layout=org.eclipse.e4.ui.workbench.renderers.swt.SashLayout@7bc3c59f]
              Composite {} [layout=FillLayout {type=SWT.HORIZONTAL}]
                Shell {data - org.eclipse.ui.genericeditor.tests.HoverTest1695059443047/enabledWhen.txt} [layout=org.eclipse.e4.ui.workbench.renderers.swt.TrimmedPartLayout@6db2a260]
Shells: 
  inactive, invisible: Shell {PartRenderingEngine's limbo} [layout=null] @ Rectangle {0, 10000, 800, 640}
  active, visible: Shell {data - org.eclipse.ui.genericeditor.tests.HoverTest1695059443047/enabledWhen.txt} [layout=org.eclipse.e4.ui.workbench.renderers.swt.TrimmedPartLayout@6db2a260] @ Rectangle {0, 0, 1024, 768}
  inactive, invisible: Shell {} [layout=null] @ Rectangle {0, 0, 800, 640}
Client area: Rectangle {0, 0, 1280, 1024}
Cursor location: Point {306, 102}
CursorControl: 
  StyledText {} [layout=null]
    Canvas {} [layout=org.eclipse.jface.text.source.SourceViewer$RulerLayout@56b66cc6]
      Composite {} [layout=FillLayout {type=SWT.HORIZONTAL}]
        Composite {} [layout=StackLayout {topControl=Composite {} [layout=FillLayout {type=SWT.HORIZONTAL}]}]
          Composite {} [layout=FillLayout {type=SWT.HORIZONTAL}]
            ContributedPartRenderer$1 {} [layout=FillLayout {type=SWT.VERTICAL}]
              CTabFolder {} [layout=org.eclipse.swt.custom.CTabFolderLayout@6f076c53]
                Composite {} [layout=FillLayout {type=SWT.HORIZONTAL}]
                  Composite {} [layout=FillLayout {type=SWT.HORIZONTAL}]
                    Composite {} [layout=org.eclipse.e4.ui.workbench.renderers.swt.SashLayout@1a3272e0]
                      Composite {} [layout=FillLayout {type=SWT.HORIZONTAL}]
                        Composite {} [layout=StackLayout {topControl=Composite {} [layout=FillLayout {type=SWT.HORIZONTAL}]}]
                          Composite {} [layout=org.eclipse.e4.ui.workbench.renderers.swt.SashLayout@7bc3c59f]
                            Composite {} [layout=FillLayout {type=SWT.HORIZONTAL}]
                              Shell {data - org.eclipse.ui.genericeditor.tests.HoverTest1695059443047/enabledWhen.txt} [layout=org.eclipse.e4.ui.workbench.renderers.swt.TrimmedPartLayout@6db2a260]
Display @ Rectangle {0, 0, 1280, 1024}

@jukzi jukzi added the test junit test related things label Nov 28, 2023
@fedejeanne fedejeanne added the help wanted Extra attention is needed label Dec 8, 2023
HeikoKlare added a commit to HeikoKlare/eclipse.platform.ui that referenced this issue Jul 16, 2024
…orm#926 eclipse-platform#1808

This contributes to fixing the randomly failing HoverTests:
- Removes unnecessary focus enforcing: The code checks for the text
editor having focus and afterwards uses different methods to force focus
to the widget's shell again. This is unnecessary and is only prone to
introduce further problems.
- Introduces further assertions: in order to better locate the cause of
the failing tests, assertions are added for the conditions, on which the
execution waits, to be actually fulfilled.

Contributes to
eclipse-platform#926
Contributes to
eclipse-platform#1808
HeikoKlare added a commit to HeikoKlare/eclipse.platform.ui that referenced this issue Jul 16, 2024
…orm#926 eclipse-platform#1808

This contributes to fixing the randomly failing HoverTests:
- Removes unnecessary focus enforcing: The code checks for the text
editor having focus and afterwards uses different methods to force focus
to the widget's shell again. This is unnecessary and is only prone to
introduce further problems.
- Introduces further assertions: in order to better locate the cause of
the failing tests, assertions are added for the conditions, on which the
execution waits, to be actually fulfilled.

Contributes to
eclipse-platform#926
Contributes to
eclipse-platform#1808
HeikoKlare added a commit to HeikoKlare/eclipse.platform.ui that referenced this issue Jul 16, 2024
…orm#926 eclipse-platform#1808

This contributes to fixing the randomly failing HoverTests:
- Removes unnecessary focus enforcing: The code checks for the text
editor having focus and afterwards uses different methods to force focus
to the widget's shell again. This is unnecessary and is only prone to
introduce further problems.
- Introduces further assertions: in order to better locate the cause of
the failing tests, assertions are added for the conditions, on which the
execution waits, to be actually fulfilled.
- Adds a retry functionality for simulating the hover event.

Contributes to
eclipse-platform#926
Contributes to
eclipse-platform#1808
HeikoKlare added a commit to HeikoKlare/eclipse.platform.ui that referenced this issue Jul 16, 2024
…orm#926 eclipse-platform#1808

This contributes to fixing the randomly failing HoverTests:
- Removes unnecessary focus enforcing: The code checks for the text
editor having focus and afterwards uses different methods to force focus
to the widget's shell again. This is unnecessary and is only prone to
introduce further problems.
- Introduces further assertions: in order to better locate the cause of
the failing tests, assertions are added for the conditions, on which the
execution waits, to be actually fulfilled.
- Adds a retry functionality for simulating the hover event.

Contributes to
eclipse-platform#926
Contributes to
eclipse-platform#1808
HeikoKlare added a commit to HeikoKlare/eclipse.platform.ui that referenced this issue Jul 23, 2024
…orm#926 eclipse-platform#1808

This contributes to fixing the randomly failing HoverTests:
- Removes unnecessary focus enforcing: The code checks for the text
editor having focus and afterwards uses different methods to force focus
to the widget's shell again. This is unnecessary and is only prone to
introduce further problems.
- Introduces further assertions: in order to better locate the cause of
the failing tests, assertions are added for the conditions, on which the
execution waits, to be actually fulfilled.
- Adds a retry functionality for simulating the hover event.

Contributes to
eclipse-platform#926
Contributes to
eclipse-platform#1808
HeikoKlare added a commit to HeikoKlare/eclipse.platform.ui that referenced this issue Aug 7, 2024
…orm#926 eclipse-platform#1808

This contributes to fixing the randomly failing HoverTests:
- Removes unnecessary focus enforcing: The code checks for the text
editor having focus and afterwards uses different methods to force focus
to the widget's shell again. This is unnecessary and is only prone to
introduce further problems.
- Introduces further assertions: in order to better locate the cause of
the failing tests, assertions are added for the conditions, on which the
execution waits, to be actually fulfilled.
- Adds a retry functionality for simulating the hover event.

Contributes to
eclipse-platform#926
Contributes to
eclipse-platform#1808
HeikoKlare added a commit to HeikoKlare/eclipse.platform.ui that referenced this issue Aug 19, 2024
…orm#926 eclipse-platform#1808

This contributes to fixing the randomly failing HoverTests:
- Removes unnecessary focus enforcing: The code checks for the text
editor having focus and afterwards uses different methods to force focus
to the widget's shell again. This is unnecessary and is only prone to
introduce further problems.
- Introduces further assertions: in order to better locate the cause of
the failing tests, assertions are added for the conditions, on which the
execution waits, to be actually fulfilled.
- Adds a retry functionality for simulating the hover event.

Contributes to
eclipse-platform#926
Contributes to
eclipse-platform#1808
HeikoKlare added a commit to HeikoKlare/eclipse.platform.ui that referenced this issue Sep 4, 2024
…orm#926 eclipse-platform#1808

This contributes to fixing the randomly failing HoverTests:
- Removes unnecessary focus enforcing: The code checks for the text
editor having focus and afterwards uses different methods to force focus
to the widget's shell again. This is unnecessary and is only prone to
introduce further problems.
- Introduces further assertions: in order to better locate the cause of
the failing tests, assertions are added for the conditions, on which the
execution waits, to be actually fulfilled.
- Adds a retry functionality for simulating the hover event.

Contributes to
eclipse-platform#926
Contributes to
eclipse-platform#1808
HeikoKlare added a commit to HeikoKlare/eclipse.platform.ui that referenced this issue Nov 7, 2024
…orm#926 eclipse-platform#1808

This contributes to fixing the randomly failing HoverTests:
- Removes unnecessary focus enforcing: The code checks for the text
editor having focus and afterwards uses different methods to force focus
to the widget's shell again. This is unnecessary and is only prone to
introduce further problems.
- Introduces further assertions: in order to better locate the cause of
the failing tests, assertions are added for the conditions, on which the
execution waits, to be actually fulfilled.
- Adds a retry functionality for simulating the hover event.

Contributes to
eclipse-platform#926
Contributes to
eclipse-platform#1808
HeikoKlare added a commit to HeikoKlare/eclipse.platform.ui that referenced this issue Nov 7, 2024
…orm#926 eclipse-platform#1808

This contributes to fixing the randomly failing HoverTests:
- Removes unnecessary focus enforcing: The code checks for the text
editor having focus and afterwards uses different methods to force focus
to the widget's shell again. This is unnecessary and is only prone to
introduce further problems.
- Introduces further assertions: in order to better locate the cause of
the failing tests, assertions are added for the conditions, on which the
execution waits, to be actually fulfilled.
- Adds a retry functionality for simulating the hover event.

Contributes to
eclipse-platform#926
Contributes to
eclipse-platform#1808
HeikoKlare added a commit to HeikoKlare/eclipse.platform.ui that referenced this issue Nov 8, 2024
…orm#926 eclipse-platform#1808

This contributes to fixing the randomly failing HoverTests:
- Removes unnecessary focus enforcing: The code checks for the text
editor having focus and afterwards uses different methods to force focus
to the widget's shell again. This is unnecessary and is only prone to
introduce further problems.
- Introduces further assertions: in order to better locate the cause of
the failing tests, assertions are added for the conditions, on which the
execution waits, to be actually fulfilled.
- Adds a retry functionality for simulating the hover event.

Contributes to
eclipse-platform#926
Contributes to
eclipse-platform#1808
HeikoKlare added a commit to HeikoKlare/eclipse.platform.ui that referenced this issue Nov 8, 2024
…orm#926 eclipse-platform#1808

This contributes to fixing the randomly failing HoverTests:
- Removes unnecessary focus enforcing: The code checks for the text
editor having focus and afterwards uses different methods to force focus
to the widget's shell again. This is unnecessary and is only prone to
introduce further problems.
- Introduces further assertions: in order to better locate the cause of
the failing tests, assertions are added for the conditions, on which the
execution waits, to be actually fulfilled.
- Adds a retry functionality for simulating the hover event.

Contributes to
eclipse-platform#926
Contributes to
eclipse-platform#1808
HeikoKlare added a commit that referenced this issue Nov 8, 2024
This contributes to fixing the randomly failing HoverTests:
- Removes unnecessary focus enforcing: The code checks for the text
editor having focus and afterwards uses different methods to force focus
to the widget's shell again. This is unnecessary and is only prone to
introduce further problems.
- Introduces further assertions: in order to better locate the cause of
the failing tests, assertions are added for the conditions, on which the
execution waits, to be actually fulfilled.
- Adds a retry functionality for simulating the hover event.

Contributes to
#926
Contributes to
#1808
mai-tran-03 pushed a commit to mai-tran-03/eclipse.platform.ui that referenced this issue Dec 10, 2024
…orm#926 eclipse-platform#1808

This contributes to fixing the randomly failing HoverTests:
- Removes unnecessary focus enforcing: The code checks for the text
editor having focus and afterwards uses different methods to force focus
to the widget's shell again. This is unnecessary and is only prone to
introduce further problems.
- Introduces further assertions: in order to better locate the cause of
the failing tests, assertions are added for the conditions, on which the
execution waits, to be actually fulfilled.
- Adds a retry functionality for simulating the hover event.

Contributes to
eclipse-platform#926
Contributes to
eclipse-platform#1808
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed test junit test related things
Projects
None yet
Development

No branches or pull requests

3 participants