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

Intermittent test "Tooltip should render the information severity when selected and render the corresponding icon when true" #1166

Closed
rajsite opened this issue Apr 6, 2023 · 3 comments · Fixed by #1180
Assignees
Labels
bug Something isn't working

Comments

@rajsite
Copy link
Member

rajsite commented Apr 6, 2023

🐛 Bug Report

Saw error in a build on main:

Firefox 108.0 (Linux x86_64): Executed 1940 of 1950 (1 FAILED) (skipped 10) (30.739 secs / 25.882 secs)
TOTAL: 1 FAILED, 1939 SUCCESS


1) should render the information severity when selected and render the corresponding icon when true
     Tooltip
     Error: Value of display was unexpectedly empty in /tmp/_karma_webpack_676330/commons.js (line 47927)
isIconVisible@/tmp/_karma_webpack_676330/commons.js:47927:19
@/tmp/_karma_webpack_676330/commons.js:48045:16

💻 Repro or Code Sample

🤔 Expected Behavior

😯 Current Behavior

💁 Possible Solution

🔦 Context

🌍 Your Environment

  • OS & Device: [e.g. MacOS, iOS, Windows, Linux] on [iPhone 7, PC]
  • Browser [e.g. Microsoft Edge, Google Chrome, Apple Safari, Mozilla FireFox]
  • Version [e.g. 1.8.0]
@rajsite rajsite added bug Something isn't working triage New issue that needs to be reviewed labels Apr 6, 2023
@rajsite
Copy link
Member Author

rajsite commented Apr 10, 2023

Related, should render the default state when selected is failing in firefox:

Firefox 108.0 (Linux x86_64) Tooltip should render the default state when selected FAILED
	Error: Value of display was unexpectedly empty in /tmp/_karma_webpack_476548/commons.js (line 48169)
	isIconVisible@/tmp/_karma_webpack_476548/commons.js:48169:19
	@/tmp/_karma_webpack_476548/commons.js:48240:16
    ✗ should render the default state when selected

https://github.com/ni/nimble/actions/runs/4661440580/jobs/8250719307?pr=1177#step:16:3923

@rajsite rajsite self-assigned this Apr 10, 2023
@m-akinc m-akinc self-assigned this Apr 10, 2023
@m-akinc
Copy link
Contributor

m-akinc commented Apr 10, 2023

It looks like any of the tests that call waitForIconVisibilityCheck() can fail this way. All that function does is call waitForUpdatesAsync() twice. I used to get this error consistently on Firefox until I added that second waitForUpdatesAsync().

I replicated one of these tests 3000 times and ran it a few times. It failed between 2-6 times per run (~0.1% failure rate). I then added a third waitForUpdatesAsync() call to waitForIconVisibilityCheck() and tried again. Couldn't get it to fail anymore. I kind of hate this solution, but it seems to address the problem somehow.

@rajsite
Copy link
Member Author

rajsite commented Apr 10, 2023

@m-akinc

but it seems to address the problem somehow

I disagree that it addresses the problem. We need a more robust solution then waiting 16ms * some random value (effectively what multiple waits is doing). I'm disabling the test in #1180 to get main stable and put it with the rest of the failing firefox tests. But feel free to investigate further

rajsite added a commit that referenced this issue Apr 10, 2023
# Pull Request

## 🤨 Rationale

As part of #1156 a change was made to tooltip icon tests to run in
Firefox. The implemented solution added arbitrary additional waits which
are turning out to be intermittent. This PR disables those tests until a
more robust implementation can be found. Additional investigation is
being skipped to get main stable at the moment.

Fixes #1166 (fixes the intermittency on main, and #1075 covers fixing
the actual disabled tests)

I'm also disabling the intermittent test associated with
#1172 as it was causing failues
locally trying to reproduce the intermittency of this test.

## 👩‍💻 Implementation

Revert the test changes and place them into the existing original bucket
of firefox failing tests.

## 🧪 Testing

Relying on CI

## ✅ Checklist

- [x] I have updated the project documentation to reflect my changes or
determined no changes are needed.
@rajsite rajsite removed the triage New issue that needs to be reviewed label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

2 participants