Skip to content

Conversation

@sulemanof
Copy link
Contributor

Backports the following commits to 7.x:

* Implement toExpressionAst for tagcloud

* Implement tagcloud vis renderer

* Use resize observer

* Use common no data message

* Update build_pipeline.test

* Update tag cloud tests

* Revert "Use common no data message"

This reverts commit fddf019.

* Update interpreter functional tests

* Add tests for toExpressionAst fn

* Use throttled chart update

* Update renderer

Co-authored-by: Elastic Machine <[email protected]>
@sulemanof sulemanof added the backport This PR is a backport of another PR label Sep 28, 2020
@sulemanof
Copy link
Contributor Author

@elasticmachine merge upstream

@mistic
Copy link
Member

mistic commented Sep 28, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/ml/anomaly_detection/single_metric_viewer·ts.machine learning anomaly detection single metric viewer displays job results

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
[00:00:00]           └-> "before all" hook
[00:00:00]             │ debg creating role ft_ml_source
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [ilm-history-3-000001] creating index, cause [api], templates [ilm-history], shards [1]/[0]
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] added role [ft_ml_source]
[00:00:00]             │ debg creating role ft_ml_source_readonly
[00:00:00]             │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] moving index [ilm-history-3-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ilm-history-ilm-policy]
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] added role [ft_ml_source_readonly]
[00:00:00]             │ debg creating role ft_ml_dest
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[ilm-history-3-000001][0]]]).
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] added role [ft_ml_dest]
[00:00:00]             │ debg creating role ft_ml_dest_readonly
[00:00:00]             │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] moving index [ilm-history-3-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] in policy [ilm-history-ilm-policy]
[00:00:00]             │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] moving index [ilm-history-3-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] in policy [ilm-history-ilm-policy]
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] 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-1601308062585446020] 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-1601308062585446020] added role [ft_default_space_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-1601308062585446020] added role [ft_default_space_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-1601308062585446020] 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-1601308062585446020] 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-1601308062585446020] added user [ft_ml_poweruser_spaces]
[00:00:00]             │ debg created user ft_ml_poweruser_spaces
[00:00:00]             │ debg creating user ft_ml_viewer
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] added user [ft_ml_viewer]
[00:00:00]             │ debg created user ft_ml_viewer
[00:00:00]             │ 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-1601308062585446020] added user [ft_ml_viewer_spaces]
[00:00:01]             │ debg created user ft_ml_viewer_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-1601308062585446020] 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-1601308062585446020] added user [ft_ml_unauthorized_spaces]
[00:00:01]             │ debg created user ft_ml_unauthorized_spaces
[00:11:53]           └-: anomaly detection
[00:11:53]             └-> "before all" hook
[00:33:05]             └-: single metric viewer
[00:33:05]               └-> "before all" hook
[00:33:05]               └-> "before all" hook
[00:33:05]                 │ info [ml/farequote] Loading "mappings.json"
[00:33:05]                 │ info [ml/farequote] Loading "data.json.gz"
[00:33:05]                 │ info [ml/farequote] Skipped restore for existing index "ft_farequote"
[00:33:06]                 │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:33:06]                 │ debg  > Found 'daf859c0-01a6-11eb-ad91-f18cd045dd2b'
[00:33:06]                 │ debg Index pattern with title 'ft_farequote' already exists. Nothing to create.
[00:33:06]                 │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:33:06]                 │ debg Creating anomaly detection job with id 'fq_single_1_smv'...
[00:33:06]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:33:06]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:33:07]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:33:07]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:33:07]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [.ml-config] creating index, cause [auto(bulk api)], templates [.ml-config], shards [1]/[1]
[00:33:07]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] updating number_of_replicas to [0] for indices [.ml-config]
[00:33:07]                 │ debg Waiting up to 5000ms for 'fq_single_1_smv' to exist...
[00:33:07]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [.ml-notifications-000001] creating index, cause [auto(bulk api)], templates [.ml-notifications-000001], shards [1]/[1]
[00:33:07]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] updating number_of_replicas to [0] for indices [.ml-notifications-000001]
[00:33:07]                 │ debg Creating datafeed with id 'datafeed-fq_single_1_smv'...
[00:33:07]                 │ debg Waiting up to 5000ms for 'datafeed-fq_single_1_smv' to exist...
[00:33:07]                 │ debg Opening anomaly detection job 'fq_single_1_smv'...
[00:33:07]                 │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] Opening job [fq_single_1_smv]
[00:33:07]                 │ info [o.e.x.c.m.u.MlIndexAndAlias] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] About to create first concrete index [.ml-state-000001] with alias [.ml-state-write]
[00:33:07]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [.ml-state-000001] creating index, cause [api], templates [.ml-state], shards [1]/[1]
[00:33:07]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] updating number_of_replicas to [0] for indices [.ml-state-000001]
[00:33:07]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] moving index [.ml-state-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ml-size-based-ilm-policy]
[00:33:07]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] moving index [.ml-state-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] in policy [ml-size-based-ilm-policy]
[00:33:07]                 │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [fq_single_1_smv] Loading model snapshot [N/A], job latest_record_timestamp [N/A]
[00:33:07]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] moving index [.ml-state-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] in policy [ml-size-based-ilm-policy]
[00:33:07]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [fq_single_1_smv] [autodetect/210248] [CResourceMonitor.cc@74] Setting model memory limit to 10 MB
[00:33:07]                 │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] Successfully set job state to [opened] for job [fq_single_1_smv]
[00:33:07]                 │ debg Starting datafeed 'datafeed-fq_single_1_smv' with start: '0', end: '1601311952543'...
[00:33:07]                 │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [fq_single_1_smv] Datafeed started (from: 1970-01-01T00:00:00.000Z to: 2020-09-28T16:52:32.543Z) with frequency [450000ms]
[00:33:07]                 │ debg Waiting up to 120000ms for datafeed state to be stopped...
[00:33:07]                 │ debg Fetching datafeed state for datafeed datafeed-fq_single_1_smv
[00:33:07]                 │ debg --- retry.waitForWithTimeout error: expected job state to be stopped but got started
[00:33:07]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [.ml-anomalies-shared/kkAbBnLjQWiIVfaNHG2bVw] update_mapping [_doc]
[00:33:07]                 │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [fq_single_1_smv] 10000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:33:08]                 │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [fq_single_1_smv] 20000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:33:08]                 │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [fq_single_1_smv] 30000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:33:08]                 │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [fq_single_1_smv] 40000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:33:08]                 │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [fq_single_1_smv] 50000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:33:08]                 │ debg Fetching datafeed state for datafeed datafeed-fq_single_1_smv
[00:33:08]                 │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:33:08]                 │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [fq_single_1_smv] 60000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:33:08]                 │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [fq_single_1_smv] 70000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:33:08]                 │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [fq_single_1_smv] 80000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:33:08]                 │ debg Fetching datafeed state for datafeed datafeed-fq_single_1_smv
[00:33:08]                 │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:33:09]                 │ debg Fetching datafeed state for datafeed datafeed-fq_single_1_smv
[00:33:09]                 │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:33:09]                 │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [fq_single_1_smv] Lookback has finished
[00:33:09]                 │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [no_realtime] attempt to stop datafeed [datafeed-fq_single_1_smv] for job [fq_single_1_smv]
[00:33:09]                 │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [no_realtime] try lock [20s] to stop datafeed [datafeed-fq_single_1_smv] for job [fq_single_1_smv]...
[00:33:09]                 │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [no_realtime] stopping datafeed [datafeed-fq_single_1_smv] for job [fq_single_1_smv], acquired [true]...
[00:33:09]                 │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [no_realtime] datafeed [datafeed-fq_single_1_smv] for job [fq_single_1_smv] has been stopped
[00:33:09]                 │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] Closing job [fq_single_1_smv], because [close job (api)]
[00:33:09]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [fq_single_1_smv] [autodetect/210248] [CCmdSkeleton.cc@51] Handled 86274 records
[00:33:09]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [fq_single_1_smv] [autodetect/210248] [CAnomalyJob.cc@1555] Pruning all models
[00:33:09]                 │ info [o.e.x.m.p.AbstractNativeProcess] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [fq_single_1_smv] State output finished
[00:33:09]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [.ml-anomalies-shared/kkAbBnLjQWiIVfaNHG2bVw] update_mapping [_doc]
[00:33:09]                 │ info [o.e.x.m.j.p.a.o.AutodetectResultProcessor] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [fq_single_1_smv] 480 buckets parsed from autodetect output
[00:33:09]                 │ debg Fetching datafeed state for datafeed datafeed-fq_single_1_smv
[00:33:09]                 │ debg Waiting up to 120000ms for job state to be closed...
[00:33:09]                 │ debg Fetching anomaly detection job stats for job fq_single_1_smv...
[00:33:09]                 │ debg --- retry.waitForWithTimeout error: expected job state to be closed but got closing
[00:33:10]                 │ info [o.e.x.m.j.p.a.AutodetectCommunicator] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601308062585446020] [fq_single_1_smv] job closed
[00:33:10]                 │ debg Fetching anomaly detection job stats for job fq_single_1_smv...
[00:33:10]                 │ debg SecurityPage.forceLogout
[00:33:10]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:33:10]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:33:11]                 │ debg Redirecting to /logout to force the logout
[00:33:11]                 │ debg Waiting on the login form to appear
[00:33:11]                 │ debg Waiting for Login Page to appear.
[00:33:11]                 │ debg Waiting up to 100000ms for login page...
[00:33:11]                 │ debg browser[INFO] http://localhost:61231/logout?_t=1601311955818 341 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:33:11]                 │
[00:33:11]                 │ debg browser[INFO] http://localhost:61231/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:33:11]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:33:13]                 │ debg browser[INFO] http://localhost:61231/login?_t=1601311955818 341 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:33:13]                 │
[00:33:13]                 │ debg browser[INFO] http://localhost:61231/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:33:13]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:33:14]                 │ERROR browser[SEVERE] http://localhost:61231/internal/licensing/feature_usage/register - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:33:14]                 │ debg browser[WARNING] http://localhost:61231/35143/bundles/plugin/uiActionsEnhanced/uiActionsEnhanced.plugin.js 15:63628 "ActionFactory [actionFactory.id = URL_DRILLDOWN] fail to register feature for featureUsage."
[00:33:14]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:33:14]                 │ debg navigating to login url: http://localhost:61231/login
[00:33:14]                 │ debg navigate to: http://localhost:61231/login
[00:33:15]                 │ debg browser[INFO] http://localhost:61231/login?_t=1601311959706 341 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:33:15]                 │
[00:33:15]                 │ debg browser[INFO] http://localhost:61231/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:33:15]                 │ debg ... sleep(700) start
[00:33:15]                 │ debg ... sleep(700) end
[00:33:15]                 │ debg returned from get, calling refresh
[00:33:16]                 │ERROR browser[SEVERE] http://localhost:61231/internal/licensing/feature_usage/register - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:33:16]                 │ debg browser[WARNING] http://localhost:61231/35143/bundles/plugin/uiActionsEnhanced/uiActionsEnhanced.plugin.js 15:63628 "ActionFactory [actionFactory.id = URL_DRILLDOWN] fail to register feature for featureUsage."
[00:33:16]                 │ debg browser[INFO] http://localhost:61231/login?_t=1601311959706 341 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:33:16]                 │
[00:33:16]                 │ debg browser[INFO] http://localhost:61231/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:33:16]                 │ERROR browser[SEVERE] http://localhost:61231/internal/licensing/feature_usage/register - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:33:16]                 │ debg currentUrl = http://localhost:61231/login
[00:33:16]                 │          appUrl = http://localhost:61231/login
[00:33:16]                 │ debg TestSubjects.find(kibanaChrome)
[00:33:16]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:33:16]                 │ debg ... sleep(501) start
[00:33:16]                 │ debg browser[WARNING] http://localhost:61231/35143/bundles/plugin/uiActionsEnhanced/uiActionsEnhanced.plugin.js 15:63628 "ActionFactory [actionFactory.id = URL_DRILLDOWN] fail to register feature for featureUsage."
[00:33:17]                 │ debg ... sleep(501) end
[00:33:17]                 │ debg in navigateTo url = http://localhost:61231/login
[00:33:17]                 │ debg TestSubjects.exists(statusPageContainer)
[00:33:17]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:33:19]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:33:20]                 │ debg Waiting for Login Form to appear.
[00:33:20]                 │ debg Waiting up to 100000ms for login form...
[00:33:20]                 │ debg TestSubjects.exists(loginForm)
[00:33:20]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:33:20]                 │ debg TestSubjects.setValue(loginUsername, ft_ml_poweruser)
[00:33:20]                 │ debg TestSubjects.click(loginUsername)
[00:33:20]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:33:20]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:33:20]                 │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:33:20]                 │ debg TestSubjects.click(loginPassword)
[00:33:20]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:33:20]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:33:20]                 │ debg TestSubjects.click(loginSubmit)
[00:33:20]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:33:20]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:33:20]                 │ proc [kibana]   log   [16:52:45.688] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:33:20]                 │ debg Waiting for login result, expected: chrome.
[00:33:20]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] .app-wrapper:not(.hidden-chrome)') with timeout=20000
[00:33:23]                 │ debg browser[INFO] http://localhost:61231/app/home 341 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:33:23]                 │
[00:33:23]                 │ debg browser[INFO] http://localhost:61231/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:33:23]                 │ debg Finished login process currentUrl = http://localhost:61231/app/home#/
[00:33:23]                 │ debg Waiting up to 20000ms for logout button visible...
[00:33:23]                 │ debg TestSubjects.exists(userMenuButton)
[00:33:23]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:33:23]                 │ debg TestSubjects.exists(userMenu)
[00:33:23]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:33:25]                 │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:33:26]                 │ debg TestSubjects.click(userMenuButton)
[00:33:26]                 │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:33:26]                 │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:33:26]                 │ debg TestSubjects.exists(userMenu)
[00:33:26]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:33:26]                 │ debg TestSubjects.exists(userMenu > logoutLink)
[00:33:26]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:33:26]               └-> opens a job from job list link
[00:33:26]                 └-> "before each" hook: global before each
[00:33:26]                 │ debg === TEST STEP === navigate to job list
[00:33:26]                 │ debg navigating to ml url: http://localhost:61231/app/ml
[00:33:26]                 │ debg navigate to: http://localhost:61231/app/ml
[00:33:26]                 │ debg browser[INFO] http://localhost:61231/app/ml?_t=1601311971395 341 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:33:26]                 │
[00:33:26]                 │ debg browser[INFO] http://localhost:61231/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:33:26]                 │ debg ... sleep(700) start
[00:33:27]                 │ debg ... sleep(700) end
[00:33:27]                 │ debg returned from get, calling refresh
[00:33:28]                 │ERROR browser[SEVERE] http://localhost:61231/35143/bundles/core/core.entry.js 89:271530 TypeError: Failed to fetch
[00:33:28]                 │          at Fetch._callee3$ (http://localhost:61231/35143/bundles/core/core.entry.js:26:106441)
[00:33:28]                 │          at l (http://localhost:61231/35143/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:1020669)
[00:33:28]                 │          at Generator._invoke (http://localhost:61231/35143/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:1020422)
[00:33:28]                 │          at Generator.forEach.e.<computed> [as throw] (http://localhost:61231/35143/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:1021026)
[00:33:28]                 │          at fetch_asyncGeneratorStep (http://localhost:61231/35143/bundles/core/core.entry.js:26:100510)
[00:33:28]                 │          at _throw (http://localhost:61231/35143/bundles/core/core.entry.js:26:100918)
[00:33:28]                 │ debg browser[INFO] http://localhost:61231/app/ml?_t=1601311971395 341 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:33:28]                 │
[00:33:28]                 │ debg browser[INFO] http://localhost:61231/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:33:28]                 │ debg currentUrl = http://localhost:61231/app/ml
[00:33:28]                 │          appUrl = http://localhost:61231/app/ml
[00:33:28]                 │ debg TestSubjects.find(kibanaChrome)
[00:33:28]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:33:29]                 │ debg ... sleep(501) start
[00:33:29]                 │ debg ... sleep(501) end
[00:33:29]                 │ debg in navigateTo url = http://localhost:61231/app/ml/overview
[00:33:29]                 │ debg --- retry.try error: URL changed, waiting for it to settle
[00:33:30]                 │ debg ... sleep(501) start
[00:33:30]                 │ debg ... sleep(501) end
[00:33:30]                 │ debg in navigateTo url = http://localhost:61231/app/ml/overview
[00:33:30]                 │ debg TestSubjects.exists(statusPageContainer)
[00:33:30]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:33:33]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:33:33]                 │ debg TestSubjects.exists(mlPageOverview)
[00:33:33]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageOverview"]') with timeout=2000
[00:33:33]                 │ debg TestSubjects.click(~mlMainTab & ~anomalyDetection)
[00:33:33]                 │ debg Find.clickByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"]') with timeout=10000
[00:33:33]                 │ debg Find.findByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"]') with timeout=10000
[00:33:33]                 │ debg TestSubjects.exists(~mlMainTab & ~anomalyDetection & ~selected)
[00:33:33]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"][data-test-subj~="selected"]') with timeout=120000
[00:33:33]                 │ debg TestSubjects.exists(mlPageJobManagement)
[00:33:33]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageJobManagement"]') with timeout=120000
[00:33:34]                 │ debg === TEST STEP === open job in single metric viewer
[00:33:34]                 │ debg TestSubjects.exists(~mlJobListTable)
[00:33:34]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlJobListTable"]') with timeout=60000
[00:33:34]                 │ debg TestSubjects.exists(mlJobListTable loaded)
[00:33:34]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobListTable loaded"]') with timeout=30000
[00:33:34]                 │ debg TestSubjects.exists(~mlJobListTable)
[00:33:34]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlJobListTable"]') with timeout=60000
[00:33:34]                 │ debg TestSubjects.exists(mlJobListTable loaded)
[00:33:34]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobListTable loaded"]') with timeout=30000
[00:33:34]                 │ debg TestSubjects.find(mlJobListSearchBar)
[00:33:34]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobListSearchBar"]') with timeout=10000
[00:33:34]                 │ debg TestSubjects.find(~mlJobListTable)
[00:33:34]                 │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"]') with timeout=10000
[00:33:34]                 │ debg TestSubjects.click(~mlJobListTable > ~row-fq_single_1_smv > mlOpenJobsInSingleMetricViewerButton)
[00:33:34]                 │ debg Find.clickByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="row-fq_single_1_smv"] [data-test-subj="mlOpenJobsInSingleMetricViewerButton"]') with timeout=10000
[00:33:34]                 │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="row-fq_single_1_smv"] [data-test-subj="mlOpenJobsInSingleMetricViewerButton"]') with timeout=10000
[00:33:34]                 │ debg TestSubjects.exists(~mlPageSingleMetricViewer)
[00:33:34]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlPageSingleMetricViewer"]') with timeout=120000
[00:33:34]                 │ERROR browser[SEVERE] http://localhost:61231/api/ml/anomaly_detectors - Failed to load resource: net::ERR_NETWORK_CHANGED
[00:33:34]                 │ debg browser[INFO] http://localhost:61231/35143/bundles/plugin/ml/ml.plugin.js 1:471850 "jobService error getting list of jobs:" TypeError: Failed to fetch
[00:33:34]                 │          at Fetch._callee3$ (http://localhost:61231/35143/bundles/core/core.entry.js:26:106441)
[00:33:34]                 │          at l (http://localhost:61231/35143/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:1020669)
[00:33:34]                 │          at Generator._invoke (http://localhost:61231/35143/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:1020422)
[00:33:34]                 │          at Generator.forEach.e.<computed> [as throw] (http://localhost:61231/35143/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:1021026)
[00:33:34]                 │          at fetch_asyncGeneratorStep (http://localhost:61231/35143/bundles/core/core.entry.js:26:100510)
[00:33:34]                 │          at _throw (http://localhost:61231/35143/bundles/core/core.entry.js:26:100918)
[00:33:34]                 │ debg browser[INFO] http://localhost:61231/35143/bundles/plugin/ml/ml.plugin.js 1:469060 "Error loading jobs in route resolve." Object
[00:33:34]                 │ debg TestSubjects.missingOrFail(mlLoadingIndicator)
[00:33:34]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mlLoadingIndicator"]') with timeout=2500
[00:33:35]                 └- ✓ pass  (8.9s) "machine learning anomaly detection single metric viewer opens a job from job list link"
[00:33:35]               └-> displays job results
[00:33:35]                 └-> "before each" hook: global before each
[00:33:35]                 │ debg === TEST STEP === pre-fills the job selection
[00:33:35]                 │ debg TestSubjects.findAll(mlJobSelectionBadges > ~mlJobSelectionBadge)
[00:33:35]                 │ debg Find.allByCssSelector('[data-test-subj="mlJobSelectionBadges"] [data-test-subj~="mlJobSelectionBadge"]') with timeout=10000
[00:33:35]                 │ debg === TEST STEP === pre-fills the detector input
[00:33:35]                 │ debg TestSubjects.exists(mlSingleMetricViewerSeriesControls > mlSingleMetricViewerDetectorSelect)
[00:33:35]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlSingleMetricViewerSeriesControls"] [data-test-subj="mlSingleMetricViewerDetectorSelect"]') with timeout=120000
[00:33:38]                 │ debg --- retry.tryForTime error: [data-test-subj="mlSingleMetricViewerSeriesControls"] [data-test-subj="mlSingleMetricViewerDetectorSelect"] is not displayed
[00:33:41]                 │ debg --- retry.tryForTime failed again with the same message...
[00:33:44]                 │ debg --- retry.tryForTime failed again with the same message...
[00:33:47]                 │ debg --- retry.tryForTime failed again with the same message...
[00:33:50]                 │ debg --- retry.tryForTime failed again with the same message...
[00:33:53]                 │ debg --- retry.tryForTime failed again with the same message...
[00:33:56]                 │ debg --- retry.tryForTime failed again with the same message...
[00:33:59]                 │ debg --- retry.tryForTime failed again with the same message...
[00:34:02]                 │ debg --- retry.tryForTime failed again with the same message...
[00:34:05]                 │ debg --- retry.tryForTime failed again with the same message...
[00:34:08]                 │ debg --- retry.tryForTime failed again with the same message...
[00:34:11]                 │ debg --- retry.tryForTime failed again with the same message...
[00:34:14]                 │ debg --- retry.tryForTime failed again with the same message...
[00:34:17]                 │ debg --- retry.tryForTime failed again with the same message...
[00:34:20]                 │ debg --- retry.tryForTime failed again with the same message...
[00:34:23]                 │ debg --- retry.tryForTime failed again with the same message...
[00:34:26]                 │ debg --- retry.tryForTime failed again with the same message...
[00:34:29]                 │ debg --- retry.tryForTime failed again with the same message...
[00:34:32]                 │ debg --- retry.tryForTime failed again with the same message...
[00:34:35]                 │ debg --- retry.tryForTime failed again with the same message...
[00:34:38]                 │ debg --- retry.tryForTime failed again with the same message...
[00:34:41]                 │ debg --- retry.tryForTime failed again with the same message...
[00:34:44]                 │ debg --- retry.tryForTime failed again with the same message...
[00:34:47]                 │ debg --- retry.tryForTime failed again with the same message...
[00:34:50]                 │ debg --- retry.tryForTime failed again with the same message...
[00:34:53]                 │ debg --- retry.tryForTime failed again with the same message...
[00:34:56]                 │ debg --- retry.tryForTime failed again with the same message...
[00:34:59]                 │ debg --- retry.tryForTime failed again with the same message...
[00:35:02]                 │ debg --- retry.tryForTime failed again with the same message...
[00:35:05]                 │ debg --- retry.tryForTime failed again with the same message...
[00:35:08]                 │ debg --- retry.tryForTime failed again with the same message...
[00:35:11]                 │ debg --- retry.tryForTime failed again with the same message...
[00:35:14]                 │ debg --- retry.tryForTime failed again with the same message...
[00:35:17]                 │ debg --- retry.tryForTime failed again with the same message...
[00:35:20]                 │ debg --- retry.tryForTime failed again with the same message...
[00:35:23]                 │ debg --- retry.tryForTime failed again with the same message...
[00:35:26]                 │ debg --- retry.tryForTime failed again with the same message...
[00:35:29]                 │ debg --- retry.tryForTime failed again with the same message...
[00:35:33]                 │ debg --- retry.tryForTime failed again with the same message...
[00:35:36]                 │ debg --- retry.tryForTime failed again with the same message...
[00:35:36]                 │ info Taking screenshot "/dev/shm/workspace/parallel/23/kibana/x-pack/test/functional/screenshots/failure/machine learning anomaly detection single metric viewer displays job results.png"
[00:35:36]                 │ info Current URL is: http://localhost:61231/app/ml/timeseriesexplorer?_g=(ml%3A(jobIds%3A!(fq_single_1_smv))%2CrefreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3A'2016-02-07T00%3A00%3A00.000Z'%2Cto%3A'2016-02-11T23%3A59%3A54.000Z'))&_a=(query%3A(query_string%3A(analyze_wildcard%3A!t%2Cquery%3A'*')))
[00:35:36]                 │ info Saving page source to: /dev/shm/workspace/parallel/23/kibana/x-pack/test/functional/failure_debug/html/machine learning anomaly detection single metric viewer displays job results.html
[00:35:36]                 └- ✖ fail: machine learning anomaly detection single metric viewer displays job results
[00:35:36]                 │      Error: expected testSubject(mlSingleMetricViewerSeriesControls > mlSingleMetricViewerDetectorSelect) to exist
[00:35:36]                 │       at TestSubjects.existOrFail (/dev/shm/workspace/parallel/23/kibana/test/functional/services/common/test_subjects.ts:62:15)
[00:35:36]                 │ 
[00:35:36]                 │ 

Stack Trace

Error: expected testSubject(mlSingleMetricViewerSeriesControls > mlSingleMetricViewerDetectorSelect) to exist
    at TestSubjects.existOrFail (/dev/shm/workspace/parallel/23/kibana/test/functional/services/common/test_subjects.ts:62:15)

Metrics [docs]

@kbn/optimizer bundle module count

id value diff baseline
visTypeTagcloud 29 +3 26

async chunks size

id value diff baseline
visTypeTagcloud 295.4KB ⚠️ +295.4KB 0.0B

page load bundle size

id value diff baseline
visTypeTagcloud 22.1KB -285.7KB 307.8KB
visualizations 272.6KB -765.0B 273.4KB
total -286.4KB

distributable file count

id value diff baseline
default 47368 +6 47362
oss 28081 +6 28075

History

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

@timroes
Copy link
Contributor

timroes commented Sep 28, 2020

Closing in favor of #78666

@timroes timroes closed this Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants