-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Failing test: Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/lens/runtime_fields·ts - lens app lens runtime fields should be able to add runtime field and use it #107854
Comments
Pinging @elastic/kibana-app (Team:KibanaApp) |
I will close it for now as it has failed only once and it could potentially be fixed by #108653 |
New failure: Jenkins Build |
New failure: Jenkins Build |
It seems like this is failing because of some race condition with entering the script: @mattkime do you have an idea how this could happen? |
I'm not sure but maybe @sebelga has an idea. Otherwise I can dig in deeper. |
New failure: CI Build |
I've had to fix a few race conditions while currently working on #109233. Once that PR will be merged it could solve this current issue. But... it is not guaranteed as the functional test needs to take into account timeouts/delays in place to validate the script (maybe it does but I haven't looked at the failing test). For indo: there is a 500ms debounce to validate the Painless syntax (no HTTP request, just Monaco validating Painless) and then once it is validated there is another 500ms debounce before making the API request to validate the script in ES. Which in turn has its own delay. So it is not a "click and save runtime field" with an immediate assert. The functional test needs to take into accounts those delays. I suggest we first wait for my PR to be merged before addressing the functional test. 👍 |
I didn't think it's about clicking the save button too fast, I suspected an issue within the monaco validation if the script is typed very fast. Something like:
|
I see, makes sense thanks for clarifying. I did make some slight update on how the validation is triggered and making sure the last validation call is the correct one (https://github.com/elastic/kibana/pull/109233/files#diff-e8f7632f9f81afdc17aa2042fb1298b260167c98a977d8d55bdc1fdff908f4aaR104). So then it might fix the functional test 👍 |
Cool, @sebelga I will wait for this Pr and close the test issue |
@flash1293 In #109233 I had to fix the functional test service to write the script in the Monaco editor as Selenium was doing some strange unpredictable behaviour and the autocomplete from the editor (closing parenthesis for ex) was getting in the way of entering the painless script. I am not sure if your functional test make use of the same |
@sebelga thanks for letting me know, once your PR is merged I'm going to take care of that. |
@sebelga @flash1293 Might be helpful to break that out into its own function as it seems we should be using this every time we enter text into the monaco editor, at least when autocomplete is functional. |
New failure: CI Build - main |
This is the first time this test failed this way (for some reason the newly created runtime field doesn't show up in the field list). Closing for now, if it comes back I will look into it. |
New failure: CI Build - main |
New failure: CI Build - 8.1 |
New failure: CI Build - main |
A test failed on a tracked branch
First failure: Jenkins Build
The text was updated successfully, but these errors were encountered: