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

[Lens] Adds dynamic table cell coloring #95217

Merged
merged 158 commits into from
May 28, 2021

Conversation

dej611
Copy link
Contributor

@dej611 dej611 commented Mar 23, 2021

Summary

Fixes: #66192, #68428, #96401, #96402

This PR adds the dynamic cell value coloring to the Lens application.

Iteration 2 completed:

  • Color stops are now always available and tweakable from the beginning for each palette
  • Blurred difference between pre-defined and custom palettes
    • predefined are used as color seed
  • Color stops are sorted when the "stop row" gets unfocused
  • Only 5 stops to start with. The only way to add more stops is thru a manual process
  • Cannot define less than 2 stops as for now
  • Reverse is applied at UI level (not by the palette service)
  • Built shared components (color_stops) and shared logic to reuse for other features
  • Extended Palette service to handle new options
  • Color stops numbers reference the actual data in the table
    • Same applies to percent but as it is less expicit, a help tooltip is provided with this clarification
    • for transposed columns, the data domain is computed across the untransposed data

Screenshot 2021-05-12 at 14 10 08

Screenshot 2021-05-12 at 14 10 31

Screenshot 2021-05-12 at 14 10 39

Screenshot 2021-05-12 at 14 10 47

Screenshot 2021-05-12 at 14 11 06

Screenshot 2021-05-12 at 14 14 26

Screenshot 2021-03-26 at 11 34 38

Screenshot 2021-03-26 at 11 36 04

Iteration 1 Plan: * Lens * [x] Enable a palette editor for numeric dimensions in the Datatable visualization * [x] `None` | `Cell` | `Text` options * [x] Create a panel to edit predefined palettes and ranges * [x] Filter out palette with no dynamic range * [x] Absolute and percentage ranges feature * [x] Auto range * [x] Reverse palette feature * [x] Steps input (not in the initial design) * [x] Range min/max validation * [x] `Gradient`/`Fixed` options * [x] Create a panel to create new custom palettes * [x] Add new `Stepped` option (pending #96459) * [x] Color stops editor (default to 3 stops to start with) * [x] Carry last predefined palette to `Custom` editor * [x] Reverse palette feature * [x] Absolute and percentage ranges feature * [x] Auto range * [x] High contrast computation for `Cell` dynamic coloring * [x] Checked light/dark themes * [x] Removed unused `NativeRenderer` code in the existing `PalettePicker` component (as discussed offline) * [x] Implement flyout for Panel * [x] Add component/unit tests for dimension editor * [x] Add component/unit tests for datatable rendering * [x] Add a11y/functional tests * Palette Service/Definition * [x] Extended Palette definition with more parameters to handle ranges/custom stops * [x] Add tests for new parameters * [x] Extended `PaletteDefinition` interface with new `getGradientColorHelper` for dynamic gradient coloring * [x] Migrated previous `getColor(s)` to `getCategoricalColor(s)` * [x] Add tests for new method * [x] Added some documentation about custom palettes in Lens Screenshot 2021-03-26 at 11 34 38 Screenshot 2021-03-26 at 11 36 04

Latest screenshots:

Screenshot 2021-04-20 at 15 14 52

Reverse colors will also reverse the palette preview:

Screenshot 2021-04-20 at 15 14 59

Reverse colors with custom palette:

Screenshot 2021-04-20 at 15 15 23

Custom palette with percentage values (note stop thumbs values are synced with range):
Screenshot 2021-04-20 at 15 15 28
Screenshot 2021-04-20 at 15 15 56

Custom palette with Auto define range sets the stops to 0-100%:

Screenshot 2021-04-20 at 15 16 06

Stepped gradient with custom palette:

Screenshot 2021-04-20 at 15 16 18

Tooltip on auto range set:

Screenshot 2021-04-20 at 15 55 08

Palette indicator on dimension field when dynamic coloring is enabled:

Screenshot 2021-04-20 at 15 55 29

Discussion

Colors are quite a big topic, and while many arguments in this topic have been planned and thought through already, there may be specific scenarios to address.

High contrast

I've used the isDarkColor from the EUI toolkit, but I'm not super happy about the final result. Canvas has a proprietary solution which is more aggressive on the contrast check and provider, in my opinion, a nicer result.
As for now I've left the EUI implementation which should be WACG compliant.
this applies for the Cell coloring mode (cell background).

Text coloring is a bit more tricky and at the moment I'm looking for a solution for that. As shown in the pictures above, the Gray scale palette at the bottom right (text coloring) has some readability issue.

Palette Display vs Stops Editor mismatch

There's a mismatch in rendering fixed palettes between the Display and StopsEditor in EUI, where the former shifts left all the color segments. There's currently an open issue in the EUI repo: elastic/eui#4664

This can be a problem, maybe solvable on the Lens side (haven't tried yet): solved.

Force clean the DataGrid style

The datagrid is colored using a useEffect hook, as explained in the EUI documentation. There's a clean up issue which is currently handled with the returned function in the useEffect.
There's an open issue in the EUI repo for that: elastic/eui#4665

This is already handled on the Lens side with the forced cleanup.

Transposable columns

How should range be computed for Transposable columns?
This is probably a general "range" discussion about Transposable columns, but in this context, it would be nice to make it clear.
At the moment each column computes its own range and colors are associated in "column isolation".
I may see that in some context it would be nice to have an "overall" range computed for the dimension transposed.
Is the current decision ok? Should I open a new issue for the "overall" option?

Extended range coloring

At the moment the color range is effectively working as in the picture here, where the extreme color stops are "extended":

Screenshot 2021-03-26 at 14 43 57

If the green stop marks the minValue: 0, any negative number will still be colored as green. The same applies for any value above the violet mark.
While this makes sense, a useful feature would be to not extends the extremes in some context, and only color within the given range. This is probably an enhancement: do you think it make sense to open an issue for it?

Note since @MichaelMarcialis feedback this has changed. Values out of range are now not colored anymore.
Added continuity option to handle this.

Checklist

Delete any items that are not applicable to this PR.

@dej611
Copy link
Contributor Author

dej611 commented Mar 24, 2021

@elasticmachine merge upstream

@dej611 dej611 requested a review from wylieconlon May 27, 2021 07:37
@mbondyra
Copy link
Contributor

@elasticmachine merge upstream


return (
<EuiFlexItem
key={id}
Copy link
Contributor

@mbondyra mbondyra May 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's still something not workiing completely right - I think it's because the id is not persisted between rerenders.
What happens is that when I type a number the focus is being lost IF the number change won't cause reordering.
Try for example with ranges [20,40,60,80] to change 20 to 2 and then try to add zero again.

Same happens when you changed the colors - it closes on debounce instead of keeping it open.

Copy link
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks almost good to merge for me.

Apart from the issue with temporary ids Marta found the current logic seems to break a bit if no data is rendered and changes are made:
Screenshot 2021-05-27 at 18 17 33

It's an edge case - I suggest to just default to 0 - 100 in that case because we can't really do it "right" and it shouldn't happen often.

@dej611
Copy link
Contributor Author

dej611 commented May 27, 2021

Both issues should have been addressed now.
It's interesting how the behaviour changes in Table if we have a date histogram or just a metric with no data. Anyway a data range fallback is now inherited from Percent in case of no data.

As for the id references I've used first a positional cache for the ids, but then restored a plain id generation.

@flash1293
Copy link
Contributor

flash1293 commented May 27, 2021

Now the values don't update when switching between percentage and number:

Kapture 2021-05-27 at 19 24 48

Should we take a step back here and try to stabilize this logic a bit?

Copy link
Contributor

@wylieconlon wylieconlon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the issues that @flash1293 and @mbondyra have already commented on, I wasn't able to find anything new. I did see that the error when there is no active data has turned into a console warning only, saying The specified value "NaN" cannot be parsed. It does not appear to break anything, but it would be nice if we could avoid this case.

@flash1293
Copy link
Contributor

Looks great to me except for the empty data case.

  • Configure a custom palette in percent mode
  • Change time range so no data is rendered
  • Go to palette picker
  • Switch to number
  • super-technical NaN error

Screenshot 2021-05-28 at 10 06 22

@dej611
Copy link
Contributor Author

dej611 commented May 28, 2021

The previous fix was operation at the wrong level. Fixed the common issue at the root level, so now it should be consistent and no more warnings should be shown in the console.

@dej611
Copy link
Contributor Author

dej611 commented May 28, 2021

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/ml/anomaly_detection/saved_search_job·ts.machine learning anomaly detection saved search with filter and kuery query job creation loads the multi metric wizard for the source data

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:00]         └-: machine learning
[00:00:00]           └-> "before all" hook in "machine learning"
[00:00:00]           └-: 
[00:00:00]             └-> "before all" hook in ""
[00:00:00]             └-> "before all" hook in ""
[00:00:00]               │ debg creating role ft_ml_source
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_ml_source]
[00:00:00]               │ debg creating role ft_ml_source_readonly
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_ml_source_readonly]
[00:00:00]               │ debg creating role ft_ml_dest
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_ml_dest]
[00:00:00]               │ debg creating role ft_ml_dest_readonly
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_ml_dest_readonly]
[00:00:00]               │ debg creating role ft_ml_ui_extras
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_ml_ui_extras]
[00:00:00]               │ debg creating role ft_default_space_ml_all
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_default_space_ml_all]
[00:00:00]               │ debg creating role ft_default_space1_ml_all
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_default_space1_ml_all]
[00:00:00]               │ debg creating role ft_all_spaces_ml_all
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_all_spaces_ml_all]
[00:00:00]               │ debg creating role ft_default_space_ml_read
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_default_space_ml_read]
[00:00:00]               │ debg creating role ft_default_space1_ml_read
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_default_space1_ml_read]
[00:00:00]               │ debg creating role ft_all_spaces_ml_read
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_all_spaces_ml_read]
[00:00:00]               │ debg creating role ft_default_space_ml_none
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_default_space_ml_none]
[00:00:00]               │ debg creating user ft_ml_poweruser
[00:00:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_poweruser]
[00:00:00]               │ debg created user ft_ml_poweruser
[00:00:00]               │ debg creating user ft_ml_poweruser_spaces
[00:00:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_poweruser_spaces]
[00:00:00]               │ debg created user ft_ml_poweruser_spaces
[00:00:00]               │ debg creating user ft_ml_poweruser_space1
[00:00:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_poweruser_space1]
[00:00:00]               │ debg created user ft_ml_poweruser_space1
[00:00:00]               │ debg creating user ft_ml_poweruser_all_spaces
[00:00:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_poweruser_all_spaces]
[00:00:00]               │ debg created user ft_ml_poweruser_all_spaces
[00:00:00]               │ debg creating user ft_ml_viewer
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_viewer]
[00:00:01]               │ debg created user ft_ml_viewer
[00:00:01]               │ debg creating user ft_ml_viewer_spaces
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_viewer_spaces]
[00:00:01]               │ debg created user ft_ml_viewer_spaces
[00:00:01]               │ debg creating user ft_ml_viewer_space1
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_viewer_space1]
[00:00:01]               │ debg created user ft_ml_viewer_space1
[00:00:01]               │ debg creating user ft_ml_viewer_all_spaces
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_viewer_all_spaces]
[00:00:01]               │ debg created user ft_ml_viewer_all_spaces
[00:00:01]               │ debg creating user ft_ml_unauthorized
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_unauthorized]
[00:00:01]               │ debg created user ft_ml_unauthorized
[00:00:01]               │ debg creating user ft_ml_unauthorized_spaces
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_unauthorized_spaces]
[00:00:01]               │ debg created user ft_ml_unauthorized_spaces
[00:07:49]             └-: anomaly detection
[00:07:49]               └-> "before all" hook in "anomaly detection"
[00:15:43]               └-: saved search
[00:15:43]                 └-> "before all" hook in "saved search"
[00:15:43]                 └-> "before all" hook in "saved search"
[00:15:43]                   │ info [ml/farequote] Loading "mappings.json"
[00:15:43]                   │ info [ml/farequote] Loading "data.json.gz"
[00:15:43]                   │ info [ml/farequote] Skipped restore for existing index "ft_farequote"
[00:15:44]                   │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:15:44]                   │ debg  > Found 'cfbded30-bfa2-11eb-a408-a55f2bb98fd9'
[00:15:44]                   │ debg Index pattern with title 'ft_farequote' already exists. Nothing to create.
[00:15:44]                   │ debg Searching for 'search' with title 'ft_farequote_filter'...
[00:15:44]                   │ debg  > Not found
[00:15:44]                   │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:15:44]                   │ debg  > Found 'cfbded30-bfa2-11eb-a408-a55f2bb98fd9'
[00:15:44]                   │ debg Creating saved search with title 'ft_farequote_filter'
[00:15:44]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] [.kibana_8.0.0_001/Jx_pr-eeStefQqraLh67tA] update_mapping [_doc]
[00:15:44]                   │ debg Waiting up to 5000ms for search with title 'ft_farequote_filter' to exist...
[00:15:44]                   │ debg Searching for 'search' with title 'ft_farequote_filter'...
[00:15:44]                   │ debg  > Found 'dce8d400-bfa4-11eb-a408-a55f2bb98fd9'
[00:15:44]                   │ debg  > Created with id 'dce8d400-bfa4-11eb-a408-a55f2bb98fd9'
[00:15:44]                   │ debg Searching for 'search' with title 'ft_farequote_lucene'...
[00:15:44]                   │ debg  > Not found
[00:15:44]                   │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:15:44]                   │ debg  > Found 'cfbded30-bfa2-11eb-a408-a55f2bb98fd9'
[00:15:44]                   │ debg Creating saved search with title 'ft_farequote_lucene'
[00:15:45]                   │ debg Waiting up to 5000ms for search with title 'ft_farequote_lucene' to exist...
[00:15:45]                   │ debg Searching for 'search' with title 'ft_farequote_lucene'...
[00:15:45]                   │ debg  > Found 'dd1dedc0-bfa4-11eb-a408-a55f2bb98fd9'
[00:15:45]                   │ debg  > Created with id 'dd1dedc0-bfa4-11eb-a408-a55f2bb98fd9'
[00:15:45]                   │ debg Searching for 'search' with title 'ft_farequote_kuery'...
[00:15:45]                   │ debg  > Not found
[00:15:45]                   │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:15:45]                   │ debg  > Found 'cfbded30-bfa2-11eb-a408-a55f2bb98fd9'
[00:15:45]                   │ debg Creating saved search with title 'ft_farequote_kuery'
[00:15:46]                   │ debg Waiting up to 5000ms for search with title 'ft_farequote_kuery' to exist...
[00:15:46]                   │ debg Searching for 'search' with title 'ft_farequote_kuery'...
[00:15:46]                   │ debg  > Found 'ddb6d260-bfa4-11eb-a408-a55f2bb98fd9'
[00:15:46]                   │ debg  > Created with id 'ddb6d260-bfa4-11eb-a408-a55f2bb98fd9'
[00:15:46]                   │ debg Searching for 'search' with title 'ft_farequote_filter_and_lucene'...
[00:15:46]                   │ debg  > Not found
[00:15:46]                   │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:15:46]                   │ debg  > Found 'cfbded30-bfa2-11eb-a408-a55f2bb98fd9'
[00:15:46]                   │ debg Creating saved search with title 'ft_farequote_filter_and_lucene'
[00:15:47]                   │ debg Waiting up to 5000ms for search with title 'ft_farequote_filter_and_lucene' to exist...
[00:15:47]                   │ debg Searching for 'search' with title 'ft_farequote_filter_and_lucene'...
[00:15:47]                   │ debg  > Found 'de524f10-bfa4-11eb-a408-a55f2bb98fd9'
[00:15:47]                   │ debg  > Created with id 'de524f10-bfa4-11eb-a408-a55f2bb98fd9'
[00:15:47]                   │ debg Searching for 'search' with title 'ft_farequote_filter_and_kuery'...
[00:15:47]                   │ debg  > Not found
[00:15:47]                   │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:15:47]                   │ debg  > Found 'cfbded30-bfa2-11eb-a408-a55f2bb98fd9'
[00:15:47]                   │ debg Creating saved search with title 'ft_farequote_filter_and_kuery'
[00:15:48]                   │ debg Waiting up to 5000ms for search with title 'ft_farequote_filter_and_kuery' to exist...
[00:15:48]                   │ debg Searching for 'search' with title 'ft_farequote_filter_and_kuery'...
[00:15:48]                   │ debg  > Found 'deec6c30-bfa4-11eb-a408-a55f2bb98fd9'
[00:15:48]                   │ debg  > Created with id 'deec6c30-bfa4-11eb-a408-a55f2bb98fd9'
[00:15:48]                   │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:15:49]                   │ debg SecurityPage.forceLogout
[00:15:49]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:15:50]                   │ debg --- retry.tryForTime error: .login-form is not displayed
[00:15:50]                   │ debg Redirecting to /logout to force the logout
[00:15:50]                   │ debg Waiting on the login form to appear
[00:15:50]                   │ debg Waiting for Login Page to appear.
[00:15:50]                   │ debg Waiting up to 100000ms for login page...
[00:15:50]                   │ debg browser[INFO] http://localhost:61211/logout?_t=1622200042648 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:15:50]                   │
[00:15:50]                   │ debg browser[INFO] http://localhost:61211/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:15:50]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:15:53]                   │ERROR browser[SEVERE] http://localhost:61211/api/alerts/list_alert_types - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:15:53]                   │ debg browser[INFO] http://localhost:61211/43276/bundles/core/core.entry.js 12:151725 "Detected an unhandled Promise rejection.
[00:15:53]                   │      Error: Unauthorized"
[00:15:53]                   │ERROR browser[SEVERE] http://localhost:61211/43276/bundles/core/core.entry.js 5:2514 
[00:15:53]                   │ debg browser[INFO] http://localhost:61211/login?msg=LOGGED_OUT 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:15:53]                   │
[00:15:53]                   │ debg browser[INFO] http://localhost:61211/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:15:53]                   │ERROR browser[SEVERE] http://localhost:61211/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:15:53]                   │ debg TestSubjects.exists(loginForm)
[00:15:53]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:15:53]                   │ debg Waiting for Login Form to appear.
[00:15:53]                   │ debg Waiting up to 100000ms for login form...
[00:15:53]                   │ debg TestSubjects.exists(loginForm)
[00:15:53]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:15:53]                   │ debg TestSubjects.setValue(loginUsername, ft_ml_poweruser)
[00:15:53]                   │ debg TestSubjects.click(loginUsername)
[00:15:53]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:15:53]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:15:53]                   │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:15:53]                   │ debg TestSubjects.click(loginPassword)
[00:15:53]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:15:53]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:15:53]                   │ debg TestSubjects.click(loginSubmit)
[00:15:53]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:15:53]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:15:53]                   │ debg Waiting for login result, expected: chrome.
[00:15:53]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] .kbnAppWrapper:not(.kbnAppWrapper--hiddenChrome)') with timeout=20000
[00:15:53]                   │ proc [kibana]   log   [11:07:25.644] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:15:55]                   │ debg browser[INFO] http://localhost:61211/app/home 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:15:55]                   │
[00:15:55]                   │ debg browser[INFO] http://localhost:61211/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:15:55]                   │ debg Finished login process currentUrl = http://localhost:61211/app/home#/
[00:15:55]                   │ debg Waiting up to 20000ms for logout button visible...
[00:15:55]                   │ debg TestSubjects.exists(userMenuButton)
[00:15:55]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:15:55]                   │ERROR browser[SEVERE] http://localhost:61211/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:15:55]                   │ debg TestSubjects.exists(userMenu)
[00:15:55]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:15:58]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:15:58]                   │ debg TestSubjects.click(userMenuButton)
[00:15:58]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:15:58]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:15:58]                   │ debg TestSubjects.exists(userMenu)
[00:15:58]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:15:59]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:15:59]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:20:11]                 └-:  with filter and kuery query
[00:20:11]                   └-> "before all" hook for "job creation loads the multi metric wizard for the source data"
[00:20:11]                   └-> job creation loads the multi metric wizard for the source data
[00:20:11]                     └-> "before each" hook: global before each for "job creation loads the multi metric wizard for the source data"
[00:20:11]                     │ debg === TEST STEP === job creation loads the job management page
[00:20:11]                     │ debg navigating to ml url: http://localhost:61211/app/ml
[00:20:11]                     │ debg navigate to: http://localhost:61211/app/ml
[00:20:11]                     │ debg browser[INFO] http://localhost:61211/app/ml?_t=1622200303529 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:20:11]                     │
[00:20:11]                     │ debg browser[INFO] http://localhost:61211/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:20:11]                     │ debg ... sleep(700) start
[00:20:12]                     │ debg ... sleep(700) end
[00:20:12]                     │ debg returned from get, calling refresh
[00:20:12]                     │ERROR browser[SEVERE] http://localhost:61211/43276/bundles/core/core.entry.js 12:150797 TypeError: Failed to fetch
[00:20:12]                     │          at fetch_Fetch.fetchResponse (http://localhost:61211/43276/bundles/core/core.entry.js:6:26193)
[00:20:12]                     │          at async http://localhost:61211/43276/bundles/core/core.entry.js:6:24090
[00:20:12]                     │          at async http://localhost:61211/43276/bundles/core/core.entry.js:6:23996
[00:20:12]                     │ debg browser[INFO] http://localhost:61211/app/ml?_t=1622200303529 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:20:12]                     │
[00:20:12]                     │ debg browser[INFO] http://localhost:61211/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:20:13]                     │ debg currentUrl = http://localhost:61211/app/ml
[00:20:13]                     │          appUrl = http://localhost:61211/app/ml
[00:20:13]                     │ debg TestSubjects.find(kibanaChrome)
[00:20:13]                     │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:20:13]                     │ debg ... sleep(501) start
[00:20:13]                     │ERROR browser[SEVERE] http://localhost:61211/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:20:13]                     │ debg ... sleep(501) end
[00:20:13]                     │ debg in navigateTo url = http://localhost:61211/app/ml/overview
[00:20:13]                     │ debg --- retry.tryForTime error: URL changed, waiting for it to settle
[00:20:14]                     │ debg ... sleep(501) start
[00:20:14]                     │ debg ... sleep(501) end
[00:20:14]                     │ debg in navigateTo url = http://localhost:61211/app/ml/overview
[00:20:14]                     │ debg TestSubjects.exists(mlApp)
[00:20:14]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlApp"]') with timeout=2000
[00:20:14]                     │ debg TestSubjects.click(~mlMainTab & ~anomalyDetection)
[00:20:14]                     │ debg Find.clickByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"]') with timeout=10000
[00:20:14]                     │ debg Find.findByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"]') with timeout=10000
[00:20:16]                     │ info [o.e.x.m.p.NativeController] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] Native controller process has stopped - no new native processes can be started
[00:20:16]                     │ debg TestSubjects.exists(~mlMainTab & ~anomalyDetection & ~selected)
[00:20:16]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"][data-test-subj~="selected"]') with timeout=120000
[00:20:18]                     │ debg --- retry.tryForTime error: [data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"][data-test-subj~="selected"] is not displayed
[00:20:21]                     │ proc [kibana]   log   [11:11:53.284] [error][elasticsearch] Request error, retrying
[00:20:21]                     │ proc [kibana] GET http://localhost:61212/_xpack?accept_enterprise=true => read ECONNRESET
[00:20:21]                     │ proc [kibana]   log   [11:11:53.302] [error][index][plugins][security][session] Failed to retrieve session value: socket hang up
[00:20:21]                     │ proc [kibana]   log   [11:11:53.303] [error][server][Kibana][http] ConnectionError: socket hang up
[00:20:21]                     │ proc [kibana]     at ClientRequest.onError (/dev/shm/workspace/kibana-build-21/node_modules/@elastic/elasticsearch/lib/Connection.js:115:16)
[00:20:21]                     │ proc [kibana]     at ClientRequest.emit (events.js:376:20)
[00:20:21]                     │ proc [kibana]     at Socket.socketCloseListener (_http_client.js:449:11)
[00:20:21]                     │ proc [kibana]     at Socket.emit (events.js:388:22)
[00:20:21]                     │ proc [kibana]     at TCP.<anonymous> (net.js:673:12) {
[00:20:21]                     │ proc [kibana]   meta: {
[00:20:21]                     │ proc [kibana]     body: null,
[00:20:21]                     │ proc [kibana]     statusCode: null,
[00:20:21]                     │ proc [kibana]     headers: null,
[00:20:21]                     │ proc [kibana]     meta: {
[00:20:21]                     │ proc [kibana]       context: null,
[00:20:21]                     │ proc [kibana]       request: [Object],
[00:20:21]                     │ proc [kibana]       name: 'elasticsearch-js',
[00:20:21]                     │ proc [kibana]       connection: [Object],
[00:20:21]                     │ proc [kibana]       attempts: 3,
[00:20:21]                     │ proc [kibana]       aborted: false
[00:20:21]                     │ proc [kibana]     }
[00:20:21]                     │ proc [kibana]   }
[00:20:21]                     │ proc [kibana] }
[00:20:21]                     │ proc [kibana]   log   [11:11:53.312] [warning][elasticsearch] Unable to revive connection: http://localhost:61212/
[00:20:21]                     │ proc [kibana]   log   [11:11:53.312] [warning][elasticsearch] No living connections
[00:20:21]                     │ proc [kibana]   log   [11:11:53.313] [warning][licensing][plugins] License information could not be obtained from Elasticsearch due to Error: No Living connections error
[00:20:21]                     │ proc [kibana]   log   [11:11:53.316] [info][plugins][searchprofiler] You cannot use searchprofiler because license information is not available at this time.
[00:20:21]                     │ proc [kibana]   log   [11:11:53.316] [info][painlessLab][plugins] You cannot use painlessLab because license information is not available at this time.
[00:20:21]                     │ proc [kibana]   log   [11:11:53.321] [info][plugins][transform] You cannot use transform because license information is not available at this time.
[00:20:21]                     │ proc [kibana]   log   [11:11:53.321] [info][ingestPipelines][plugins] You cannot use ingest_pipelines because license information is not available at this time.
[00:20:21]                     │ proc [kibana]   log   [11:11:53.321] [info][plugins][snapshotRestore] You cannot use snapshot_restore because license information is not available at this time.
[00:20:21]                     │ proc [kibana]   log   [11:11:53.321] [info][indexManagement][plugins] You cannot use index_management because license information is not available at this time.
[00:20:21]                     │ proc [kibana]   log   [11:11:53.321] [info][plugins][rollup] You cannot use rollup because license information is not available at this time.
[00:20:21]                     │ proc [kibana]   log   [11:11:53.321] [info][plugins][remoteClusters] You cannot use Remote Clusters because license information is not available at this time.
[00:20:21]                     │ proc [kibana]   log   [11:11:53.321] [info][indexLifecycleManagement][plugins] You cannot use index_lifecycle_management because license information is not available at this time.
[00:20:21]                     │ proc [kibana]   log   [11:11:53.322] [info][kibana-monitoring][monitoring][monitoring][plugins] Monitoring status upload endpoint is not enabled in Elasticsearch:Monitoring stats collection is stopped
[00:20:21]                     │ proc [kibana]  error  [11:11:48.498]  Error: Internal Server Error
[00:20:21]                     │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/response_adapter.js:61:19)
[00:20:21]                     │ proc [kibana]     at Object.interceptAuth [as authenticate] (/dev/shm/workspace/kibana-build-21/src/core/server/http/lifecycle/auth.js:130:34)
[00:20:21]                     │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:20:21]                     │ proc [kibana]     at module.exports.internals.Auth._authenticate (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/auth.js:258:30)
[00:20:21]                     │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:20:21]                     │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:20:21]                     │ proc [kibana]   log   [11:11:53.340] [error][index][plugins][security][session] Failed to retrieve session value: connect ECONNREFUSED 127.0.0.1:61212
[00:20:21]                     │ proc [kibana]   log   [11:11:53.340] [error][server][Kibana][http] ConnectionError: connect ECONNREFUSED 127.0.0.1:61212
[00:20:21]                     │ proc [kibana]     at ClientRequest.onError (/dev/shm/workspace/kibana-build-21/node_modules/@elastic/elasticsearch/lib/Connection.js:115:16)
[00:20:21]                     │ proc [kibana]     at ClientRequest.emit (events.js:376:20)
[00:20:21]                     │ proc [kibana]     at Socket.socketErrorListener (_http_client.js:475:9)
[00:20:21]                     │ proc [kibana]     at Socket.emit (events.js:376:20)
[00:20:21]                     │ proc [kibana]     at emitErrorNT (internal/streams/destroy.js:106:8)
[00:20:21]                     │ proc [kibana]     at emitErrorCloseNT (internal/streams/destroy.js:74:3)
[00:20:21]                     │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
[00:20:21]                     │ proc [kibana]   meta: {
[00:20:21]                     │ proc [kibana]     body: null,
[00:20:21]                     │ proc [kibana]     statusCode: null,
[00:20:21]                     │ proc [kibana]     headers: null,
[00:20:21]                     │ proc [kibana]     meta: {
[00:20:21]                     │ proc [kibana]       context: null,
[00:20:21]                     │ proc [kibana]       request: [Object],
[00:20:21]                     │ proc [kibana]       name: 'elasticsearch-js',
[00:20:21]                     │ proc [kibana]       connection: [Object],
[00:20:21]                     │ proc [kibana]       attempts: 3,
[00:20:21]                     │ proc [kibana]       aborted: false
[00:20:21]                     │ proc [kibana]     }
[00:20:21]                     │ proc [kibana]   }
[00:20:21]                     │ proc [kibana] }
[00:20:21]                     │ proc [kibana]   log   [11:11:53.343] [error][index][plugins][security][session] Failed to retrieve session value: connect ECONNREFUSED 127.0.0.1:61212
[00:20:21]                     │ proc [kibana]   log   [11:11:53.344] [error][server][Kibana][http] ConnectionError: connect ECONNREFUSED 127.0.0.1:61212
[00:20:21]                     │ proc [kibana]     at ClientRequest.onError (/dev/shm/workspace/kibana-build-21/node_modules/@elastic/elasticsearch/lib/Connection.js:115:16)
[00:20:21]                     │ proc [kibana]     at ClientRequest.emit (events.js:376:20)
[00:20:21]                     │ proc [kibana]     at Socket.socketErrorListener (_http_client.js:475:9)
[00:20:21]                     │ proc [kibana]     at Socket.emit (events.js:376:20)
[00:20:21]                     │ proc [kibana]     at emitErrorNT (internal/streams/destroy.js:106:8)
[00:20:21]                     │ proc [kibana]     at emitErrorCloseNT (internal/streams/destroy.js:74:3)
[00:20:21]                     │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
[00:20:21]                     │ proc [kibana]   meta: {
[00:20:21]                     │ proc [kibana]     body: null,
[00:20:21]                     │ proc [kibana]     statusCode: null,
[00:20:21]                     │ proc [kibana]     headers: null,
[00:20:21]                     │ proc [kibana]     meta: {
[00:20:21]                     │ proc [kibana]       context: null,
[00:20:21]                     │ proc [kibana]       request: [Object],
[00:20:21]                     │ proc [kibana]       name: 'elasticsearch-js',
[00:20:21]                     │ proc [kibana]       connection: [Object],
[00:20:21]                     │ proc [kibana]       attempts: 3,
[00:20:21]                     │ proc [kibana]       aborted: false
[00:20:21]                     │ proc [kibana]     }
[00:20:21]                     │ proc [kibana]   }
[00:20:21]                     │ proc [kibana] }
[00:20:21]                     │ proc [kibana]   log   [11:11:53.345] [error][index][plugins][security][session] Failed to retrieve session value: connect ECONNREFUSED 127.0.0.1:61212
[00:20:21]                     │ proc [kibana]   log   [11:11:53.345] [error][server][Kibana][http] ConnectionError: connect ECONNREFUSED 127.0.0.1:61212
[00:20:21]                     │ proc [kibana]     at ClientRequest.onError (/dev/shm/workspace/kibana-build-21/node_modules/@elastic/elasticsearch/lib/Connection.js:115:16)
[00:20:21]                     │ proc [kibana]     at ClientRequest.emit (events.js:376:20)
[00:20:21]                     │ proc [kibana]     at Socket.socketErrorListener (_http_client.js:475:9)
[00:20:21]                     │ proc [kibana]     at Socket.emit (events.js:376:20)
[00:20:21]                     │ proc [kibana]     at emitErrorNT (internal/streams/destroy.js:106:8)
[00:20:21]                     │ proc [kibana]     at emitErrorCloseNT (internal/streams/destroy.js:74:3)
[00:20:21]                     │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
[00:20:21]                     │ proc [kibana]   meta: {
[00:20:21]                     │ proc [kibana]     body: null,
[00:20:21]                     │ proc [kibana]     statusCode: null,
[00:20:21]                     │ proc [kibana]     headers: null,
[00:20:21]                     │ proc [kibana]     meta: {
[00:20:21]                     │ proc [kibana]       context: null,
[00:20:21]                     │ proc [kibana]       request: [Object],
[00:20:21]                     │ proc [kibana]       name: 'elasticsearch-js',
[00:20:21]                     │ proc [kibana]       connection: [Object],
[00:20:21]                     │ proc [kibana]       attempts: 3,
[00:20:21]                     │ proc [kibana]       aborted: false
[00:20:21]                     │ proc [kibana]     }
[00:20:21]                     │ proc [kibana]   }
[00:20:21]                     │ proc [kibana] }
[00:20:21]                     │ proc [kibana]   log   [11:11:53.349] [warning][plugins][securitySolution] Unable to verify endpoint policies in line with license change: failed to fetch package policies: connect ECONNREFUSED 127.0.0.1:61212
[00:20:21]                     │ proc [kibana]   log   [11:11:53.350] [warning][elasticsearch] Unable to revive connection: http://localhost:61212/
[00:20:21]                     │ proc [kibana]   log   [11:11:53.350] [warning][elasticsearch] No living connections
[00:20:21]                     │ proc [kibana]   log   [11:11:53.351] [warning][licensing][plugins] License information could not be obtained from Elasticsearch due to Error: No Living connections error
[00:20:21]                     │ proc [kibana]  error  [11:11:48.499]  Error: Internal Server Error
[00:20:21]                     │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/response_adapter.js:61:19)
[00:20:21]                     │ proc [kibana]     at Object.interceptAuth [as authenticate] (/dev/shm/workspace/kibana-build-21/src/core/server/http/lifecycle/auth.js:130:34)
[00:20:21]                     │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:20:21]                     │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:20:21]                     │ proc [kibana]     at module.exports.internals.Auth._authenticate (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/auth.js:258:30)
[00:20:21]                     │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:20:21]                     │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:20:21]                     │ proc [kibana]  error  [11:11:48.498]  Error: Internal Server Error
[00:20:21]                     │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/response_adapter.js:61:19)
[00:20:21]                     │ proc [kibana]     at Object.interceptAuth [as authenticate] (/dev/shm/workspace/kibana-build-21/src/core/server/http/lifecycle/auth.js:130:34)
[00:20:21]                     │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:20:21]                     │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:20:21]                     │ proc [kibana]     at module.exports.internals.Auth._authenticate (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/auth.js:258:30)
[00:20:21]                     │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:20:21]                     │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:20:21]                     │ proc [kibana]  error  [11:11:48.497]  Error: Internal Server Error
[00:20:21]                     │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/response_adapter.js:61:19)
[00:20:21]                     │ proc [kibana]     at Object.interceptAuth [as authenticate] (/dev/shm/workspace/kibana-build-21/src/core/server/http/lifecycle/auth.js:130:34)
[00:20:21]                     │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:20:21]                     │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:20:21]                     │ proc [kibana]     at module.exports.internals.Auth._authenticate (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/auth.js:258:30)
[00:20:21]                     │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:20:21]                     │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:20:21]                     │ proc [kibana]   log   [11:11:53.355] [error][index][plugins][security][session] Failed to retrieve session value: connect ECONNREFUSED 127.0.0.1:61212
[00:20:21]                     │ proc [kibana]   log   [11:11:53.355] [error][server][Kibana][http] ConnectionError: connect ECONNREFUSED 127.0.0.1:61212
[00:20:21]                     │ proc [kibana]     at ClientRequest.onError (/dev/shm/workspace/kibana-build-21/node_modules/@elastic/elasticsearch/lib/Connection.js:115:16)
[00:20:21]                     │ proc [kibana]     at ClientRequest.emit (events.js:376:20)
[00:20:21]                     │ proc [kibana]     at Socket.socketErrorListener (_http_client.js:475:9)
[00:20:21]                     │ proc [kibana]     at Socket.emit (events.js:376:20)
[00:20:21]                     │ proc [kibana]     at emitErrorNT (internal/streams/destroy.js:106:8)
[00:20:21]                     │ proc [kibana]     at emitErrorCloseNT (internal/streams/destroy.js:74:3)
[00:20:21]                     │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
[00:20:21]                     │ proc [kibana]   meta: {
[00:20:21]                     │ proc [kibana]     body: null,
[00:20:21]                     │ proc [kibana]     statusCode: null,
[00:20:21]                     │ proc [kibana]     headers: null,
[00:20:21]                     │ proc [kibana]     meta: {
[00:20:21]                     │ proc [kibana]       context: null,
[00:20:21]                     │ proc [kibana]       request: [Object],
[00:20:21]                     │ proc [kibana]       name: 'elasticsearch-js',
[00:20:21]                     │ proc [kibana]       connection: [Object],
[00:20:21]                     │ proc [kibana]       attempts: 3,
[00:20:21]                     │ proc [kibana]       aborted: false
[00:20:21]                     │ proc [kibana]     }
[00:20:21]                     │ proc [kibana]   }
[00:20:21]                     │ proc [kibana] }
[00:20:21]                     │ proc [kibana]   log   [11:11:54.089] [error][savedobjects-service] Unable to retrieve version information from Elasticsearch nodes. connect ECONNREFUSED 127.0.0.1:61212
[00:20:22]                     │ERROR browser[SEVERE] http://localhost:61211/api/ml/info - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:20:22]                     │ERROR browser[SEVERE] http://localhost:61211/api/saved_objects/_find?per_page=10000&type=search - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:20:22]                     │ERROR browser[SEVERE] http://localhost:61211/api/ml/ml_capabilities - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:20:22]                     │ERROR browser[SEVERE] http://localhost:61211/api/ml/ml_node_count - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:20:22]                     │ debg --- retry.tryForTime failed again with the same message...
[00:20:22]                     │ proc [kibana]   log   [11:11:54.144] [warning][elasticsearch] Unable to revive connection: http://localhost:61212/
[00:20:22]                     │ proc [kibana]   log   [11:11:54.145] [warning][elasticsearch] No living connections
[00:20:22]                     │ proc [kibana]   log   [11:11:54.145] [warning][licensing][plugins] License information could not be obtained from Elasticsearch due to Error: No Living connections error
[00:20:22]                     │ proc [kibana]  error  [11:11:48.498]  Error: Internal Server Error
[00:20:22]                     │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/response_adapter.js:61:19)
[00:20:22]                     │ proc [kibana]     at Object.interceptAuth [as authenticate] (/dev/shm/workspace/kibana-build-21/src/core/server/http/lifecycle/auth.js:130:34)
[00:20:22]                     │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:20:22]                     │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:20:22]                     │ proc [kibana]     at module.exports.internals.Auth._authenticate (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/auth.js:258:30)
[00:20:22]                     │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:20:22]                     │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:20:22]                     │ERROR browser[SEVERE] http://localhost:61211/api/saved_objects/_find?fields=id&fields=title&fields=type&fields=fields&per_page=10000&type=index-pattern - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:20:22]                     │ proc [kibana]   log   [11:11:54.432] [error][elasticsearch] Request error, retrying
[00:20:22]                     │ proc [kibana] GET http://localhost:61212/_xpack?accept_enterprise=true => connect ECONNREFUSED 127.0.0.1:61212
[00:20:22]                     │ proc [kibana]   log   [11:11:54.433] [warning][elasticsearch] Unable to revive connection: http://localhost:61212/
[00:20:22]                     │ proc [kibana]   log   [11:11:54.434] [warning][elasticsearch] No living connections
[00:20:22]                     │ proc [kibana]   log   [11:11:54.434] [warning][licensing][plugins] License information could not be obtained from Elasticsearch due to Error: No Living connections error
[00:20:22]                     │ proc [kibana]   log   [11:11:54.435] [warning][monitoring][monitoring][plugins] X-Pack Monitoring Cluster Alerts will not be available: No Living connections
[00:20:25]                     │ debg --- retry.tryForTime failed again with the same message...
[00:20:28]                     │ debg --- retry.tryForTime failed again with the same message...
[00:20:31]                     │ debg --- retry.tryForTime failed again with the same message...
[00:20:34]                     │ debg --- retry.tryForTime failed again with the same message...
[00:20:37]                     │ debg --- retry.tryForTime failed again with the same message...
[00:20:40]                     │ debg --- retry.tryForTime failed again with the same message...
[00:20:43]                     │ debg --- retry.tryForTime failed again with the same message...
[00:20:46]                     │ debg --- retry.tryForTime failed again with the same message...
[00:20:46]                     │ proc [kibana]   log   [11:12:18.425] [warning][elasticsearch] Unable to revive connection: http://localhost:61212/
[00:20:46]                     │ proc [kibana]   log   [11:12:18.426] [warning][elasticsearch] No living connections
[00:20:46]                     │ proc [kibana]   log   [11:12:18.426] [warning][licensing][plugins] License information could not be obtained from Elasticsearch due to Error: No Living connections error
[00:20:49]                     │ debg --- retry.tryForTime failed again with the same message...
[00:20:52]                     │ proc [kibana]   log   [11:12:24.430] [warning][elasticsearch] Unable to revive connection: http://localhost:61212/
[00:20:52]                     │ proc [kibana]   log   [11:12:24.430] [warning][elasticsearch] No living connections
[00:20:52]                     │ proc [kibana]   log   [11:12:24.431] [warning][licensing][plugins] License information could not be obtained from Elasticsearch due to Error: No Living connections error
[00:20:52]                     │ debg --- retry.tryForTime failed again with the same message...
[00:20:55]                     │ debg --- retry.tryForTime failed again with the same message...
[00:20:58]                     │ debg --- retry.tryForTime failed again with the same message...
[00:21:01]                     │ debg --- retry.tryForTime failed again with the same message...
[00:21:04]                     │ debg --- retry.tryForTime failed again with the same message...
[00:21:07]                     │ debg --- retry.tryForTime failed again with the same message...
[00:21:10]                     │ debg --- retry.tryForTime failed again with the same message...
[00:21:13]                     │ debg --- retry.tryForTime failed again with the same message...
[00:21:16]                     │ proc [kibana]   log   [11:12:48.428] [warning][elasticsearch] Unable to revive connection: http://localhost:61212/
[00:21:16]                     │ proc [kibana]   log   [11:12:48.429] [warning][elasticsearch] No living connections
[00:21:16]                     │ proc [kibana]   log   [11:12:48.430] [warning][licensing][plugins] License information could not be obtained from Elasticsearch due to Error: No Living connections error
[00:21:16]                     │ debg --- retry.tryForTime failed again with the same message...
[00:21:19]                     │ debg --- retry.tryForTime failed again with the same message...
[00:21:22]                     │ proc [kibana]   log   [11:12:54.431] [warning][elasticsearch] Unable to revive connection: http://localhost:61212/
[00:21:22]                     │ proc [kibana]   log   [11:12:54.432] [warning][elasticsearch] No living connections
[00:21:22]                     │ proc [kibana]   log   [11:12:54.432] [warning][licensing][plugins] License information could not be obtained from Elasticsearch due to Error: No Living connections error
[00:21:22]                     │ debg --- retry.tryForTime failed again with the same message...
[00:21:25]                     │ debg --- retry.tryForTime failed again with the same message...
[00:21:28]                     │ debg --- retry.tryForTime failed again with the same message...
[00:21:31]                     │ debg --- retry.tryForTime failed again with the same message...
[00:21:34]                     │ debg --- retry.tryForTime failed again with the same message...
[00:21:37]                     │ debg --- retry.tryForTime failed again with the same message...
[00:21:40]                     │ debg --- retry.tryForTime failed again with the same message...
[00:21:43]                     │ proc [kibana]   log   [11:13:15.377] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:21:43]                     │ proc [kibana]   log   [11:13:15.380] [warning][elasticsearch] Unable to revive connection: http://localhost:61212/
[00:21:43]                     │ proc [kibana]   log   [11:13:15.381] [warning][elasticsearch] No living connections
[00:21:43]                     │ proc [kibana]   log   [11:13:15.381] [warning][licensing][plugins] License information could not be obtained from Elasticsearch due to Error: No Living connections error
[00:21:43]                     │ERROR browser[SEVERE] http://localhost:61211/api/ui_counters/_report - Failed to load resource: the server responded with a status of 503 (Service Unavailable)
[00:21:43]                     │ debg --- retry.tryForTime failed again with the same message...
[00:21:46]                     │ proc [kibana]   log   [11:13:18.426] [warning][elasticsearch] Unable to revive connection: http://localhost:61212/
[00:21:46]                     │ proc [kibana]   log   [11:13:18.427] [warning][elasticsearch] No living connections
[00:21:46]                     │ proc [kibana]   log   [11:13:18.427] [warning][licensing][plugins] License information could not be obtained from Elasticsearch due to Error: No Living connections error
[00:21:46]                     │ debg --- retry.tryForTime failed again with the same message...
[00:21:49]                     │ debg --- retry.tryForTime failed again with the same message...
[00:21:52]                     │ proc [kibana]   log   [11:13:24.431] [warning][elasticsearch] Unable to revive connection: http://localhost:61212/
[00:21:52]                     │ proc [kibana]   log   [11:13:24.431] [warning][elasticsearch] No living connections
[00:21:52]                     │ proc [kibana]   log   [11:13:24.431] [warning][licensing][plugins] License information could not be obtained from Elasticsearch due to Error: No Living connections error
[00:21:52]                     │ debg --- retry.tryForTime failed again with the same message...
[00:21:56]                     │ debg --- retry.tryForTime failed again with the same message...
[00:21:59]                     │ debg --- retry.tryForTime failed again with the same message...
[00:22:02]                     │ debg --- retry.tryForTime failed again with the same message...
[00:22:05]                     │ debg --- retry.tryForTime failed again with the same message...
[00:22:08]                     │ debg --- retry.tryForTime failed again with the same message...
[00:22:11]                     │ debg --- retry.tryForTime failed again with the same message...
[00:22:14]                     │ debg --- retry.tryForTime failed again with the same message...
[00:22:16]                     │ proc [kibana]   log   [11:13:48.427] [warning][elasticsearch] Unable to revive connection: http://localhost:61212/
[00:22:16]                     │ proc [kibana]   log   [11:13:48.428] [warning][elasticsearch] No living connections
[00:22:16]                     │ proc [kibana]   log   [11:13:48.429] [warning][licensing][plugins] License information could not be obtained from Elasticsearch due to Error: No Living connections error
[00:22:17]                     │ debg --- retry.tryForTime failed again with the same message...
[00:22:17]                     │ debg --- retry.tryForTime error: expected testSubject(~mlMainTab & ~anomalyDetection & ~selected) to exist
[00:22:18]                     │ info Taking screenshot "/dev/shm/workspace/parallel/21/kibana/x-pack/test/functional/screenshots/failure/machine learning  anomaly detection saved search  with filter and kuery query job creation loads the multi metric wizard for the source data.png"
[00:22:18]                     │ info Current URL is: http://localhost:61211/app/ml/access-denied
[00:22:18]                     │ info Saving page source to: /dev/shm/workspace/parallel/21/kibana/x-pack/test/functional/failure_debug/html/machine learning  anomaly detection saved search  with filter and kuery query job creation loads the multi metric wizard for the source data.html
[00:22:18]                     └- ✖ fail: machine learning  anomaly detection saved search  with filter and kuery query job creation loads the multi metric wizard for the source data
[00:22:18]                     │      retry.tryForTime timeout: Error: expected testSubject(~mlMainTab & ~anomalyDetection & ~selected) to exist
[00:22:18]                     │     at TestSubjects.existOrFail (/dev/shm/workspace/parallel/21/kibana/test/functional/services/common/test_subjects.ts:45:13)
[00:22:18]                     │     at /dev/shm/workspace/parallel/21/kibana/x-pack/test/functional/services/ml/navigation.ts:62:9
[00:22:18]                     │     at runAttempt (/dev/shm/workspace/parallel/21/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:22:18]                     │     at retryForSuccess (/dev/shm/workspace/parallel/21/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:22:18]                     │     at RetryService.tryForTime (/dev/shm/workspace/parallel/21/kibana/test/common/services/retry/retry.ts:22:12)
[00:22:18]                     │     at Object.navigateToArea (/dev/shm/workspace/parallel/21/kibana/x-pack/test/functional/services/ml/navigation.ts:61:7)
[00:22:18]                     │     at Object.navigateToAnomalyDetection (/dev/shm/workspace/parallel/21/kibana/x-pack/test/functional/services/ml/navigation.ts:111:7)
[00:22:18]                     │     at Object.navigateToJobManagement (/dev/shm/workspace/parallel/21/kibana/x-pack/test/functional/services/ml/navigation.ts:130:7)
[00:22:18]                     │     at Context.<anonymous> (/dev/shm/workspace/parallel/21/kibana/x-pack/test/functional/apps/ml/anomaly_detection/saved_search_job.ts:292:11)
[00:22:18]                     │     at Object.apply (/dev/shm/workspace/parallel/21/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:22:18]                     │   Error: retry.tryForTime timeout: Error: expected testSubject(~mlMainTab & ~anomalyDetection & ~selected) to exist
[00:22:18]                     │       at TestSubjects.existOrFail (/dev/shm/workspace/parallel/21/kibana/test/functional/services/common/test_subjects.ts:45:13)
[00:22:18]                     │       at /dev/shm/workspace/parallel/21/kibana/x-pack/test/functional/services/ml/navigation.ts:62:9
[00:22:18]                     │       at runAttempt (/dev/shm/workspace/parallel/21/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:22:18]                     │       at retryForSuccess (/dev/shm/workspace/parallel/21/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:22:18]                     │       at RetryService.tryForTime (/dev/shm/workspace/parallel/21/kibana/test/common/services/retry/retry.ts:22:12)
[00:22:18]                     │       at Object.navigateToArea (test/functional/services/ml/navigation.ts:61:7)
[00:22:18]                     │       at Object.navigateToAnomalyDetection (test/functional/services/ml/navigation.ts:111:7)
[00:22:18]                     │       at Object.navigateToJobManagement (test/functional/services/ml/navigation.ts:130:7)
[00:22:18]                     │       at Context.<anonymous> (test/functional/apps/ml/anomaly_detection/saved_search_job.ts:292:11)
[00:22:18]                     │       at Object.apply (/dev/shm/workspace/parallel/21/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:22:18]                     │       at onFailure (/dev/shm/workspace/parallel/21/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:22:18]                     │       at retryForSuccess (/dev/shm/workspace/parallel/21/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:22:18]                     │       at RetryService.tryForTime (/dev/shm/workspace/parallel/21/kibana/test/common/services/retry/retry.ts:22:12)
[00:22:18]                     │       at Object.navigateToArea (test/functional/services/ml/navigation.ts:61:7)
[00:22:18]                     │       at Object.navigateToAnomalyDetection (test/functional/services/ml/navigation.ts:111:7)
[00:22:18]                     │       at Object.navigateToJobManagement (test/functional/services/ml/navigation.ts:130:7)
[00:22:18]                     │       at Context.<anonymous> (test/functional/apps/ml/anomaly_detection/saved_search_job.ts:292:11)
[00:22:18]                     │       at Object.apply (/dev/shm/workspace/parallel/21/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:22:18]                     │ 
[00:22:18]                     │ 

Stack Trace

Error: retry.tryForTime timeout: Error: expected testSubject(~mlMainTab & ~anomalyDetection & ~selected) to exist
    at TestSubjects.existOrFail (/dev/shm/workspace/parallel/21/kibana/test/functional/services/common/test_subjects.ts:45:13)
    at /dev/shm/workspace/parallel/21/kibana/x-pack/test/functional/services/ml/navigation.ts:62:9
    at runAttempt (/dev/shm/workspace/parallel/21/kibana/test/common/services/retry/retry_for_success.ts:27:15)
    at retryForSuccess (/dev/shm/workspace/parallel/21/kibana/test/common/services/retry/retry_for_success.ts:66:21)
    at RetryService.tryForTime (/dev/shm/workspace/parallel/21/kibana/test/common/services/retry/retry.ts:22:12)
    at Object.navigateToArea (test/functional/services/ml/navigation.ts:61:7)
    at Object.navigateToAnomalyDetection (test/functional/services/ml/navigation.ts:111:7)
    at Object.navigateToJobManagement (test/functional/services/ml/navigation.ts:130:7)
    at Context.<anonymous> (test/functional/apps/ml/anomaly_detection/saved_search_job.ts:292:11)
    at Object.apply (/dev/shm/workspace/parallel/21/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
    at onFailure (/dev/shm/workspace/parallel/21/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/21/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at RetryService.tryForTime (/dev/shm/workspace/parallel/21/kibana/test/common/services/retry/retry.ts:22:12)
    at Object.navigateToArea (test/functional/services/ml/navigation.ts:61:7)
    at Object.navigateToAnomalyDetection (test/functional/services/ml/navigation.ts:111:7)
    at Object.navigateToJobManagement (test/functional/services/ml/navigation.ts:130:7)
    at Context.<anonymous> (test/functional/apps/ml/anomaly_detection/saved_search_job.ts:292:11)
    at Object.apply (/dev/shm/workspace/parallel/21/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/ml/anomaly_detection/saved_search_job·ts.machine learning anomaly detection saved search "after all" hook in "saved search"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: https://github.com/elastic/kibana/issues/100183

[00:00:00]       │
[00:00:00]         └-: machine learning
[00:00:00]           └-> "before all" hook in "machine learning"
[00:00:00]           └-: 
[00:00:00]             └-> "before all" hook in ""
[00:00:00]             └-> "before all" hook in ""
[00:00:00]               │ debg creating role ft_ml_source
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_ml_source]
[00:00:00]               │ debg creating role ft_ml_source_readonly
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_ml_source_readonly]
[00:00:00]               │ debg creating role ft_ml_dest
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_ml_dest]
[00:00:00]               │ debg creating role ft_ml_dest_readonly
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_ml_dest_readonly]
[00:00:00]               │ debg creating role ft_ml_ui_extras
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_ml_ui_extras]
[00:00:00]               │ debg creating role ft_default_space_ml_all
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_default_space_ml_all]
[00:00:00]               │ debg creating role ft_default_space1_ml_all
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_default_space1_ml_all]
[00:00:00]               │ debg creating role ft_all_spaces_ml_all
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_all_spaces_ml_all]
[00:00:00]               │ debg creating role ft_default_space_ml_read
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_default_space_ml_read]
[00:00:00]               │ debg creating role ft_default_space1_ml_read
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_default_space1_ml_read]
[00:00:00]               │ debg creating role ft_all_spaces_ml_read
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_all_spaces_ml_read]
[00:00:00]               │ debg creating role ft_default_space_ml_none
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_default_space_ml_none]
[00:00:00]               │ debg creating user ft_ml_poweruser
[00:00:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_poweruser]
[00:00:00]               │ debg created user ft_ml_poweruser
[00:00:00]               │ debg creating user ft_ml_poweruser_spaces
[00:00:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_poweruser_spaces]
[00:00:00]               │ debg created user ft_ml_poweruser_spaces
[00:00:00]               │ debg creating user ft_ml_poweruser_space1
[00:00:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_poweruser_space1]
[00:00:00]               │ debg created user ft_ml_poweruser_space1
[00:00:00]               │ debg creating user ft_ml_poweruser_all_spaces
[00:00:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_poweruser_all_spaces]
[00:00:00]               │ debg created user ft_ml_poweruser_all_spaces
[00:00:00]               │ debg creating user ft_ml_viewer
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_viewer]
[00:00:01]               │ debg created user ft_ml_viewer
[00:00:01]               │ debg creating user ft_ml_viewer_spaces
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_viewer_spaces]
[00:00:01]               │ debg created user ft_ml_viewer_spaces
[00:00:01]               │ debg creating user ft_ml_viewer_space1
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_viewer_space1]
[00:00:01]               │ debg created user ft_ml_viewer_space1
[00:00:01]               │ debg creating user ft_ml_viewer_all_spaces
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_viewer_all_spaces]
[00:00:01]               │ debg created user ft_ml_viewer_all_spaces
[00:00:01]               │ debg creating user ft_ml_unauthorized
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_unauthorized]
[00:00:01]               │ debg created user ft_ml_unauthorized
[00:00:01]               │ debg creating user ft_ml_unauthorized_spaces
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_unauthorized_spaces]
[00:00:01]               │ debg created user ft_ml_unauthorized_spaces
[00:07:49]             └-: anomaly detection
[00:07:49]               └-> "before all" hook in "anomaly detection"
[00:15:43]               └-: saved search
[00:15:43]                 └-> "before all" hook in "saved search"
[00:15:43]                 └-> "before all" hook in "saved search"
[00:15:43]                   │ info [ml/farequote] Loading "mappings.json"
[00:15:43]                   │ info [ml/farequote] Loading "data.json.gz"
[00:15:43]                   │ info [ml/farequote] Skipped restore for existing index "ft_farequote"
[00:15:44]                   │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:15:44]                   │ debg  > Found 'cfbded30-bfa2-11eb-a408-a55f2bb98fd9'
[00:15:44]                   │ debg Index pattern with title 'ft_farequote' already exists. Nothing to create.
[00:15:44]                   │ debg Searching for 'search' with title 'ft_farequote_filter'...
[00:15:44]                   │ debg  > Not found
[00:15:44]                   │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:15:44]                   │ debg  > Found 'cfbded30-bfa2-11eb-a408-a55f2bb98fd9'
[00:15:44]                   │ debg Creating saved search with title 'ft_farequote_filter'
[00:15:44]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] [.kibana_8.0.0_001/Jx_pr-eeStefQqraLh67tA] update_mapping [_doc]
[00:15:44]                   │ debg Waiting up to 5000ms for search with title 'ft_farequote_filter' to exist...
[00:15:44]                   │ debg Searching for 'search' with title 'ft_farequote_filter'...
[00:15:44]                   │ debg  > Found 'dce8d400-bfa4-11eb-a408-a55f2bb98fd9'
[00:15:44]                   │ debg  > Created with id 'dce8d400-bfa4-11eb-a408-a55f2bb98fd9'
[00:15:44]                   │ debg Searching for 'search' with title 'ft_farequote_lucene'...
[00:15:44]                   │ debg  > Not found
[00:15:44]                   │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:15:44]                   │ debg  > Found 'cfbded30-bfa2-11eb-a408-a55f2bb98fd9'
[00:15:44]                   │ debg Creating saved search with title 'ft_farequote_lucene'
[00:15:45]                   │ debg Waiting up to 5000ms for search with title 'ft_farequote_lucene' to exist...
[00:15:45]                   │ debg Searching for 'search' with title 'ft_farequote_lucene'...
[00:15:45]                   │ debg  > Found 'dd1dedc0-bfa4-11eb-a408-a55f2bb98fd9'
[00:15:45]                   │ debg  > Created with id 'dd1dedc0-bfa4-11eb-a408-a55f2bb98fd9'
[00:15:45]                   │ debg Searching for 'search' with title 'ft_farequote_kuery'...
[00:15:45]                   │ debg  > Not found
[00:15:45]                   │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:15:45]                   │ debg  > Found 'cfbded30-bfa2-11eb-a408-a55f2bb98fd9'
[00:15:45]                   │ debg Creating saved search with title 'ft_farequote_kuery'
[00:15:46]                   │ debg Waiting up to 5000ms for search with title 'ft_farequote_kuery' to exist...
[00:15:46]                   │ debg Searching for 'search' with title 'ft_farequote_kuery'...
[00:15:46]                   │ debg  > Found 'ddb6d260-bfa4-11eb-a408-a55f2bb98fd9'
[00:15:46]                   │ debg  > Created with id 'ddb6d260-bfa4-11eb-a408-a55f2bb98fd9'
[00:15:46]                   │ debg Searching for 'search' with title 'ft_farequote_filter_and_lucene'...
[00:15:46]                   │ debg  > Not found
[00:15:46]                   │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:15:46]                   │ debg  > Found 'cfbded30-bfa2-11eb-a408-a55f2bb98fd9'
[00:15:46]                   │ debg Creating saved search with title 'ft_farequote_filter_and_lucene'
[00:15:47]                   │ debg Waiting up to 5000ms for search with title 'ft_farequote_filter_and_lucene' to exist...
[00:15:47]                   │ debg Searching for 'search' with title 'ft_farequote_filter_and_lucene'...
[00:15:47]                   │ debg  > Found 'de524f10-bfa4-11eb-a408-a55f2bb98fd9'
[00:15:47]                   │ debg  > Created with id 'de524f10-bfa4-11eb-a408-a55f2bb98fd9'
[00:15:47]                   │ debg Searching for 'search' with title 'ft_farequote_filter_and_kuery'...
[00:15:47]                   │ debg  > Not found
[00:15:47]                   │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:15:47]                   │ debg  > Found 'cfbded30-bfa2-11eb-a408-a55f2bb98fd9'
[00:15:47]                   │ debg Creating saved search with title 'ft_farequote_filter_and_kuery'
[00:15:48]                   │ debg Waiting up to 5000ms for search with title 'ft_farequote_filter_and_kuery' to exist...
[00:15:48]                   │ debg Searching for 'search' with title 'ft_farequote_filter_and_kuery'...
[00:15:48]                   │ debg  > Found 'deec6c30-bfa4-11eb-a408-a55f2bb98fd9'
[00:15:48]                   │ debg  > Created with id 'deec6c30-bfa4-11eb-a408-a55f2bb98fd9'
[00:15:48]                   │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:15:49]                   │ debg SecurityPage.forceLogout
[00:15:49]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:15:50]                   │ debg --- retry.tryForTime error: .login-form is not displayed
[00:15:50]                   │ debg Redirecting to /logout to force the logout
[00:15:50]                   │ debg Waiting on the login form to appear
[00:15:50]                   │ debg Waiting for Login Page to appear.
[00:15:50]                   │ debg Waiting up to 100000ms for login page...
[00:15:50]                   │ debg browser[INFO] http://localhost:61211/logout?_t=1622200042648 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:15:50]                   │
[00:15:50]                   │ debg browser[INFO] http://localhost:61211/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:15:50]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:15:53]                   │ERROR browser[SEVERE] http://localhost:61211/api/alerts/list_alert_types - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:15:53]                   │ debg browser[INFO] http://localhost:61211/43276/bundles/core/core.entry.js 12:151725 "Detected an unhandled Promise rejection.
[00:15:53]                   │      Error: Unauthorized"
[00:15:53]                   │ERROR browser[SEVERE] http://localhost:61211/43276/bundles/core/core.entry.js 5:2514 
[00:15:53]                   │ debg browser[INFO] http://localhost:61211/login?msg=LOGGED_OUT 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:15:53]                   │
[00:15:53]                   │ debg browser[INFO] http://localhost:61211/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:15:53]                   │ERROR browser[SEVERE] http://localhost:61211/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:15:53]                   │ debg TestSubjects.exists(loginForm)
[00:15:53]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:15:53]                   │ debg Waiting for Login Form to appear.
[00:15:53]                   │ debg Waiting up to 100000ms for login form...
[00:15:53]                   │ debg TestSubjects.exists(loginForm)
[00:15:53]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:15:53]                   │ debg TestSubjects.setValue(loginUsername, ft_ml_poweruser)
[00:15:53]                   │ debg TestSubjects.click(loginUsername)
[00:15:53]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:15:53]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:15:53]                   │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:15:53]                   │ debg TestSubjects.click(loginPassword)
[00:15:53]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:15:53]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:15:53]                   │ debg TestSubjects.click(loginSubmit)
[00:15:53]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:15:53]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:15:53]                   │ debg Waiting for login result, expected: chrome.
[00:15:53]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] .kbnAppWrapper:not(.kbnAppWrapper--hiddenChrome)') with timeout=20000
[00:15:53]                   │ proc [kibana]   log   [11:07:25.644] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:15:55]                   │ debg browser[INFO] http://localhost:61211/app/home 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:15:55]                   │
[00:15:55]                   │ debg browser[INFO] http://localhost:61211/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:15:55]                   │ debg Finished login process currentUrl = http://localhost:61211/app/home#/
[00:15:55]                   │ debg Waiting up to 20000ms for logout button visible...
[00:15:55]                   │ debg TestSubjects.exists(userMenuButton)
[00:15:55]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:15:55]                   │ERROR browser[SEVERE] http://localhost:61211/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:15:55]                   │ debg TestSubjects.exists(userMenu)
[00:15:55]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:15:58]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:15:58]                   │ debg TestSubjects.click(userMenuButton)
[00:15:58]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:15:58]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:15:58]                   │ debg TestSubjects.exists(userMenu)
[00:15:58]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:15:59]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:15:59]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:22:18]                 └-> "after all" hook in "saved search"
[00:22:18]                   │ info Taking screenshot "/dev/shm/workspace/parallel/21/kibana/x-pack/test/functional/screenshots/failure/machine learning  anomaly detection saved search _after all_ hook in _saved search_.png"
[00:22:18]                   │ info Current URL is: http://localhost:61211/app/ml/access-denied
[00:22:18]                   │ info Saving page source to: /dev/shm/workspace/parallel/21/kibana/x-pack/test/functional/failure_debug/html/machine learning  anomaly detection saved search _after all_ hook in _saved search_.html
[00:22:18]                   └- ✖ fail: machine learning  anomaly detection saved search "after all" hook in "saved search"
[00:22:18]                   │      ConnectionError: connect ECONNREFUSED 127.0.0.1:61212
[00:22:18]                   │       at ClientRequest.onError (/dev/shm/workspace/parallel/21/kibana/node_modules/@elastic/elasticsearch/lib/Connection.js:115:16)
[00:22:18]                   │       at Socket.socketErrorListener (_http_client.js:475:9)
[00:22:18]                   │       at emitErrorNT (internal/streams/destroy.js:106:8)
[00:22:18]                   │       at emitErrorCloseNT (internal/streams/destroy.js:74:3)
[00:22:18]                   │       at processTicksAndRejections (internal/process/task_queues.js:82:21)
[00:22:18]                   │ 
[00:22:18]                   │ 

Stack Trace

ConnectionError: connect ECONNREFUSED 127.0.0.1:61212
    at ClientRequest.onError (/dev/shm/workspace/parallel/21/kibana/node_modules/@elastic/elasticsearch/lib/Connection.js:115:16)
    at Socket.socketErrorListener (_http_client.js:475:9)
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:82:21) {
  meta: {
    body: null,
    statusCode: null,
    headers: null,
    meta: {
      context: null,
      request: [Object],
      name: 'elasticsearch-js',
      connection: [Object],
      attempts: 3,
      aborted: false
    }
  }
}

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/ml.machine learning "after all" hook in ""

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: https://github.com/elastic/kibana/issues/100184

[00:00:00]       │
[00:00:00]         └-: machine learning
[00:00:00]           └-> "before all" hook in "machine learning"
[00:00:00]           └-: 
[00:00:00]             └-> "before all" hook in ""
[00:00:00]             └-> "before all" hook in ""
[00:00:00]               │ debg creating role ft_ml_source
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_ml_source]
[00:00:00]               │ debg creating role ft_ml_source_readonly
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_ml_source_readonly]
[00:00:00]               │ debg creating role ft_ml_dest
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_ml_dest]
[00:00:00]               │ debg creating role ft_ml_dest_readonly
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_ml_dest_readonly]
[00:00:00]               │ debg creating role ft_ml_ui_extras
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_ml_ui_extras]
[00:00:00]               │ debg creating role ft_default_space_ml_all
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_default_space_ml_all]
[00:00:00]               │ debg creating role ft_default_space1_ml_all
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_default_space1_ml_all]
[00:00:00]               │ debg creating role ft_all_spaces_ml_all
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_all_spaces_ml_all]
[00:00:00]               │ debg creating role ft_default_space_ml_read
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_default_space_ml_read]
[00:00:00]               │ debg creating role ft_default_space1_ml_read
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_default_space1_ml_read]
[00:00:00]               │ debg creating role ft_all_spaces_ml_read
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_all_spaces_ml_read]
[00:00:00]               │ debg creating role ft_default_space_ml_none
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added role [ft_default_space_ml_none]
[00:00:00]               │ debg creating user ft_ml_poweruser
[00:00:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_poweruser]
[00:00:00]               │ debg created user ft_ml_poweruser
[00:00:00]               │ debg creating user ft_ml_poweruser_spaces
[00:00:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_poweruser_spaces]
[00:00:00]               │ debg created user ft_ml_poweruser_spaces
[00:00:00]               │ debg creating user ft_ml_poweruser_space1
[00:00:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_poweruser_space1]
[00:00:00]               │ debg created user ft_ml_poweruser_space1
[00:00:00]               │ debg creating user ft_ml_poweruser_all_spaces
[00:00:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_poweruser_all_spaces]
[00:00:00]               │ debg created user ft_ml_poweruser_all_spaces
[00:00:00]               │ debg creating user ft_ml_viewer
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_viewer]
[00:00:01]               │ debg created user ft_ml_viewer
[00:00:01]               │ debg creating user ft_ml_viewer_spaces
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_viewer_spaces]
[00:00:01]               │ debg created user ft_ml_viewer_spaces
[00:00:01]               │ debg creating user ft_ml_viewer_space1
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_viewer_space1]
[00:00:01]               │ debg created user ft_ml_viewer_space1
[00:00:01]               │ debg creating user ft_ml_viewer_all_spaces
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_viewer_all_spaces]
[00:00:01]               │ debg created user ft_ml_viewer_all_spaces
[00:00:01]               │ debg creating user ft_ml_unauthorized
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_unauthorized]
[00:00:01]               │ debg created user ft_ml_unauthorized
[00:00:01]               │ debg creating user ft_ml_unauthorized_spaces
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114] added user [ft_ml_unauthorized_spaces]
[00:00:01]               │ debg created user ft_ml_unauthorized_spaces
[00:22:18]               └-> "after all" hook in ""
[00:22:18]                 │ debg deleting user ft_ml_poweruser
[00:22:18]                 │ proc [kibana]   log   [11:13:50.988] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:22:18]                 │ proc [kibana]   log   [11:13:50.990] [warning][elasticsearch] Unable to revive connection: http://localhost:61212/
[00:22:18]                 │ proc [kibana]   log   [11:13:50.991] [warning][elasticsearch] No living connections
[00:22:18]                 │ proc [kibana]   log   [11:13:50.991] [warning][licensing][plugins] License information could not be obtained from Elasticsearch due to Error: No Living connections error
[00:22:18]                 │ info Taking screenshot "/dev/shm/workspace/parallel/21/kibana/x-pack/test/functional/screenshots/failure/machine learning  _after all_ hook in _.png"
[00:22:19]                 │ info Current URL is: http://localhost:61211/app/ml/access-denied
[00:22:19]                 │ info Saving page source to: /dev/shm/workspace/parallel/21/kibana/x-pack/test/functional/failure_debug/html/machine learning  _after all_ hook in _.html
[00:22:19]                 └- ✖ fail: machine learning  "after all" hook in ""
[00:22:19]                 │      Error: Request failed with status code 503
[00:22:19]                 │       at createError (/dev/shm/workspace/parallel/21/kibana/node_modules/axios/lib/core/createError.js:16:15)
[00:22:19]                 │       at settle (/dev/shm/workspace/parallel/21/kibana/node_modules/axios/lib/core/settle.js:17:12)
[00:22:19]                 │       at IncomingMessage.handleStreamEnd (/dev/shm/workspace/parallel/21/kibana/node_modules/axios/lib/adapters/http.js:260:11)
[00:22:19]                 │       at endReadableNT (internal/streams/readable.js:1336:12)
[00:22:19]                 │       at processTicksAndRejections (internal/process/task_queues.js:82:21)
[00:22:19]                 │ 
[00:22:19]                 │ 

Stack Trace

Error: Request failed with status code 503
    at createError (/dev/shm/workspace/parallel/21/kibana/node_modules/axios/lib/core/createError.js:16:15)
    at settle (/dev/shm/workspace/parallel/21/kibana/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/dev/shm/workspace/parallel/21/kibana/node_modules/axios/lib/adapters/http.js:260:11)
    at endReadableNT (internal/streams/readable.js:1336:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21) {
  config: {
    url: 'http://elastic:changeme@localhost:61211/internal/security/users/ft_ml_poweruser',
    method: 'delete',
    headers: {
      Accept: 'application/json, text/plain, */*',
      'kbn-xsrf': 'kbn-client',
      'User-Agent': 'axios/0.21.1'
    },
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function: transformResponse] ],
    paramsSerializer: [Function: paramsSerializer],
    timeout: 0,
    adapter: [Function: httpAdapter],
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: -1,
    maxBodyLength: -1,
    httpsAgent: null,
    validateStatus: [Function: validateStatus],
    data: undefined
  },
  request: <ref *1> ClientRequest {
    _events: [Object: null prototype] {
      abort: [Function (anonymous)],
      aborted: [Function (anonymous)],
      connect: [Function (anonymous)],
      error: [Function (anonymous)],
      socket: [Function (anonymous)],
      timeout: [Function (anonymous)],
      prefinish: [Function: requestOnPrefinish]
    },
    _eventsCount: 7,
    _maxListeners: undefined,
    outputData: [],
    outputSize: 0,
    writable: true,
    destroyed: true,
    _last: true,
    chunkedEncoding: false,
    shouldKeepAlive: false,
    _defaultKeepAlive: true,
    useChunkedEncodingByDefault: false,
    sendDate: false,
    _removedConnection: false,
    _removedContLen: false,
    _removedTE: false,
    _contentLength: 0,
    _hasBody: true,
    _trailer: '',
    finished: true,
    _headerSent: true,
    socket: Socket {
      connecting: false,
      _hadError: false,
      _parent: null,
      _host: 'localhost',
      _readableState: [ReadableState],
      _events: [Object: null prototype],
      _eventsCount: 6,
      _maxListeners: undefined,
      _writableState: [WritableState],
      allowHalfOpen: false,
      _sockname: null,
      _pendingData: null,
      _pendingEncoding: '',
      server: null,
      _server: null,
      parser: null,
      _httpMessage: [Circular *1],
      write: [Function: writeAfterFIN],
      [Symbol(async_id_symbol)]: 590646,
      [Symbol(kHandle)]: null,
      [Symbol(kSetNoDelay)]: false,
      [Symbol(lastWriteQueueSize)]: 0,
      [Symbol(timeout)]: null,
      [Symbol(kBuffer)]: null,
      [Symbol(kBufferCb)]: null,
      [Symbol(kBufferGen)]: null,
      [Symbol(kCapture)]: false,
      [Symbol(kBytesRead)]: 555,
      [Symbol(kBytesWritten)]: 240,
      [Symbol(RequestTimeout)]: undefined
    },
    _header: 'DELETE /internal/security/users/ft_ml_poweruser HTTP/1.1\r\n' +
      'Accept: application/json, text/plain, */*\r\n' +
      'kbn-xsrf: kbn-client\r\n' +
      'User-Agent: axios/0.21.1\r\n' +
      'Host: localhost:61211\r\n' +
      'Authorization: Basic ZWxhc3RpYzpjaGFuZ2VtZQ==\r\n' +
      'Connection: close\r\n' +
      '\r\n',
    _keepAliveTimeout: 0,
    _onPendingData: [Function: noopPendingOutput],
    agent: Agent {
      _events: [Object: null prototype],
      _eventsCount: 2,
      _maxListeners: undefined,
      defaultPort: 80,
      protocol: 'http:',
      options: [Object],
      requests: {},
      sockets: {},
      freeSockets: {},
      keepAliveMsecs: 1000,
      keepAlive: false,
      maxSockets: Infinity,
      maxFreeSockets: 256,
      scheduling: 'lifo',
      maxTotalSockets: Infinity,
      totalSocketCount: 0,
      [Symbol(kCapture)]: false
    },
    socketPath: undefined,
    method: 'DELETE',
    maxHeaderSize: undefined,
    insecureHTTPParser: undefined,
    path: '/internal/security/users/ft_ml_poweruser',
    _ended: true,
    res: IncomingMessage {
      _readableState: [ReadableState],
      _events: [Object: null prototype],
      _eventsCount: 3,
      _maxListeners: undefined,
      socket: [Socket],
      httpVersionMajor: 1,
      httpVersionMinor: 1,
      httpVersion: '1.1',
      complete: true,
      headers: [Object],
      rawHeaders: [Array],
      trailers: {},
      rawTrailers: [],
      aborted: false,
      upgrade: false,
      url: '',
      method: null,
      statusCode: 503,
      statusMessage: 'Service Unavailable',
      client: [Socket],
      _consuming: false,
      _dumped: false,
      req: [Circular *1],
      responseUrl: 'http://elastic:changeme@localhost:61211/internal/security/users/ft_ml_poweruser',
      redirects: [],
      [Symbol(kCapture)]: false,
      [Symbol(RequestTimeout)]: undefined
    },
    aborted: false,
    timeoutCb: null,
    upgradeOrConnect: false,
    parser: null,
    maxHeadersCount: null,
    reusedSocket: false,
    host: 'localhost',
    protocol: 'http:',
    _redirectable: Writable {
      _writableState: [WritableState],
      _events: [Object: null prototype],
      _eventsCount: 2,
      _maxListeners: undefined,
      _options: [Object],
      _ended: true,
      _ending: true,
      _redirectCount: 0,
      _redirects: [],
      _requestBodyLength: 0,
      _requestBodyBuffers: [],
      _onNativeResponse: [Function (anonymous)],
      _currentRequest: [Circular *1],
      _currentUrl: 'http://elastic:changeme@localhost:61211/internal/security/users/ft_ml_poweruser',
      [Symbol(kCapture)]: false
    },
    [Symbol(kCapture)]: false,
    [Symbol(kNeedDrain)]: false,
    [Symbol(corked)]: 0,
    [Symbol(kOutHeaders)]: [Object: null prototype] {
      accept: [Array],
      'kbn-xsrf': [Array],
      'user-agent': [Array],
      host: [Array],
      authorization: [Array]
    }
  },
  response: {
    status: 503,
    statusText: 'Service Unavailable',
    headers: {
      'retry-after': '30',
      'x-content-type-options': 'nosniff',
      'referrer-policy': 'no-referrer-when-downgrade',
      'kbn-name': 'kibana-ci-immutable-ubuntu-16-tests-xxl-1622197550693526114',
      'kbn-license-sig': '3f2fbe2e7dffe9936f647deadcb18d812ffbb4f02c27cd5d8ed8069fef195573',
      'content-type': 'application/json; charset=utf-8',
      'cache-control': 'private, no-cache, no-store, must-revalidate',
      'content-length': '86',
      date: 'Fri, 28 May 2021 11:13:50 GMT',
      connection: 'close'
    },
    config: {
      url: 'http://elastic:changeme@localhost:61211/internal/security/users/ft_ml_poweruser',
      method: 'delete',
      headers: [Object],
      transformRequest: [Array],
      transformResponse: [Array],
      paramsSerializer: [Function: paramsSerializer],
      timeout: 0,
      adapter: [Function: httpAdapter],
      xsrfCookieName: 'XSRF-TOKEN',
      xsrfHeaderName: 'X-XSRF-TOKEN',
      maxContentLength: -1,
      maxBodyLength: -1,
      httpsAgent: null,
      validateStatus: [Function: validateStatus],
      data: undefined
    },
    request: <ref *1> ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 7,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      destroyed: true,
      _last: true,
      chunkedEncoding: false,
      shouldKeepAlive: false,
      _defaultKeepAlive: true,
      useChunkedEncodingByDefault: false,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      _contentLength: 0,
      _hasBody: true,
      _trailer: '',
      finished: true,
      _headerSent: true,
      socket: [Socket],
      _header: 'DELETE /internal/security/users/ft_ml_poweruser HTTP/1.1\r\n' +
        'Accept: application/json, text/plain, */*\r\n' +
        'kbn-xsrf: kbn-client\r\n' +
        'User-Agent: axios/0.21.1\r\n' +
        'Host: localhost:61211\r\n' +
        'Authorization: Basic ZWxhc3RpYzpjaGFuZ2VtZQ==\r\n' +
        'Connection: close\r\n' +
        '\r\n',
      _keepAliveTimeout: 0,
      _onPendingData: [Function: noopPendingOutput],
      agent: [Agent],
      socketPath: undefined,
      method: 'DELETE',
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      path: '/internal/security/users/ft_ml_poweruser',
      _ended: true,
      res: [IncomingMessage],
      aborted: false,
      timeoutCb: null,
      upgradeOrConnect: false,
      parser: null,
      maxHeadersCount: null,
      reusedSocket: false,
      host: 'localhost',
      protocol: 'http:',
      _redirectable: [Writable],
      [Symbol(kCapture)]: false,
      [Symbol(kNeedDrain)]: false,
      [Symbol(corked)]: 0,
      [Symbol(kOutHeaders)]: [Object: null prototype]
    },
    data: {
      statusCode: 503,
      error: 'Service Unavailable',
      message: 'License is not available.'
    }
  },
  isAxiosError: true,
  toJSON: [Function: toJSON]
}

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
charts 67 68 +1
lens 610 650 +40
total +41

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
charts 137 157 +20

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
canvas 1.3MB 1.3MB +22.0B
charts 54.5KB 56.5KB +2.0KB
lens 1.2MB 1.3MB +111.1KB
visTypeTimeseries 1.7MB 1.7MB +88.0B
visTypeXy 113.7KB 113.7KB +11.0B
total +113.3KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
charts 86.6KB 87.4KB +827.0B
lens 34.2KB 34.4KB +211.0B
maps 63.6KB 63.6KB +11.0B
visDefaultEditor 33.9KB 33.9KB +33.0B
total +1.1KB
Unknown metric groups

API count

id before after diff
charts 165 186 +21

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like everything is addressed, LGTM

@dej611 dej611 merged commit 51616e1 into elastic:master May 28, 2021
@dej611 dej611 deleted the lens/dynamic-coloring-table branch May 28, 2021 13:24
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request May 28, 2021
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
Co-authored-by: Michael Marcialis <michael@marcial.is>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request May 28, 2021
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
Co-authored-by: Michael Marcialis <michael@marcial.is>

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
Co-authored-by: Michael Marcialis <michael@marcial.is>
gmmorris added a commit to gmmorris/kibana that referenced this pull request May 28, 2021
* master: (77 commits)
  [RAC][Security Solution] Register Security Detection Rules with Rule Registry (elastic#96015)
  [Enterprise Search] Log warning for Kibana/EntSearch version mismatches (elastic#100809)
  updating the saved objects test to include more saved object types (elastic#100828)
  [ML] Fix categorization job view examples link when datafeed uses multiple indices (elastic#100789)
  Fixing ES archive mapping failure (elastic#100835)
  Fix bug with Observability > APM header navigation (elastic#100845)
  [Security Solution][Endpoint] Add event filters summary card to the fleet endpoint tab (elastic#100668)
  [Actions] Taking space id into account when creating email footer link (elastic#100734)
  Ensure comments on parameters in arrow functions are captured in the docs and ci metrics. (elastic#100823)
  [Security Solution] Improve find rule and find rule status route performance (elastic#99678)
  [DOCS] Adds video to introduction (elastic#100906)
  [Fleet] Improve combo box for fleet settings (elastic#100603)
  [Security Solution][Endpoint] Endpoint generator and data loader support for Host Isolation (elastic#100813)
  [DOCS] Adds Lens video (elastic#100898)
  [TSVB] [Table tab] Fix "Math" aggregation (elastic#100765)
  chore(NA): moving @kbn/io-ts-utils into bazel (elastic#100810)
  [Alerting] Adding feature flag for enabling/disabling rule import and export (elastic#100718)
  [TSVB] Fix Upgrading from 7.12.1 to 7.13.0 breaks TSVB (elastic#100864)
  [Lens] Adds dynamic table cell coloring (elastic#95217)
  [Security Solution][Endpoint] Do not display searchbar in security-trusted apps if there are no items (elastic#100853)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Feature:Lens release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Lens] Custom gradient colors for numeric table cells